Test values

On this page:

Test card numbers

For use in our test environment. With these cards you can specify an expiry date up to seven years in the future. These cards do not have an issue number, a registered address or a card verification code (use theCVC/CVV and AVSnumbers below).

Card typeTest card number
Airplus122000000000003
American Express343434343434343
Cartebleue5555555555554444
Dankort5019717010103742
Diners36700102000000 and 36148900647913
Discover card6011000400000000
JCB3528000700000000
Maestro6759649826438453
MasterCard5555555555554444, 5454545454545454 and 2221000000000009
MasterCard Debit5163613613613613
Visa4444333322221111, 4911830000000 and 4917610000000000
Visa Debit4462030000000000 and 4917610000000000003
Visa Electron (UK only)4917300800000000
Visa Purchasing4484070000000000

Card payout test values

Mastercard PT

Result descriptionMagic value (Amount)Card type (see Test card numbers section above)Currency
AUTHORISED1000Mastercard, Mastercard Debit, MaestroMID settlement currency
REFUSED310Mastercard, Mastercard Debit, MaestroMID settlement currency
ERROR320Mastercard, Mastercard Debit, MaestroMID settlement currency

Issuer response test values

Input these magic values in:

  • <cardHolderName> (Direct model)

  • The Cardholder's name field on the test payment page (Hosted model)

The results come back in <ISO8583ReturnCode>, and you can view them in:

  • The test payment response (Direct)

  • Notifications

  • Inquiries

  • The test MAI

Magic valueResult codeResult description
AUTHORISEDN/AAUTHORISED
REFUSEDN/AREFUSED
ERRORN/AERROR
REFUSED44HOLD CARD
REFUSED55REFUSED
REFUSED88APPROVE AFTER IDENTIFICATION
REFUSED1313INVALID AMOUNT
REFUSED1515INVALID CARD ISSUER
REFUSED1717ANNULATION BY CLIENT
REFUSED2828ACCESS DENIED
REFUSED2929IMPOSSIBLE REFERENCE NUMBER
REFUSED3333CARD EXPIRED
REFUSED3434FRAUD SUSPICION
REFUSED3838SECURITY CODE EXPIRED
REFUSED4141LOST CARD
REFUSED4343STOLEN CARD, PICK UP
REFUSED5151LIMIT EXCEEDED
REFUSED5555INVALID SECURITY CODE
REFUSED5656UNKNOWN CARD
REFUSED5757ILLEGAL TRANSACTION
REFUSED6262RESTRICTED CARD
REFUSED6363SECURITY RULES VIOLATED
REFUSED7575SECURITY CODE INVALID
REFUSED7676CARD BLOCKED
REFUSED8585REJECTED BY CARD ISSUER
REFUSEDR1973Revocation of authorization order
REFUSEDR2975Revocation of all authorizations order

3D Secure (3DS) test values

Input these magic values in:

  • <cardHolderName> (Direct model)

  • The Cardholder's name field on the test payment page (Hosted model)

The 3DS results come back in <ThreeDSecureResult>, and you can view them in:

  • The test payment response (Direct)

  • Notifications

  • Inquiries

  • The test MAI

Note: You can combine the below values with the issuer response values in the table above. Do this by appending the issuer response value to "3D" or "NO3D", separated by a "." For example, to create a Cardholder authenticated - 13 INVALID AMOUNT response, use the magic value: 3D.REFUSED13 and choose Cardholder authenticated on the simulator page. To create a Authentication Offered but not Used - 41 LOST CARD response, you can use NO3D.REFUSED41:

Magic value3DS result
3DInvokes the 3D Secure simulator page, where you can select values to simulate the authentication result
NO3DBypasses the 3D secure simulator page, instead simulating either:
  • Authentication Offered but not Used
  • Ecommerce

Note: "Authentication Offered but not Used" applies to Verified by Visa and Mastercard SecureCode, whereas "Ecommerce" applies only to American Express SafeKey.

CVC/CVV and AVS test values

Testing CVC/CVV

