#martselq
1 messages · Page 1 of 1 (latest)
Okay, well first you should never be testing in live mode as it is against card network regulations (see: https://stripe.com/docs/testing#use-test-cards).
Second, the only thing that determines test vs. live mode in a Stripe integration is the set of API keys you use in your integration.
I've been testing in test mode and all the webhook events seem to work great
How do I test whether or not hooking up a real credit card works?
We can't recommend you do that -- see the link above. Our recommendation is that you test in test mode with the test cards. Then once you are satisfied you switch to your live keys and you run in production.
Ok, I'll do that then
Right now I have my envs on staging set to live keys
And still the customer portal shows up in test mode
What will I need to do to make sure everything that needs to be live is live?
In that case there is some issue like your code is cached on your older code, you haven't actually saved/deployed your update code, or there is an issue with how you are setting your keys, etc.
The only thing that determines test vs. live is the key used to intialize Stripe in order to make the API request.
So if you are seeing the Customer Portal Session created in test mode, then you are still using your test keys here and you'll need to debug why.