Test Credit Card Numbers for the most popular Payment Gateways

Test Credit Card Numbers for the most popular Payment Gateways
Last Updated on: Posted inBlog

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 Stripe Payment Gateway interactively, use this Test Visa Card 4242 4242 4242 4242 into the Dashboard or any Stripe 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

the PayPal Payment Gateway, similar to stripe, has a large selection of test accounts that allow site owners to test out various types of payments without worrying about any real money going through their accounts. 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 Square Payments 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

With the 2Checkout payment gateway sandbox, you may use any dates in the future as expiration dates and any 3-digit 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 using the PayU.in payment gateway sandbox. 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

You must enter valid test credit card numbers to use the Braintree Payment SandBox for testing purposes. 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, co-founder and marketing lead at AyeCode LTD, works alongside his business partner Stiofan to develop key WordPress plugins such as GeoDirectory, UsersWP, and GetPaid. Starting his journey with WordPress in 2008, Paolo joined forces with Stiofan O'Connor in 2011. Together, they have been instrumental in creating and marketing a range of successful themes and plugins, now actively used by over 100,000 websites.

2 thoughts on “Test Credit Card Numbers for the most popular Payment Gateways

  1. Why cant I test a Canadian postal code
    Example Sask. it will not accept any postal codes
    I have to chsnge to USA address and zip code to test
    Also works in other countries just not Canada where we are located
    How do I correct htis problem so we can test Canada

    1. Hi,
      Which payment gateway are your trying to do the test with?
      Are you using our plugin? If yes, please submit a support request and we will follow up: https://wpgetpaid.com/support
      Thanks

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.