Testing Credit Card Purchases

Developers can use this documentation to test various credit card scenarios.

Card Purchases

Coinflow provides a set of test credit cards that can be used to test a purchase on sandbox. You may use any address, name, and future expiration date with the below numbers and their corresponding CVVs to simulate a successful purchase. To simulate a failed purchase, set the card zipcode to 99999. To simulate a rejected chargeback protection decision, set the card zipcode to 00000. To simulate a fraud protection rejection, set the card zipcode to 00001.

CardCard NumberCVVZipcodeStatus
Visa4242 4242 4242 4242123anySuccess
Mastercard5555 5555 5555 4444123anySuccess
Discover6011 0100 0000 0003123anySuccess
American Express3782 822463 100051234anySuccess
Visa4242 4242 4242 424212399999Failed
Mastercard5555 5555 5555 444412399999Failed
Discover6011 0100 0000 000312399999Failed
American Express3782 822463 10005123499999Failed

3DS Enabled Card Purchases

Merchants who have 3DS configured can use the below test cards on sandbox to test different 3DS challenge scenarios.
Note: When testing a friction challenge, you may use 1234 as the 2FA to simulate a success. To simulate a 3DS rejection, pass any other number as the 2FA code, for example: 105.

Card NumberCVVExpiry MonthExpiry YearCard3DS Challenge TypeTokenization Provider
5204 247 7500 014711230827MastercardFrictionless ChallengeBasis Theory
4000 0200 0000 00001230827VisaFriction ChallengeBasis Theory
4055 0111 1111 11111230827VisaFriction Challenge FailureBasis Theory
4264 2815 1111 22281230827VisaRejectionBasis Theory
2303 7799 5100 03961230826MastercardFrictionless ChallengeTokenEx
2303 7799 5100 04461230826MastercardFriction ChallengeTokenEx
2303 7799 5100 04531230826MastercardFriction Challenge FailureTokenEx
2303 7799 5100 03471230826MastercardRejectionTokenEx

3DS Testing with Amounts

Alternatively, you can trigger specific 3DS scenarios using any test card by setting the last two digits of the subtotal (in cents) to specific values:

Subtotal Ends In3DS Challenge TypeExample Subtotal
98Friction Challenge Success$9.98
97Friction Challenge Failure$10.97
96Rejection$7.96
Any other valueFrictionless Challenge$5.50

This allows you to test different 3DS flows without needing to switch between different test card numbers.

Testing on Production

When testing in production it is important to adhere to the following guidelines:

  1. Totals for testing transactions being $2+ per transaction
  2. Not more than 1 purchase by same card in a 15 minute increment
  3. Not more than 3 test transactions per card in a day

Failure to follow these guidelines could result in your production account being suspended.