#djk3600
1 messages ยท Page 1 of 1 (latest)
Hello ๐
How can I help?
hey mate!
hope you are doing okay and thank you for taking my question ๐
okay so, stripe works on my localhost
but doesn't work now that my app is deployed
what can I do?
So you'd likely want to narrow down on what doesn't work exactly and what kind of error it throws.
When you say it doesn't work, Are you seeing an API error or something else? Do you have any examples you can share?
Oh I see umm
one second
Okay I'll explain my process:
In localhost I am able to make a payment.
I put my details in and the test credit card as follows.
4242424242424242
04/42 424
The payment goes through and appears in the test data.
If I do the same thing in my live app it doesn't work. Shall I try a different card which isn't a test card?
What error do you get in live app? Test cards are not supposed to work in live mode.
Are you using your test mode API keys for the hosted app?
ahhhh I may be!
pk_test_5
sk_test_5
they are test keys
I need to switch to the live ones dont I?
It depends. Is your end goal to just test the payments? If so, then you should keep the test mode API keys.
Are you seeing any network errors in your console? OR are you seeing any decline errors on your webpage? More information would help narrow down on the issues.
Oh I see, okay let me do some more research. But I want the payments to be completely live