Guide

Test cards

Card numbers that produce a known outcome in test mode, and the checkout panel that fills them in.

In test mode, real-looking card numbers produce scripted outcomes: approve, decline, or ask the payer to verify with their bank (3-D Secure). No money moves. Use them with your ak_test_ keys only.

Every card uses expiry 01/29. Any CVV works: 3 digits, or 4 for Amex.

Start here

Four cards cover what most integrations need to see.

CardWhat happensResult
4000 1000 0000 0000Payment succeedsApproved
4000 0000 0000 2503Bank asks for verification, then approvesApproved
4000 0000 0000 2370Bank asks for verification, then declinesDeclined
4000 0000 0000 2925Payment is declinedDeclined

When the bank asks for verification, the hosted page shows the bank's challenge screen. In test mode it is a sandbox screen; submit it and the card decides the result.

Approved ends with the Payment Intent succeeded, or requires_capture if you capture manually. Declined leaves it in requires_payment_method with last_payment_error set, and the payer can try another card. See Declines & card testing for the error shape.

All cards

Grouped by what the payer sees. The 3DS column is the raw result your support team will see on the payment: Y authenticated, A attempted, N not authenticated, R rejected, U unavailable, B bypassed.

Succeeds

CardBrandWhat happens3DSResult
4000 1000 0000 0000VisaPayment succeedsY, no challenge, ECI 05Approved, verified
4000 0000 0000 2719VisaBank isn't enrolled, payment succeedsA, ECI 06Approved, verified
5200 0000 0000 2482MastercardBank isn't enrolled, payment succeedsA, ECI 01Approved, verified
3400 000000 02872AmexBank isn't enrolled, payment succeedsA, ECI 06Approved, verified

Bank asks for verification

CardBrandWhat happens3DSResult
4000 0000 0000 2503VisaBank asks for verification, then approvesChallenge, then Y, ECI 05Approved, verified
5200 0000 0000 2151MastercardBank asks for verification, then approvesChallenge, then Y, ECI 02Approved, verified
3400 000000 02534AmexBank asks for verification, then approvesChallenge, then Y, ECI 05Approved, verified
4000 0000 0000 2370VisaBank asks for verification, then declinesChallenge, then NDeclined
4000 0000 0000 2420VisaVerification can't finish, payment goes throughChallenge, then U, ECI 07Approved
4000 0000 0000 2644VisaVerification fails with an errorChallenge, then U, error 476Declined

Declined

CardBrandWhat happens3DSResult
4000 0000 0000 2925VisaPayment is declinedNDeclined
5200 0000 0000 2276MastercardPayment is declinedN, ECI 00Declined
3400 000000 02096AmexPayment is declinedN, ECI 07Declined
4000 0000 0000 2537VisaBank rejects the paymentRDeclined

Verification unavailable

CardBrandWhat happens3DSResult
4000 0000 0000 2313VisaBank can't verify, payment goes throughU, ECI 07Approved
4000 0000 0000 2990VisaCard network can't verify, payment goes throughEnrollment U, directory server errorApproved
4000 0000 0000 2446VisaEnrollment check fails, payment goes throughEnrollment U, processing errorApproved
4000 0000 0000 2354VisaVerification times out, payment goes throughEnrollment U, directory server timeoutApproved
4000 0000 0000 2560VisaVerification is skipped, payment goes throughEnrollment B, bypassedApproved

Approved, verified means the bank confirmed the payer, so fraud chargeback liability moves to the card issuer. Approved alone means the payment went through without that confirmation.

The test cards panel on checkout

Test-mode checkout pages carry a Test cards tab on the right edge. Open it and tap a card:

  • The card number is copied to your clipboard. Paste it into the card field; card fields are hosted securely and can't be filled for you.
  • Name, email, phone, and billing address are filled in. The payer name is the test case, for example "Payment succeeds Visa Test", so you can find the payment in your dashboard later.

The panel has two tabs. Basics lists the four cards above. All cards lists every card with its 3DS result. The panel opens on Basics; All cards is one tab away.

The panel only appears when the session is in test mode and its card form supports these numbers. Live sessions never show it.

Repeated declines on one Payment Intent lock it (422 CARD_BLOCKED), in test mode too. If you run the decline cards back to back, create a fresh Checkout Session for each run.

Powered by CX Pay