Charge Upgrade Documentation

Testing Cards

Successful Response Cards

In test mode, you can use these test cards to simulate a successful transaction:

Number Card type
4242424242424242Visa
4012888888881881Visa
5555555555554444MasterCard
5105105105105100MasterCard
378282246310005American Express
371449635398431American Express
6011111111111117Discover
6011000990139424Discover
30569309025904Diner's Club
38520000023237Diner's Club
3530111333300000JCB
3566002020360505JCB


Special Response Cards

These cards will produce specific responses that are useful for testing different scenarios:

Number Description
4000000000000010With default account settings, charge will succeed but address_line1_check and address_zip_check will both fail.
4000000000000028With default account settings, charge will succeed but address_line1_check will fail.
4000000000000036With default account settings, charge will succeed but address_zip_check will fail.
4000000000000044With default account settings, charge will succeed but address_zip_check and address_line1_check will both be unchecked.
4000000000000101With default account settings, charge will succeed but cvc_check will fail if a CVC is entered.
4000000000000341Attaching this card to a Customer object will succeed, but attempts to charge the customer will fail.
4000000000000002Charges with this card will always be declined with a card_declined code.
4000000000000127Charge be declined with an incorrect_cvc code.
4000000000000069Charge be declined with an expired_card code.
4000000000000119Charge be declined with a processing_error code.

Additional test mode validation: By default, passing address or CVC data with the card number will cause the address and CVC checks to succeed. If not specified, the value of the checks will be null. Any expiration date in the future will be considered valid.

Testing Specific error codes

Some suggestions:

  • card_declined: Use this special card number - 4000000000000002.
  • incorrect_number: Use a number that fails the Luhn check, e.g. 4242424242424241.
  • invalid_expiry_month: Use an invalid month e.g. 13.
  • invalid_expiry_year: Use a year in the past e.g. 1970.
  • invalid_cvc: Use a two digit number e.g. 99.

The full list of API error codes is available here.

Check the full Stripe documentation for more information on testing.

Support

Having problems setting up and/or using Charge Upgrade? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.