Test Credit Card Numbers for the most popular Payment Gateways

Test Credit Card Numbers for the most popular Payment Gateways

Here you will find some example test cards that you can use to test processing payments through the sandbox of the most popular payment gateways you’ve set up for your GetPaid installs.

  1. Stripe Test Credit Card Numbers
  2. PayPal Test Credit Card Numbers
  3. Square Test Credit Card Numbers
  4. Authorize.net Test Credit Card Numbers
  5. 2Checkout Test Credit Card Numbers
  6. PayU.in Test Credit Card Numbers
  7. Braintree Test Credit Card Numbers

Stripe Test Credit Card Numbers

To test interactively, use this Test Visa Card 4242 4242 4242 4242 into the Dashboard or into any payment forms.

Make sure to use a valid date format, such as “12/34” always using a future date.

You must use any three-digit CVC (four digit for American Express cards) number. You can use any information you want for other form field values.

All US Stripe Test Credit Card Brands

You may want to simulate a successful transaction by using U.S.-based credit/debit or prepaid Visa® / MasterCarte™ / Electron cash® / American Express® / Discover® / Diners Club®

Credit Card brandCredit Card NumberCVCExpiration date
Visa4242 4242 4242 4242Any 3 digitsAny future date
Visa (debit)4000 0566 5566 5556Any 3 digitsAny future date
Mastercard5555 5555 5555 4444Any 3 digitsAny future date
Mastercard (2-series)2223 0031 2200 3222Any 3 digitsAny future date
Mastercard (debit)5200 8282 8282 8210Any 3 digitsAny future date
Mastercard (prepaid)5105 1051 0510 5100Any 3 digitsAny future date
American Express3782 822463 10005Any 3 digitsAny future date
American Express3714 496353 98431Any 3 digitsAny future date
Discover6011 1111 1111 1117Any 3 digitsAny future date
Discover6011 0009 9013 9424Any 3 digitsAny future date
Discover (debit)6011 9811 1111 1113Any 3 digitsAny future date
Diners Club3056 9300 0902 0004Any 3 digitsAny future date
Diners Club (14-digit card)3622 720627 1667Any 3 digitsAny future date
JCB3566 0020 2036 0505Any 3 digitsAny future date
UnionPay6200 0000 0000 0005Any 3 digitsAny future date
Stripe US Test Credit Card Brand

All Stripe International Test Credit Card by Region and Country

You may want to use different test cards for each country so that you get an accurate representation of international payment behavior.

Stripe American Test Credit Cards

CountryCredit Card NumberCredit Card brand
United States (US)4242 4242 4242 4242Visa
Brazil (BR)4000 0007 6000 0002Visa
Canada (CA)4000 0012 4000 0000Visa
Mexico (MX)4000 0048 4000 8001Visa
Stripe American Test Credit Cards

Stripe European Test Credit Cards

CountryCredit Card NumberCredit Card brand
United Arab Emirates (AE)4000 0078 4000 0001Visa
United Arab Emirates (AE)5200 0078 4000 0022Mastercard
Austria (AT)4000 0004 0000 0008Visa
Belgium (BE)4000 0005 6000 0004Visa
Bulgaria (BG)4000 0010 0000 0000Visa
Belarus (BY)4000 0011 2000 0005Visa
Croatia (HR)4000 0019 1000 0009Visa
Cyprus (CY)4000 0019 6000 0008Visa
Czech Republic (CZ)4000 0020 3000 0002Visa
Denmark (DK)4000 0020 8000 0001Visa
Estonia (EE)4000 0023 3000 0009Visa
Finland (FI)4000 0024 6000 0001Visa
France (FR)4000 0025 0000 0003Visa
Germany (DE)4000 0027 6000 0016Visa
Gibraltar (GI)4000 0029 2000 0005Visa
Greece (GR)4000 0030 0000 0030Visa
Hungary (HU)4000 0034 8000 0005Visa
Ireland (IE)4000 0037 2000 0005Visa
Italy (IT)4000 0038 0000 0008Visa
Latvia (LV)4000 0042 8000 0005Visa
Liechtenstein (LI)4000 0043 8000 0004Visa
Lithuania (LT)4000 0044 0000 0000Visa
Luxembourg (LU)4000 0044 2000 0006Visa
Malta (MT)4000 0047 0000 0007Visa
Netherlands (NL)4000 0052 8000 0002Visa
Norway (NO)4000 0057 8000 0007Visa
Poland (PL)4000 0061 6000 0005Visa
Portugal (PT)4000 0062 0000 0007Visa
Romania (RO)4000 0064 2000 0001Visa
Slovenia (SI)4000 0070 5000 0006Visa
Slovakia (SK)4000 0070 3000 0001Visa
Spain (ES)4000 0072 4000 0007Visa
Sweden (SE)4000 0075 2000 0008Visa
Switzerland (CH)4000 0075 6000 0009Visa
United Kingdom (GB)4000 0082 6000 0000Visa
United Kingdom (GB)4000 0582 6000 0005Visa (debit)
United Kingdom (GB)5555 5582 6555 4449Mastercard
Stripe European Test Credit Cards

