Skip to content
Last updated

Test cards and test accounts

Use these in sandbox. Never send a real card number to a non-production environment, and never send one of these to production.

Test cards

All of them use expiry 12/28. Any cardholder name works.

BrandNumberCVV
Visa4012000098765439999
Visa4012881888818888999
Mastercard5146315000000055998
Mastercard, keyed5146312620000045998
Mastercard 2-series2223000048400011998
American Express3714496353923769997
Discover6011000993026909996
Discover CUP6282000123842342996
Discover CUP6221261111112650996
Diners3055155515160018996
JCB3530142019945859996

American Express uses a four-digit CID; the rest use a three-digit CVV.

Testing AVS and CVV

To get both an AVS and a CVV result back, send this combination:

FieldValue
pan4012000098765439
expiry{ "month": 12, "year": 2028 }
cvv999
billing_address.line18320
billing_address.postal_code85284

The response carries avs_result_code, avs_response and cvv_result_code. See AVS and CVV for what each code means.

Test bank accounts

ACH testing uses the processor's own test environment. 021000021 is a valid test routing number; the account numbers that pair with it are issued per merchant rather than published, so ask your implementation contact for the set attached to your account.

No card number causes a decline

There is no decline-triggering PAN. Declines come from the issuer's test system and depend on the processor configuration behind your merchant account, not on which test number you pick.

To exercise decline handling against this documentation's mock, send the header x-redocly-response-body-example: saleDeclined. See Environments and test data.

Next steps