Pay
Test Cards

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 NumberStatusType
4242 4242 4242 4242authorized/processedVisa
5103 2088 7967 2792authorized/processedMasterCard
3700 0000 0000 002authorized/processedAmerican Express
6011 9102 7504 5718authorized/processedDiscover

Invalid Test Card Numbers

These test card numbers can be used to trigger specific error types.

Card NumberStatus CodeError DescriptionPayment Only
4111 1111 1111 9900card_expiredThe card has expired.No
4111 1111 1111 9901duplicate_attemptThis transaction appears to be a duplicate attempt and has been prevented.Yes
4111 1111 1111 9902exceeded_limitThe amount of the transaction exceeds the allowed limit for this account.Yes
4111 1111 1111 9903general_declineThe card has been declined, contact card issuer for more information.Yes
4111 1111 1111 9904insufficient_balThe card does not have a sufficient balance to complete the payment.Yes
4111 1111 1111 9905invalid_card_codeThe security code is invalid, please check the number.No
4111 1111 1111 9906invalid_card_numberThe card number is invalid, please check the number.No
4111 1111 1111 9907invalid_zipThe ZIP Code does not match the card.No
4111 1111 1111 9908suspicious_activityThis transaction has been identified as suspicious.Yes
4111 1111 1111 9909too_many_attemptsToo many payment attempts have been made, please try again later.Yes
4111 1111 1111 9910invalid_addressThe 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.