Stripe Asian/Pacific Test Credit Cards

CountryCredit Card NumberCredit Card brand
Australia (AU)4000 0003 6000 0006Visa
China (CN)4000 0015 6000 0002Visa
Hong Kong (HK)4000 0034 4000 0004Visa
India (IN)4000 0035 6000 0008Visa
Japan (JP)4000 0039 2000 0003Visa
Japan (JP)3530 1113 3330 0000JCB
Malaysia (my)4000 0045 8000 0002Visa
New Zealand (NZ)4000 0055 4000 0008Visa
Singapore (SG)4000 0070 2000 0003Visa
Thailand (TH)4000 0076 4000 0003Visa (credit)
Thailand (TH)4000 0576 4000 0008Visa (debit)
Stripe Asian/Pacific Test Credit Cards

Cards to test Stripe Declined errors

You can simulate payment errors by using test cards from this section to test your integration’s response and recovery processes.

ErrorCredit Card NumberError Code 1Error Code 2
Generic decline4000 0000 0000 0002card_declinedgeneric_decline
Insufficient funds decline4000 0000 0000 9995card_declinedinsufficient_funds
Lost card decline4000 0000 0000 9987card_declinedlost_card
Stolen card decline4000 0000 0000 9979card_declinedstolen_card
Expired card decline4000 0000 0000 0069expired_cardn/a
Incorrect CVC decline4000 0000 0000 0127incorrect_cvcn/a
Processing error decline4000 0000 0000 0119processing_errorn/a
Incorrect number decline4242 4242 4242 4241incorrect_numbern/a
Cards to test Stripe Declined errors

Cards to test fraud prevention errors

With Stripe’s Fraud Prevention System (Radar), you can prevent fraudulent transactions by blocking payment methods if they have a high fraud score or fail security checks. You can also check how your integration handles blocked transactions.

Each card simulates a risk, which causes Radar to block a transaction. If a transaction is blocked by one of these risks, it results in a credit report error with an error message of “fraud.”

ErrorCredit Card Number
Always blocked4100 0000 0000 0019The charge has a risk level of “highest”Radar always blocks it.
Highest risk4000 0000 0000 4954The charge has a risk level of “highest”Radar might block it depending on your settings.
Elevated risk4000 0000 0000 9235The charge has a risk level of “elevated”If you use Radar for Fraud Teams, Radar might queue it for review.
CVC check fails4000 0000 0000 0101If you provide a CVC number, the CVC check fails.Radar might block it depending on your settings.
Postal code check fails4000 0000 0000 0036If you provide a postal code, the postal code check fails.Radar might block it depending on your settings.
Line1 check fails4000 0000 0000 0028The address line 1 check fails.The payment succeeds unless you block it with a custom Radar rule.
Address checks fail4000 0000 0000 0010The address postal code check and address line 1 check both fail.Radar might block it depending on your settings.
Address unavailable4000 0000 0000 0044The address postal code check and address line 1 check are both unavailable.The payment succeeds unless you block it with a custom Radar rule.
Cards to test fraud prevention errors

For More in-depth info about “Stripe Test Cards” see the official doc.

PayPal Test Credit Card Numbers

PayPal, similar to stripe, has a large selection of test accounts that allow site owners to test out various types of payments without having to worry about any real money going through their account. These test accounts are known as “sandbox” accounts. When you are testing your website using these sandbox accounts, you can use them to simulate real world situations to ensure everything works correctly before moving forward with actual payments.

Credit Card BrandCredit Card Number
American Express378282246310005
American Express371449635398431
American Express Corporate378734493671000
Diners Club30569309025904
Discover6011111111111117
Discover6011000990139424
JCB3530111333300000
JCB3566002020360505
Mastercard2221000000000009
Mastercard2223000048400011
Mastercard2223016768739313
Mastercard5555555555554444
Mastercard5105105105105100
Visa4111111111111111
Visa4012888888881881
Visa4222222222222

