Test cards
Reusable card numbers and expiry codes for exercising success, failure, and 3DS flows in sandbox.
Use these card numbers in sandbox only. CVV can be any 3 digits. Expiry can be any future date unless you want a specific failure resolution — see the lower table.
Primary cards
| Card number | CVV | Expiry | 3DS | Outcome |
|---|---|---|---|---|
5123 8172 3406 0000 | any | any future date¹ | yes | Success (processed) |
5519 2838 1203 0000 | any | any future date² | no | Success (processed) |
4412 3972 1208 0000 | any | any future date³ | yes | Fail (process_failed) |
4302 9128 3702 0000 | any | any future date³ | no | Fail (process_failed) |
¹ Use 0777 instead of a real expiry to receive status pending (resolution auth_3ds_required).
² Use 0777 to receive status pending on reconciliation.
³ See the table below for specific failure resolutions.
Simulating a declined capture
With captureMethod: "manual", the cards above decide whether a payment reaches authorized, not whether your capture succeeds. To test a capture the bank declines, create the payment with an amount ending in .51 (for example 10.51) and pay with a succeeding card. It's authorised as usual, and POST /payments/{paymentId}/capture then returns status: "failed" with failureCode: "insufficient_funds" and sends payment.failed. Any other amount captures successfully.
This works in test mode only, and only on a payment with fundsHeld: false. When the money is already held, the capture succeeds. See Authorise now, capture later.
Simulating specific failure resolutions
Combine one of the failing cards above with one of these expiries to receive a specific failure resolution. The expiry isn't checked — it's a back-channel signal to the test provider.
| Expiry | Resolution |
|---|---|
0856 | access_denied |
0755 | error |
0654 | provider_error |
0553 | unknown |
0452 | duplicated_transaction |
0351 | auth_fatal_error |
0250 | unable_to_determine_3ds_enrolment |
0149 | card_is_3ds_enrolled |
1248 | card_is_not_3ds_enrolled |
1147 | issuer_decline |
1046 | client_auth_failed |
0945 | provider_fatal_error |
0844 | invalid_details |
0743 | invalid_pin |
0642 | antifraud_error |
0541 | invalid_card |
0440 | fatal_error |
0339 | unable_to_reconcile |
0238 | invalid_amount |
0137 | limit_violation |
1236 | functionality_is_not_permitted |
1135 | invalid_request |
1034 | lost_or_stolen_card |
0933 | declined |
0832 | invalid_otp |
0731 | invalid_3ds_code |
0630 | invalid_card_status |
0529 | insufficient_funds |
0428 | card_expired |
0327 | invalid_cvv |
0226 | invalid_pan |
0125 | invalid_credentials |
Any unlisted expiry resolves to general_fatal_error.
Common combinations
- Insufficient funds:
4302 9128 3702 0000with expiry0529 - Card expired:
4302 9128 3702 0000with expiry0428 - Issuer decline:
4412 3972 1208 0000with expiry1147