Switch branches/tags
Nothing to show
Clone or download
Latest commit 0b6938c May 6, 2018


Test Payment Cards

A list of available test payment cards for various payment gateways. Please feel free to contribute cards for any payment gateways not currently listed here by making a pull request.

Table of Contents

Payment Gateways

Most payment gateways will accept any date set in the future for the card expiry date unless specified differently below.


The following test credit card numbers will only work in the Authorize.Net sandbox. If the card code is required use any 3-digit combination except for American Express which requires a 4-digit combination. See the Authorize.Net Testing Guide for further details.

Card Type Card Number(s)
American Express 370000000000002
Diners Club/ Carte Blanch 38000000000006
Discover 6011000000000012
JCB 3088000000000017
MasterCard 5424000000000015
Visa 4007000000027, 4012888818888 and 4111111111111111


The following test cards are for Bambora as defined on their developers site. Use the card expiry date "05/20".

Card Type Card Number CVC
MasterCard (Denmark) 5156 2300 0000 0004 000
MasterCard (Norway) 5206 8300 0000 0001 000
MasterCard (Sweden) 5125 8600 0000 0006 000
Visa (Denmark) 4154 2100 0000 0001 000
Visa (Norway) 4002 7700 0000 0008 000
Visa (Sweden) 4002 6200 0000 0005 000


The following card numbers do not trigger specific credit card errors:-

Card Type Card Number(s)
American Express 378282246310005 and 371449635398431
Discover 6011111111111117
JCB 3530111333300000
Maestro 6304000000000000
Mastercard 5555555555554444
Visa 4111111111111111, 4005519200000004, 4009348888881881, 4012000033330026, 4012000077777777, 4012888888881881, 4217651111111119 and 4500600000000061

To trigger an unsuccessful credit card verification use one of the following cards:-

Card Type Card Number(s) Verification Response
American Express 378734493671000 Processor declined
Discover 6011000990139424 Processor declined
Mastercard 5105105105105100 Processor declined
Visa 4000111111111115 Processor declined
JCB 3566002020360505 Failed (3000)

Further details about using Braintree test payment cards can be found on their testing page.


Test cards for www.cashnet.com.

Card Number Expiry Date
4111111111111111 any date in the future

Note CVV in production, but not in test.


Further information about testing, including this list of valid test credit card numbers, can be found at the CyberSource Developer Center.

Card Type Card Number(s)
American Express 378282246310005
Discover 6011111111111117
JCB 3566111111111113
Maestro (International) 50339619890917 and 586824160825533338
Maestro (UK Domestic) 6759411100000008, 6759560045005727054, and 5641821111166669
Mastercard 2222420000001113, 2222630000001125, and 5555555555554444
UATP 135412345678911
VISA 4111111111111111


Test cards for www.epay.eu.

Card Type Card Number
Visa / Visa Electron 3333333333333000
Visa / Dankort 4444444444444000
MasterCard 5555555555555000

Change the last 3 digits of the card number for the payment to be rejected with the error code represented by the changed digits.


Card Number CVV Expiry Date
4111111111111111 123 12/16 (Or any date in the future)

Test payment card details taken from the Klarna developer documentation.


Card Type Card Number
Visa 4111111111111111

Details about using test cards in Ogone can be found here: Create and configure your Ogone Test Account.


The following cards are for NetPay. See their test card page for more details such as how to generate transaction responses, address verification responses and CSC code validation responses.

The card numbers below can be used for testing. You will only be able to use card numbers for card types supported by your merchant/acquirer configuration.

Card Type Card Number Notes
Amex non Safekey 340353278080900 Amex Expiry date driven card
Amex Safekey 345678901234564 Amex Expiry date driven card
Laser 6771171146509164 Expiry driven card
Maestro 6759010012345678914 Expiry driven card (3ds registered)
Maestro 675938410597000022 Expiry driven card
Maestro 6759000968432575 Expiry driven card
Maestro 6759173972560846 Expiry driven card
Maestro int'l 5000008602179457569 Expiry driven card
Mastercard credit 5301250070000050 Expiry driven card
Mastercard credit 5454609899026213 Expiry driven card
Mastercard credit 5123456789012346 Expiry driven card (3ds registered)
Mastercard debit 5133333333333338 Expiry driven card (3ds not available)
Mastercard debit 5111111111111118 Expiry driven card (not 3ds registered)
Mastercard 2223000000000023 Expiry driven card
Visa 491748000000 Expiry driven card. Fails Mod 10
Visa Credit 4715059999000437 Expiry driven card credit
Visa Debit 4917480000000008 Expiry driven card
Visa Debit 4539791001730106 Expiry driven card (3ds registered)
Visa Debit 4508750015741019 Expiry driven card


Card Type Card Number 3DS Successful Authorisation
American Express 9905000000005139 Y Y
American Express 9905000000000015 N Y
American Express 9905000000010253 U Y
American Express 9905000000005287 Y N
American Express 9905000000000163 N N
American Express 9905000000010402 U N
Mastercard (Debit) 9900000000005159 Y Y
Mastercard (Debit) 9900000000000010 N Y
Mastercard (Debit) 9900000000010258 U Y
Mastercard (Debit) 9900000000005282 Y N
Mastercard (Debit) 9900000000000168 N N
Mastercard (Debit) 9900000000010407 U N
Mastercard (Credit) 9901000000005133 Y Y
Mastercard (Credit) 9901000000000019 N Y
Mastercard (Credit) 9901000000010257 U Y
Mastercard (Credit) 9901000000005281 Y Y
Mastercard (Credit) 9901000000000167 N Y
Mastercard (Credit) 9901000000010406 U Y
Visa (Debit) 9902000000005132 Y Y
Visa (Debit) 9902000000000018 N Y
Visa (Debit) 9902000000010256 U Y
Visa (Debit) 9902000000005280 Y N
Visa (Debit) 9902000000000166 N N
Visa (Debit) 9902000000010405 U N
Visa (Credit) 9903000000005131 Y Y
Visa (Credit) 9903000000000017 N Y
Visa (Credit) 9903000000010255 U Y
Visa (Credit) 9903000000005289 Y N
Visa (Credit) 9903000000000165 N N
Visa (Credit) 9903000000010404 U N

