Test cards
Last updated: October 2, 2024
Use the test cards provided to test response code outcomes and simulate different payment flows. We provide test card numbers for:
- Credit cards
- Debit cards
- Prepaid cards
Note
Never test using real card numbers or card details in your sandbox environment.
To use the test cards, make a card payment request with:
- The card number listed in the table and the response code you want to test
- Any valid three-digit CVV for Visa and Mastercard cards, or four-digit CVV for American Express cards
- Any future card expiry date, in the format
MM/YY
orMM/YYYY
Information
The sandbox environment stores payments for 30 days. You must complete a test payment flow within 30 days of creating it.
Use the following test cards to simulate a subset of our API response codes.
Response code | Description | Card number | Country code |
---|---|---|---|
| Decline for CVV2 failure |
|
|
| Issuer initiated a stop payment (revocation order) for all authorizations |
|
|
| Refer to card issuer |
|
|
| Invalid transaction |
|
|
| Invalid card number |
|
|
| Insufficient funds |
|
|
| Expired card |
|
|
| – | ||
| Transaction not permitted to cardholder |
(for AFT payments) |
|
(for non-AFT payments) |
| ||
| Suspected fraud |
|
|
| – | ||
| Activity amount limit exceeded |
|
|
| Restricted card |
|
|
| Security violation |
|
|
| One of:
|
|
|
| Blocked, first use - transaction from new cardholder, card not properly unblocked |
|
|
| No security model |
|
|
| – | ||
| 3DS authentication required |
|
|
| No such issuer |
|
|
| Lost card – pick up |
|
|
| Stolen card – pick up |
|
|
| One of:
|
| – |
1{2"source": {3"type": "card",4"number": "4544249167673670",5"cvv": "100",6"expiry_month": 12,7"expiry_year": 20308},9"currency": "USD",10"amount": 100,11"processing_channel_id": "pc_dkgoofpvuwuerekvd4ssr6jwom"12}
1{2"id": "pay_aqwuar5sjb5upkupgywyzapfii",3"action_id": "act_aqwuar5sjb5upkupgywyzapfii",4"currency": "USD",5"amount": 100,6"approved": false,7"status": "Declined",8"response_code": "20051",9"source": {10"type": "card",11"expiry_month": 12,12"expiry_year": 2030,13"last4": "3670",14"fingerprint": "F31828E2BDABAE63EB694903825CDD36041CC6ED461440B81415895855502832",15"bin": "424242"16},17"processed_on": "2023-01-17T17:41:52Z",18"_links": {19"self": {20"href": "https://api.sandbox.checkout.com/payments/pay_aqwuar5sjb5upkupgywyzapfii"21},22"actions": {23"href": "https://api.sandbox.checkout.com/payments/pay_aqwuar5sjb5upkupgywyzapfii/actions"24}25}26}
To simulate a payment, use one of the following test cards:
Card type | Card number | Response code | Country code |
---|---|---|---|
Credit |
|
|
|
Credit |
Card Verification (amount: 0), Capture, and Void actions are declined for this card. |
|
|
Credit |
|
|
|
Credit |
|
|
|
Credit |
|
|
|
Credit |
|
|
|
Debit |
|
|
|
Debit |
|
|
|
Prepaid |
|
| – |
Use these test cards to simulate different 3D Secure (3DS) authentication flows and results.
You can use:
- Any valid three-digit CVV for Visa and Mastercard, or four-digit CVV for American Express
- Any future expiry date, in the format
MM/YY
orMM/YYYY
If your 3DS authentication test is challenged, and you're redirected to the 3DS simulator page, enter the password Checkout1!
.
You can also use all cards on this page as valid network tokens.
Card scheme | Card type | Card number | Country code | Result |
---|---|---|---|---|
American Express | Credit |
|
| Authentication successful |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
| |
American Express | Credit |
|
| Not authenticated |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Debit |
|
| |
American Express | Credit |
|
| Authentication could not be performed |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
| |
Cartes Bancaires or Mastercard | Credit |
|
| Attempted authentication |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Debit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
| |
American Express | Credit |
|
| Authentication rejected |
Mastercard | Debit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
| |
American Express | Credit |
|
| Card not enrolled |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Debit |
|
| |
Visa | Credit |
|
| |
American Express | Credit |
|
| Error message during scheme communication |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Credit |
|
| |
Visa | Credit |
|
| |
American Express | Credit |
|
| No associated 3DS method URL |
DCI | Credit |
|
| |
JCB | Credit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
|
Card scheme | Card type | Card number | Country code | Result |
---|---|---|---|---|
American Express | Credit |
|
| Authentication successful |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Debit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
| |
American Express | Credit |
|
| Authentication attempted |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Debit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
| |
American Express | Credit |
|
| Authentication rejected |
Cartes Bancaires or Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Cartes Bancaires or Visa | Credit |
|
| |
American Express | Credit |
|
| Not authenticated |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
| |
American Express | Credit |
|
| Authentication could not be performed |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Debit |
|
| |
Cartes Bancaires or Mastercard | Credit |
|
| Error message during scheme communication |
Cartes Bancaires or Visa | Credit |
|
| |
Mastercard | Prepaid |
|
| |
Visa | Credit |
|
| |
American Express | Credit |
|
| No associated 3DS method URL |
Cartes Bancaires or Mastercard | Credit |
|
| |
Cartes Bancaires or Visa | Credit |
|
| |
DCI | Credit |
|
| |
JCB | Credit |
|
| |
Mastercard | Credit |
|
| |
UnionPay International | Debit |
| CN | |
Visa | Credit |
|
|
The following cards are not enabled for 3D Secure. If you request a payment with 3ds.enabled: true
:
- The
response_code
field returns the code20150
. - The
response_summary
field returns the valueCard not 3D-Secure enabled
.
Learn more about response code testing.
Card scheme | Card type | Card number | CVV | Country code |
---|---|---|---|---|
JCB (UK only) | Credit |
|
|
|
Mastercard | Debit |
|
|
|
Visa | Credit |
|
|
|
To simulate card verification, use the following cards. If you set:
amount
to0
– The card verification is successful.amount
to a value greater than0
– The authorization request is declined with the corresponding response code.
Learn more about card verification.
Card number | Response code | Description | Country code |
---|---|---|---|
|
| Invalid transaction |
|
| |||
|
| Insufficient funds |
|
| |||
|
| Activity amount limit |
|
| |||
|
| Restricted card |
|
| |||
|
| Security violation |
|
|
To simulate declined incremental authorizations, use any of the following cards.
Learn more about incremental authorization.
Card number | Response code | Error code | Country code |
---|---|---|---|
| N/A |
|
|
| N/A |
|
|
|
| N/A |
|
|
| N/A |
|
You can simulate request a payment with an expired payment instrument, updating the instrument details, and then reattempting the payment.
- Create a payment instrument using one of the following test card numbers and set the expiry date to any date in the past, in the format
MM/YY
orMM/YYYY
:
Card scheme | Card type | Card number | CVV |
---|---|---|---|
Visa | Debit |
| Any three-digit number |
Mastercard | Debit |
| Any four-digit number |
- Request a payment using the payment instrument.
The payment fails and returns the response code20054
because the card is expired. - Update the payment instrument and set the new expiry date to any date in the future, in the format
MM/YY
orMM/YYYY
.
In a live environment, you would contact your customer and ask them to provide updated payment details. - Request a new payment using the updated payment instrument.
The payment succeeds and returns the response code10000
.
Use the following consumer debit test cards to simulate different response code outcomes for a payout:
Response code | Card number | Country code |
---|---|---|
|
|
|
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
|