Skip to content

Instantly share code, notes, and snippets.

@adamlutz
Last active November 28, 2023 12:08
Show Gist options
  • Save adamlutz/3e2641787b1de29e2288 to your computer and use it in GitHub Desktop.
Save adamlutz/3e2641787b1de29e2288 to your computer and use it in GitHub Desktop.
stripe test payment cheatsheet
Valid Cards
4242424242424242 Visa
4012888888881881 Visa
5555555555554444 MasterCard
5105105105105100 MasterCard
378282246310005 American Express
371449635398431 American Express
6011111111111117 Discover
6011000990139424 Discover
30569309025904 Diner's Club
38520000023237 Diner's Club
3530111333300000 JCB
3566002020360505 JCB
Invalid Cards
4000000000000010 address_line1_check and address_zip_check will both fail
4000000000000028 address_line1_check will fail
4000000000000036 address_zip_check will fail
4000000000000101 cvc_check will fail if a CVC is entered
4000000000000341 Attaching this card to a Customer object will succeed, but attempts to charge the customer will fail
4000000000000002 Charges with this card will always be declined with a card_declined code
4000000000000127 Will be declined with an incorrect_cvc code
4000000000000069 Will be declined with an expired_card code
4000000000000119 Will be declined with a processing_error code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment