Skip to content

Instantly share code, notes, and snippets.

@rymawby
Last active April 19, 2024 13:27
Show Gist options
  • Star 63 You must be signed in to star a gist
  • Fork 21 You must be signed in to fork a gist
  • Save rymawby/9b904feec040b25a8034 to your computer and use it in GitHub Desktop.
Save rymawby/9b904feec040b25a8034 to your computer and use it in GitHub Desktop.
Stripe test credit card numbers for use in development

#Test credit card numbers to use when developing with Stripe

4242424242424242 Visa

4012888888881881 Visa

4000056655665556 Visa (debit)

5555555555554444 MasterCard

5200828282828210 MasterCard (debit)

5105105105105100 MasterCard (prepaid)

378282246310005 American Express

371449635398431 American Express

6011111111111117 Discover

6011000990139424 Discover

30569309025904 Diners Club

38520000023237 Diners Club

3530111333300000 JCB

3566002020360505 JCB

##In addition, these cards will produce specific responses that are useful for testing different scenarios:

4000000000000077 Charge will succeed and funds will be added directly to your available balance (bypassing your pending balance).

4000000000000093 Charge will succeed and domestic pricing will be used (other test cards use international pricing). This card is only significant in countries with split pricing.

4000000000000010 With default account settings, charge will succeed but address_line1_check andaddress_zip_check will both fail.

4000000000000028 With default account settings, charge will succeed but address_line1_check will fail.

4000000000000036 With default account settings, charge will succeed but address_zip_check will fail.

4000000000000044 With default account settings, charge will succeed but address_zip_check andaddress_line1_check will both be unavailable.

4000000000000101 With default account settings, charge will succeed unless a CVC is entered, in which case cvc_check will fail and the charge will be declined.

4000000000000341 Attaching this card to a Customer object will succeed, but attempts to charge the customer will fail.

4000000000000002 Charge will be declined with a card_declined code.

4100000000000019 Charge will be declined with a card_declined code and a fraudulent reason.

4000000000000127 Charge will be declined with an incorrect_cvc code.

4000000000000069 Charge will be declined with an expired_card code.

4000000000000119 Charge will be declined with a processing_error code.

@Hoang-Minh
Copy link

Awesome. Thank you.

@jmny
Copy link

jmny commented Sep 7, 2021

or you can read the official documentation, with all the testing cards : https://stripe.com/docs/testing

@georgesjeandenis
Copy link

Thx

@adhil-bit
Copy link

hi i need to add card in google wallet via stripe what card i can use for it?

@rymawby
Copy link
Author

rymawby commented Sep 7, 2023

@adhil-bit Might be worth checking these out 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment