Skip to Content
Docs

Test cards

Card numbers for testing approvals, declines, partial approvals, and 3D Secure flows in the Pay.com sandbox.

Use these card numbers to simulate payment outcomes in the sandbox. Test cards behave like live cards in the API without moving real funds.

Test cards work only in the sandbox. In live, they're declined.

If duplicate card checking is enabled on your sandbox account, reusing a test card number that was already tokenized returns decline_code: duplicate_card. Pass "duplicate_card_check": false inside payment_method_options.card in your sandbox charge, hold, or payment session requests to allow reuse.

For any test card, supply:

  • Expiration date: any future date (for example, 12/2028)
  • CVV: any 3-digit number (for example, 123) except 777 and 999, or 4 digits for American Express
  • Billing address: any valid address, except the line 1 and postal code below

These values decline a card that would otherwise be approved, so you can test a failed CVV or address check. The two address values decline only in a billing address whose country is US.

ValueResult / reason codedecline_code
CVV 777Declined, bad CVV / 05do_not_honour
CVV 999Declined, CVV2 failure / N7invalid_cvc
billing_details.address.line1 714 E Cocoa StDeclined, invalid address line 1 / 05do_not_honour
billing_details.address.postal_code 90221Declined, invalid ZIP code / 05do_not_honour

Approved cards

Use these cards to simulate a successful authorization without a 3D Secure challenge.

Card numberBrandFunding type
4242424242424242VisaNot specified
4111111111111111VisaCredit
5555555555554444MastercardCredit
5555444433331111MastercardNot specified
2223003122003222MastercardNot specified
378282246310005American ExpressCredit
371449635398431American ExpressCredit
6011111111111117DiscoverNot specified
6011000990139424DiscoverNot specified

Declined cards

Use these cards to trigger specific issuer decline reasons.

Card numberDecline reason
4000007818415900Do not honor
4000005357086322Insufficient funds
4000004452879855Stolen card

Partial approval cards

These cards are approved for 80% of the amount, for example 800 of a 1000 charge. Use them to test partial approvals, which you turn on in the charge or payment session request.

Card numberBrand
4050453601459870Visa
5200828282828210Mastercard

3DS challenge and result cards

Use these cards to test 3D Secure authentication outcomes, including interactive challenges and post-challenge declines. The cards marked "3DS challenge" go through the challenge. To pass or fail a challenge with a test code, see Create a charge with 3DS.

Card numberResult
4000000000001000Approved
52000000000010963DS challenge, approved
40000000000010913DS challenge, declined (insufficient funds)
40000000000011093DS challenge failure

Additional 3DS and decline code cards

Use these cards to test specific combinations of 3D Secure authentication and issuer response codes.

Card numberResult / reason code
4001888587298851Expired card / 54
4001882420575674Stolen card / 43
40018827581689443DS + insufficient funds
4001886514955924Approved (no 3DS)
4001889458981666Approved (3DS)
4444499122901754Do not honor / 05
4444491578116623Insufficient funds / 51
44444995232871183DS + insufficient funds
4444492185088577Approved (no 3DS)
4444491766949009Approved (3DS)
5333303384453218Policy / 82
53333068199943673DS failure
53333014088675123DS + insufficient funds
5333307639217468Approved (no 3DS)
5333306665631428Approved (3DS)
Was this page helpful?