Test Cards

This guide will provide you with all you need to know about testing with credit cards. We’ll cover the different types of credit cards, how to use them, and what their respective responses mean.

What Are Test Cards?

Test cards are special credit card numbers used to simulate transactions in a testing environment. They help you see how a payment gateway (the system handling online payments) responds to various conditions without using real money.

How Do I Use Them?

Standard Test Cards (Card Network)

Here’s a list of test card numbers for different types of cards like Mastercard, Visa, American Express, etc. Use these cards to test if your payment system is working correctly.

Transaction Response Explanations

The following terms correspond to the Transaction Response tables you’ll see below, here is what these response values are trying to communicate:

TermDefinition
APPROVEDThe transaction went through.
DECLINEDThe transaction was rejected.
EXPIRED_CARDThe card has expired.
TIMED_OUTThe transaction took too long.
ACQUIRER_SYSTEM_ERRORThere was an error with the payment system.

Simple Test Cards Reference

Visa Cards

CARD NUMBEREXPIRY DATECVVADDRESSOUTCOME
450875001574101901/39100Alpha StApproved
450875001574101905/39100Alpha StDeclined
450875001574101904/27100Alpha StExpired Card
450875001574101908/28100Alpha StTimed Out
450875001574101901/39102Alpha StCVV No Match

Mastercard

CARD NUMBEREXPIRY DATECVVADDRESSOUTCOME
512345000000000801/39100Alpha StApproved
512345000000000805/39100Alpha StDeclined
512345000000000801/39102Alpha StCVV No Match
512345000000000801/39100November StAddress No Match

American Express

CARD NUMBEREXPIRY DATECVVADDRESSOUTCOME
34567890123456401/390000Alpha StApproved
34567890123456404/370000Alpha StDeclined
34567890123456405/180000Alpha StExpired Card
34567890123456401/391111Alpha StCVV No Match
34567890123456401/390000November StAddress No Match

Discover

CARD NUMBEREXPIRY DATECVVADDRESSOUTCOME
601100317998868601/39100Alpha StApproved
601100317998868605/39100Alpha StDeclined

Standard test cards (Card Network) All supported regions

Test CardsCard Number
Mastercard5123450000000008
Visa4508750015741019
American Express345678901234564
Discover6011003179988686

Transaction responses

Transaction Response Gateway CodeExpiry Date
APPROVED01/39
DECLINED05/39
EXPIRED_CARD04/27
TIMED_OUT08/28
ACQUIRER_SYSTEM_ERROR01/37
UNSPECIFIED_FAILURE02/37
UNKNOWN05/37

CSC/CVV responses

CSC/CVV Response Gateway CodeCSC/CVV
MATCH100
NOT_PROCESSED101
NO_MATCH102
(American Express ONLY) MATCH1000
(American Express ONLY) NOT_PROCESSED1010
(American Express ONLY) NO_MATCH1020

AVS responses

AVS Response Gateway CodeBilling Address Street
ADDRESS_MATCHAlpha St
NOT_VERIFIEDGamma St
NO_MATCHNovember St
SERVICE_NOT_AVAILABLE_RETRYRomeo St
SERVICE_NOT_SUPPORTEDSierra St
NOT_AVAILABLEUniform St
ZIP_MATCHWhiskey St
ADDRESS_ZIP_MATCHX-ray St
NAME_MATCHKilo St
NAME_ADDRESS_MATCHOscar St
NAME_ZIP_MATCHLima St
NOT_REQUESTEDZero St

American Express test cards (Card Network & Acquirer) All supported regions

Test CardCard Number
American Express345678901234564

American Express Transaction responses

Transaction Response Gateway CodeExpiry Date
APPROVED01/39
UNSPECIFIED_FAILURE04/19
DECLINED04/37
EXPIRED_CARD05/18, 05/37
ACQUIRER_SYSTEM_ERROR11/18

American Express CSC/CVV responses

CSC/CVV Response Gateway CodeCSC/CVV
MATCH0000
NO_MATCH1111
NOT_PROCESSED2222

American Express AVS responses

AVS Response Gateway CodeBilling Address Street
ADDRESS_MATCHAlpha St
ADDRESS_ZIP_MATCHMike St
NOT_AVAILABLEUniform St
NAME_MATCHKilo St
NO_MATCHNovember St
ZIP_MATCHZulu St
SERVICE_NOT_AVAILABLE_RETRYRomeo St
SERVICE_NOT_SUPPORTEDSierra St
NAME_ZIP_MATCHLove St
NAME_ADDRESS_MATCHOlive St
NOT_REQUESTEDZero St