There are times when you may need to test placing an e-commerce order on your staging site. In non-production environments, the Braintree sandbox is used which does not accept real credit cards. To place a test order you can either use one of the testing credit card numbers available from Braintree or the Paypal Sandbox.
Testing Using A Test Credit Card Number
Successful Transaction
Using any of the below credit card numbers on your staging website should result in a successful order being created.
Card number | Card type |
---|---|
378282246310005 | American Express |
371449635398431 | American Express |
6011111111111117 | Discover |
3530111333300000 | JCB |
6304000000000000 | Maestro |
5555555555554444 | Mastercard |
2223000048400011 | Mastercard |
4111111111111111 | Visa |
4005519200000004 | Visa |
4009348888881881 | Visa |
4012000033330026 | Visa |
4012000077777777 | Visa |
4012888888881881 | Visa |
4217651111111119 | Visa |
4500600000000061 | Visa |
Failed Transaction
Using any of the below credit card numbers on your staging website should result in the order being declined. Please note, the transaction success is determined by the test amount you use. For example, when testing decline scenarios please use the following transaction amounts.
Card number | Card type |
---|---|
4000111111111115 | Visa |
5105105105105100 | Mastercard |
378734493671000 | American Express |
6011000990139424 | Discover |
3566002020360505 | JCB |
Testing Using The PayPal Sandbox
The PayPal sandbox is automatically activated on your staging website. To place an order, just hit the 'PayPal' button at checkout and you'll be prompted to proceed through the sandbox.
Transaction Limits
Note that in the staging environment, different transaction amounts will result in different responses from the credit card processor. Any transaction value below 2000 should be processed successfully.
Amount | Authorisation response |
---|---|
0.01 - 1999.99 | Authorized |
2000.00 - 3000.99 | Processor Declined |
3001.00 - 5000.99 | Authorized |
5001.00 | Gateway Rejected |
5001.01 | Processor Declined on PayPal transactions; Authorized on all others |
5001.02 and up | Authorized |
Related articles