you can't mix live and test customers on Stripe

Created by Doug Stoddart, Modified on Sat, 2 May, 2020 at 10:37 AM by Doug Stoddart

With Stripe there is a test mode - to allow you to run test cards.

These cards get saved to the customer.

When you're ready you move your system to LIVE by putting in your live Stripe API keys.

If you then try to use the same customer to run a LIVE transaction you will get an error like this:

"Your card was declined.  Your request was in test mode, but used a non test (live) card."

So you must create a new customer before you can run a LIVE card transaction. Or a customer that has not had a TEST card saved against it.

See Also

setting up Stripe

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article