The Expiration Date must be a valid future date (MM/YY format), CVC ust be 3 digits for all cards exept American Express which requieres 4 numbers

For More in-depth info about “PayPal Test Cards” see the official doc.

Square Test Credit Card Numbers

The Sandbox supports an array of credit cards numbers for all Square-supported credit cards for simulating the client side of payments.

You must specify any future expiry dates for each supported credit cards.

Payments in US dollars, Canadian dollars, and British pounds require a valid postal code; otherwise, they won’t work.

In development, the Sandbox simulates the usage of credit cards in Square-supported regions.

In release, the supported region might differ. Before launching your app into public consumption, make sure that you test the supported regions thoroughly.

Credit Card brandCredit Card NumberCVV
Visa4111 1111 1111 1111111
Mastercard5105 1051 0510 5100111
Discover6011 0000 0000 0004111
Diners Club3000 000000 0004111
JCB3569 9900 1009 5841111
American Express3400 000000 000091111
China UnionPay6222 9888 1234 0000123
Square Gift Card7783 3200 0000 0000
Square.net Test Credit Card Numbers

For More in-depth info about “Square Test Cards” see the official doc.

Authorize.net Test Credit Card Numbers

These test credit cards may be used in the Authorize.net sandbox environment.

For testing purposes, you may enter these credit card numbers into your Authorize.net account:

Credit Card brandCredit Card Number
American Express 3700 000000 00002
Discover6011 0000 0000 0012
JCB3088 0000 0000 0017
Diners Club/ Carte Blanche3800 000000 0006
Visa4007 0000 00027
 Visa4012 8888 18888
 Visa4111 1111 1111 1111
Mastercard5424 0000 0000 0015
 Mastercard2223 0000 1030 9703
 Mastercard2223 0000 1030 9711
Authorize.net Test Credit Card Numbers

For the CVC code, if requested, you can choose any three-number sequence for Visa, MasterCard, Discover, Diners’ Club, Enroute, and JCB cards; and any four-number sequence for American Express cards.

For More in-depth info about “Authorize.net Test Cards,” see the official doc.

2Checkout Test Credit Card Numbers

Credit Card BrandCredit Card Number
VISA4111111111111111
MasterCard5555555555554444
AMEX378282246310005
Discover6011111111111117
JCB3566111111111113
2Checkout Test Credit Card Numbers

You may use any dates in the future as expiration date and any 3-digits CVC for all credit cards except Amex, which requires a 4-digits CVC

For More in-depth info about “2Checkout Test Cards,” see the official doc.

PayU.in Test Credit Card Numbers

Here’s an overview of the different types of cards available for testing purposes using the PayU.in sandobx. You can use these cards to simulate real user interactions during testing.

Payment FlowCredit Card NumberCredit Card BrandExpiryCVVNameOTP
PayU/Merchant Hosted Checkout5123 4567 8901 2346Mastercardany future date123any name123456
PayU/Merchant Hosted Checkout4012 0010 3714 1112Visaany future date123any name123456
Server to Server5497 7744 1517 0603Mastercardany future date412any name123456
PayU.in Test Credit Card Numbers

For More in-depth info about “PayU Test Cards,” see the official doc.

Braintree Test Credit Card Numbers

To use the Braintree SandBox for testing purposes, you must enter valid test credit card numbers. Enter the following credit cards to trigger different results from the SandBox Gateway.

Credit Card NumberCredit Card Brand
378282246310005American Express
371449635398431American Express
36259600000004Diners Club*
6011000991300009Discover
3530111333300000JCB
6304000000000000Maestro
5555555555554444Mastercard
2223000048400011Mastercard
4111111111111111Visa
4005519200000004Visa
4009348888881881Visa
4012000033330026Visa
4012000077777777Visa
4012888888881881Visa
4217651111111119Visa
4500600000000061Visa
6243030000000001UnionPay
6221261111117766UnionPay
6223164991230014UnionPay
Braintree Test Credit Card Numbers

For More in-depth info about “Braintree Test Cards,” see the official doc.

Published by Paolo

Paolo Tajani is the co-founder and growth hacker of AyeCode LTD. With his business partner Stiofan, they are the makers of the GeoDirectory, UsersWP and Invoicing plugins for WordPress. Paolo developed his first WordPress website in 2008. In 2011 he met Stiofan O'Connor and together they started building and marketing successful themes and plugins for WordPress. Today their products are used by +100.000 active websites.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.