Skip to main content
In the sandbox, the outcome of a card payment is determined by the last 4 digits of the card number. Any Luhn-valid card not listed in the scenarios below is approved.
The number must be Luhn-valid, otherwise the payment form will reject it before it even reaches the gateway. E.g.: 4000 0000 0000 0000 is rejected by the form; 4000 0000 0002 0000 is accepted. Use the generator below to avoid this entirely.

Test card generator

Choose a brand and a scenario — the generated number is always Luhn-valid and ends with the last-4 for that scenario.
Expiry: any future date (e.g.: 12/30). CVV: any value (e.g.: 123) — it is ignored by the sandbox. Brand: determined by the first digit (4 Visa, 5 Mastercard, 6 Elo, 3 Hipercard).

Scenarios by last-4

Approved

Last-4Result
1111, 0000, or any other not listedApproved (paid)
0010Stays awaiting payment (waiting_payment)

Declined (permanent — retrying will not help)

Last-4Decline codeMeaning
1001INSUFFICIENT_FUNDSInsufficient funds
1002CARD_DECLINEDCard declined
1003EXPIRED_CARDExpired card
1004INVALID_CARD_NUMBERInvalid card number
1005INVALID_CVVInvalid CVV
1006FRAUD_SUSPECTEDSuspected fraud
1007DO_NOT_HONORNot authorized
1008EXCEEDED_LIMITLimit exceeded
1009RESTRICTED_CARDRestricted card
1010LOST_STOLEN_CARDLost or stolen card
1011NOT_PERMITTEDOperation not permitted
1012INVALID_AMOUNTInvalid amount
1013DUPLICATE_TRANSACTIONDuplicate transaction

Temporary failure (retryable)

Last-4Decline codeMeaning
2001PROCESSING_ERRORProcessing error
2002GATEWAY_TIMEOUTGateway timeout
2003NETWORK_ERRORNetwork error
2004ISSUER_UNAVAILABLEIssuer unavailable
2005NO_ROUTENo payment route available

Special

Last-4Behavior
3001Slow timeout — fails (retryable) after ~5 seconds
9999Unexpected error (exception)

Ready-to-use cards (copy and paste)

All Luhn-valid:
ScenarioNumberCVVExpiry
Approved4000 0000 0002 000012312/30
Insufficient funds4111 0009 1111 100112312/30
Card declined4111 0008 1111 100212312/30
Suspected fraud4111 0004 1111 100612312/30
Processing error (retryable)4111 0007 1111 200112312/30
5s timeout4111 0005 1111 300112312/30
For all other scenarios, use the generator above.
These scenarios apply to the sandbox (FakeProvider). In production, approval or decline depends on the card’s actual issuing bank.