Stripe testing in LIVE mode

Vijay picture Vijay · Jun 6, 2017 · Viewed 14.7k times · Source

We would like to know how we can test stripe in LIVE for an e-commerce website? The site basically is an e-commerce website and courses are purchased online, how do we test LIVE transactions without using real time credit cards in stripe?

How do others test in LIVE? What are the best practices to test in LIVE?

Please share your thoughts!

Thanks,

Answer

G0dsquad picture G0dsquad · Jun 6, 2017

The purpose of Stripe test mode is to ensure that you get your code into a perfectly working state, and that each type of transaction you are dealing with is fully covered. You can even validate that WebHooks are working by pointing them at your application's test API endpoints.

There's not really a way of 'testing' inside of the live environment as such - typical practice would be to make a real transaction using a company credit card, or one that you are in control of. You can then logon to Stripe Admin and refund the payment once it succeeds.

This is the same with most payment gateways, although there are some that have test mode built into the live API, and used via a specific header, parameter or tracking identifier. Although, this is really just the same end result - you are still testing in test mode.