Mintcash
Resources

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 numberCVVExpiry3DSOutcome
5123 8172 3406 0000anyany future date¹yesSuccess (processed)
5519 2838 1203 0000anyany future date²noSuccess (processed)
4412 3972 1208 0000anyany future date³yesFail (process_failed)
4302 9128 3702 0000anyany future date³noFail (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.

ExpiryResolution
0856access_denied
0755error
0654provider_error
0553unknown
0452duplicated_transaction
0351auth_fatal_error
0250unable_to_determine_3ds_enrolment
0149card_is_3ds_enrolled
1248card_is_not_3ds_enrolled
1147issuer_decline
1046client_auth_failed
0945provider_fatal_error
0844invalid_details
0743invalid_pin
0642antifraud_error
0541invalid_card
0440fatal_error
0339unable_to_reconcile
0238invalid_amount
0137limit_violation
1236functionality_is_not_permitted
1135invalid_request
1034lost_or_stolen_card
0933declined
0832invalid_otp
0731invalid_3ds_code
0630invalid_card_status
0529insufficient_funds
0428card_expired
0327invalid_cvv
0226invalid_pan
0125invalid_credentials

Any unlisted expiry resolves to general_fatal_error.

Common combinations

  • Insufficient funds: 4302 9128 3702 0000 with expiry 0529
  • Card expired: 4302 9128 3702 0000 with expiry 0428
  • Issuer decline: 4412 3972 1208 0000 with expiry 1147