Reputation: 119
I have to use a live database to test stripe payments using customer stripe tokens that are already stored in the database. This are real customer stripe tokens based on real credit cards. But I am using the test account credentials to make payments to. I don't want to make real payments to the stripe account.
My question is can I and how can I use this live tokens to make test payments to my test account.
Upvotes: 2
Views: 3181
Reputation: 17505
You cannot use live resources in test mode or vice-versa. The "test" and "live" parts of your Stripe accounts are two different environments that cannot communicate with each other.
You'd need to create customers in test mode, using the testing card numbers that Stripe provides, in order to use them in test payments.
Upvotes: 3