The above test card details for Pay360 can be found on their developers support website.


Card Type Card Number(s)
American Express 378282246310005 and 371449635398431
American Express Corporate 378734493671000
Australian BankCard 5610591081018250
Diners Club 30569309025904 and 38520000023237
Discover 6011111111111117 and 6011000990139424
JCB 3530111333300000 and 3566002020360505
MasterCard 5555555555554444 and 5105105105105100
Visa 4111111111111111, 4012888888881881 and 4222222222222

You can also create a Sandbox account to make a test payment with instead of using a test payment card. The UK sandbox appears to require this method rather than using a test payment card.


Card Type Card Number(s)
Maestro 491182014295916748
Mastercard (Credit) 5555555555554444 and 5105105105105100
Visa 4444333322221111 and 4444444444441111


Any date in the future can be used for the expiry date and any 3 digits for the CVC number. A full list of test cards for Paytrail can be found on their website.

Card Type Card Number
American Express 375700000000002
Mastercard 5413000000000000
Visa 4925000000000004


Card Number Expiration CVV2 CIP Code
4548812049400004 12/20 123 123456


Card Number Description
9451123100000111 Saferpay test card "enrolled", returns ECI=1. Test card for 3D-Secure processing.
9451123100000004 Saferpay test card "not enrolled", returns ECI=2. Normal test card without 3D-Secure processing.
9451123100000202 Saferpay test card "unable to enroll", returns ECI=0. Test card for SSL processing only.
9451123100000103 Saferpay test card "Result".

Test card for special Result codes.

The last two digits of the AMOUNT attributes define the result code of the authorization response. Only if the last two digits of the value are set to "00" or "01" will payment be authorized. In doing so requests with AMOUNT "00" receive ECI=1 in the response, which means the 3-D Secure liability shift is given whilst a liability shift is not applicable for requests with AMOUNT "01" receiving ECI=0 in the response. For all other requests where AMOUNT is not "00" or "01" Saferpay will send an answer with RESULT="65" where AUTHRESULT will contain the error code.


Card Type Card Number Issue CVV2 3DS
American Express 374200000000004 1234 N/A
Diner's Club 36000000000008 123 N/A
JCB 3569990000000009 123 N/A
Laser 6304990000000000044 123 N/A
Maestro (UK) 5641820000000005 and 6759000000005 01 123 Y
Maestro (Germany) 6705000000008 01 123 Y
Maestro (Ireland) 6777000000007 01 123 Y
Maestro (Spain) 6766000000000 01 123 Y
Maestro (International) 300000000000000004 123 Y
MasterCard (Credit) 5404000000000001 123 Y
MasterCard (Credit) 5404000000000043 123 N
MasterCard (Credit) 5404000000000084 123 U
MasterCard (Credit) 5404000000000068 123 E
MasterCard (Debit) 5573470000000001 123 Y
Visa 4929000000006 123 Y
Visa 4929000005559 123 N
Visa 4929000000014 123 U
Visa 4929000000022 123 E
Visa Corporate 4484000000002 123 N
Visa Debit / Delta 4462000000000003 123 Y
Visa Electron 4917300000000008 123 Y

All test cards use the address "88" and postcode "412".

The 3DSecure responses (3DS) are:-

  • Y - Enrolled, and will progress to the password page to complete verification.
  • N - NOT Enrolled and will return a 3DSecureStatus=NOTAVAILABLE back to your system.
  • U - Unable to verify enrollment and will return a 3DSecureStatus=NOTAVAILABLE back to your system.
  • E - Error occurred during the 3D Secure verification. This will return a 3DSecureStatus=ERROR back to your system.

Full details can be found on their Test card details for your test transactions page.


Documentation for testing can be found in the SecurePay Integration guides.

Card Type Card Number CVV2
Visa 4444333322221111 123


Full details of Stipe's test cards can be found on their Testing page of their documentation.

Card Type Card Number
American Express 378282246310005 and 371449635398431
Diners Club 30569309025904 and 38520000023237
Discover 6011111111111117 and 6011000990139424
JCB 3530111333300000 and 3566002020360505
MasterCard 5555555555554444
MasterCard (Debit) 5200828282828210
MasterCard (Prepaid) 5105105105105100
Visa 4242424242424242 and 4012888888881881
Visa (Debit) 4000056655665556


Full details of WePay's test cards can be found on their Testing page of their documentation.

Card Type Card Number CVV2
American Express 378282246310005 and 371449635398431 Any
MasterCard 5496198584584769 Any
Visa 4003830171874018 Any


WorldPay test cards do not have a card verification code and issue number.

Card Type Card Number(s)
Airplus 122000000000003
American Express 34343434343434
Cartebleue 5555555555554444
Dankort 5019717010103742
Diners 36700102000000 and 36148900647913
Discover card 6011000400000000
JCB 3528000700000000
Laser 630495060000000000 and 630490017740292441
Maestro 6759649826438453 and 67999990100000000019
MasterCard 5555555555554444 and 5454545454545454
Visa 4444333322221111, 4911830000000 and 4917610000000000
Visa Debit 4462030000000000 and 4917610000000000003
Visa Electron (UK only) 4917300800000000
Visa Purchasing 4484070000000000

Further Resources

This section has some other external resources you might want to check out.



This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.