How to test placing orders using credit cards


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:

Getting Started

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 and generate even more that should work with most.

Card Type Number
American Express 378282246310005
Discover 6011111111111117
Mastercard 5555555555554444
Visa 4111111111111111

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.

Have more questions? Submit a request

Need More Help?

Do you need more assistance with this article? Please review your support options.