#djk3600-elements-multiplequestions
1 messages ยท Page 1 of 1 (latest)
hey bro ๐
Hey @marsh crypt I'm happy to help though I would need to know what the question is about!
Of course, thanks a ton for taking the time to help me firstly. I really appreciate it
Okay got a couple of questions. First one is
I have implemented stripe and it works perfectly on my localhost. I deployed my app and it doesn't work
first thing is, this is in the console?
what does this mean?
That message says that if you use your Live API key pk_live_123 the page has to be loaded over HTTPS not HTTP. If you use your Test API key pk_test_123 then it's fine
djk3600-elements-multiplequestions
Okay so I am currently still using my test API key
so then it's just a warning and is not a problem
REACT_APP_STRIPE_PK=pk_test_51M47.....
ahhh okay nice
you know your stuff koopajah!!
okay second question if thats okay ๐
I am facing this issue, notably I do not get this in localhost
the second error is trying to post to localhost:4242 which doesn't make sense if you've deployed the code to a remote server
you must have hardcoded something in your code
ahhhhh
okay so I found it
"http://localhost:4242/create-payment-intent",
{
items: cartItems,
userEmail: userEmail,
shipping: shippingAddress,
billing: billingAddress,
description,
}
do I change this to my site?
so my site is called
so would it be this?
"http://www.onepetclub.com/create-payment-intent",
{
items: cartItems,
userEmail: userEmail,
shipping: shippingAddress,
billing: billingAddress,
description,
}
Possibly
That's really more something you (as the web developer) figure out in that case. Completely depends on how you built your website, your code, etc.
Okay I see, there was nothing special about http://localhost:4242/create-payment-intent. So I am wondering if I can just add my site. I am just a bit confused?
I mean it depends how your entire website was built, I don't know anything about your set up.