Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kafkadev/6306dcd4f0dea6d1fd8a6db49cf2868e to your computer and use it in GitHub Desktop.

Select an option

Save kafkadev/6306dcd4f0dea6d1fd8a6db49cf2868e to your computer and use it in GitHub Desktop.

Revisions

  1. Ry Mawby revised this gist Sep 14, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions stripe-credit-card-numbers.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #Test credit card numbers to use when developing with Stripe

    4242424242424242
    Visa
  2. Ry Mawby created this gist Sep 14, 2015.
    83 changes: 83 additions & 0 deletions stripe-credit-card-numbers.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,83 @@

    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.