It's mostly necessary during development, but you may need to test placing orders from time to time to ensure everything is working correctly. An example of this might be when you make changes to your custom viewset, an integration, or after an upgrade. This article will help you know how to use credit cards when you're testing.
The following prerequisites will be necessary to accomplish the goals of this article:
- Have access to your Hotcakes store administration
- Configure your store using the getting started wizard or do it manually
The information provided here is based upon the default configuration of Hotcakes and the default viewset. Your views may have more or less functionality, depending on how it was implemented by your technical team.
How to Test Placing Orders Using Credit Cards
In general, you should search the documentation for your respective payment gateway that you're using to determine the most correct way to test transactions. Some payment gateways like Stripe even provide special credit card numbers for you to use to test negative scenarios, such as a declined payment.
Regardless of your payment gateway, the following credit card numbers appear to work with them all. Even better, you can go to GetCreditCardNumbers.com and generate even more that should work with most.
We took the liberty of searching for the respective payment testing pages for our out of the box payment gateways and listed them below. You'll also find testing conditions and other useful information for most of these vendors.