Input these magic values in:

  • <cvc> (Direct model)

  • The Security code field on the test payment page (Hosted model)

The response values come back in <CVCResultCode>, and you can view them in:

  • The test payment response (Direct)

  • Notifications

  • Inquiries

  • The test MAI

Magic valueCVC/CVV result codeCVC/CVV result description
[Left blank]B - CVV/CVC not supplied by shopper/merchantNOT SUPPLIED BY SHOPPER
111C - CVV/CVC not checkedNOT SENT TO ACQUIRER
222C - CVV/CVC not checkedNO RESPONSE FROM ACQUIRER
333C - CVV/CVC not checkedNOT CHECKED BY ACQUIRER
444D - CVV/CVC not matchedFAILED
555A - CVV/CVC matchedAPPROVED

Testing CVC/CVV (American Express)

Input these magic values in:

  • <cvc> (Direct model)

  • The Security code field on the test payment page (Hosted model)

The result codes come back in <CVCResultCode>, and you can view them in:

  • The test payment response (Direct)

  • Notifications

  • Inquiries

  • The test MAI

Magic valueCVC/CVV result codeCVC/CVV result description
[Left blank]B - CVV/CVC not supplied by shopper/merchantNOT SUPPLIED BY SHOPPER
1111C - CVV/CVC not checkedNOT SENT TO ACQUIRER
2222C - CVV/CVC not checkedNO RESPONSE FROM ACQUIRER
3333C - CVV/CVC not checkedNOT CHECKED BY ACQUIRER
4444D - CVV/CVC not matchedFAILED
5555C - CVV/CVC not checkedUNKNOWN
6666A - CVV/CVC matchedAPPROVED

Testing AVS

Input these magic values in:

  • <postalCode> (Direct model)

  • The Post code/Zip code field on the test payment page (Hosted model)

The response codes come back in AVSResultCode>:

  • The test payment response (Direct)

  • Notifications

  • Inquiries

  • The test MAI

Magic valueResponse codeDescriptive responseMeaning
AAAA or AAAAAAAPPROVEDPostcode and address matched
BBBB or BBBBBBPARTIAL APPROVEDPostcode matched; address not checked
CCCC or CCCCCCPARTIAL APPROVEDPostcode matched; address not matched
DDDD or DDDDDDPARTIAL APPROVEDAddress matched; postcode not checked
EEEE or EEEEEENOT SENT TO ACQUIRERPostcode and address not checked
FFFF or FFFFFFPARTIAL APPROVEDAddress matched; postcode not matched
GGGG or GGGGGGPARTIAL APPROVEDPostcode not checked; address not matched
HHHH or HHHHHHNOT SUPPLIED BY SHOPPERPostcode and address not supplied by shopper/merchant
IIII or IIIIIIPARTIAL APPROVEDAddress not checked; postcode not matched
JJJJ or JJJJJJFAILEDPostcode and address not matched
[Left blank]HNOT SUPPLIED BY SHOPPERPostcode and address not supplied by shopper/merchant
KKKK or KKKKKENO RESPONSE FROM ACQUIRERPostcode and address not checked
LLLL or LLLLLENOT CHECKED BY ACQUIRERPostcode and address not checked
MMMM or MMMMMEUNKNOWNPostcode and address not checked

Testing AAV

Input these American Express Advanced Verification magic values in:

  • <cvc> (Direct model)

  • The Security code field on the test payment page (Hosted model)

The response codes come back in: <AAVAddressResultCode>, <AAVPostcodeResultCode>, <AAVCardholderNameResultCode>, <AAVTelephoneResultCode>, <AAVEmailResultCode>, and you can view them in:

  • The test payment response (Direct)

  • Notifications

  • Inquiries

  • The test MAI

Magic valueResponse codeDescriptive responseMeaning
YASHOPPER DATA MATCHESData matched
NDSHOPPER DATA DOES NOT MATCHData not matched
XCDATA NOT SENTData not sent to acquirer
UBDATA NOT CHECKED BY ACQUIRERData not checked by acquirer
[Left blank]BUNKNOWNUnknown