Test Card Numbers
Card transactions can be tested using a test API key. Any dummy card number can be used as long as it conforms to a valid card number format. Below are a few examples of valid card numbers.
Valid Test Card Numbers
| Card Number | Status | Type |
|---|---|---|
4242 4242 4242 4242 | authorized/processed | Visa |
5103 2088 7967 2792 | authorized/processed | MasterCard |
3700 0000 0000 002 | authorized/processed | American Express |
6011 9102 7504 5718 | authorized/processed | Discover |
Invalid Test Card Numbers
These test card numbers can be used to trigger specific error types.
| Card Number | Status Code | Error Description | Payment Only |
|---|---|---|---|
4111 1111 1111 9900 | card_expired | The card has expired. | No |
4111 1111 1111 9901 | duplicate_attempt | This transaction appears to be a duplicate attempt and has been prevented. | Yes |
4111 1111 1111 9902 | exceeded_limit | The amount of the transaction exceeds the allowed limit for this account. | Yes |
4111 1111 1111 9903 | general_decline | The card has been declined, contact card issuer for more information. | Yes |
4111 1111 1111 9904 | insufficient_bal | The card does not have a sufficient balance to complete the payment. | Yes |
4111 1111 1111 9905 | invalid_card_code | The security code is invalid, please check the number. | No |
4111 1111 1111 9906 | invalid_card_number | The card number is invalid, please check the number. | No |
4111 1111 1111 9907 | invalid_zip | The ZIP Code does not match the card. | No |
4111 1111 1111 9908 | suspicious_activity | This transaction has been identified as suspicious. | Yes |
4111 1111 1111 9909 | too_many_attempts | Too many payment attempts have been made, please try again later. | Yes |
4111 1111 1111 9910 | invalid_address | The billing address does not match the card. | No |
Use any future expiry date and any security code with these numbers. A payment made with one of them is declined with the status code shown. A card with No under Payment Only also fails when saved on its own, for example with the Payment Method API: the request returns an invalid field error and no payment method is created.
Security code failures: To test a declined security code (CVV), use 4111 1111 1111 9905
with any security code.