Skip to main content

Test card numbers

CodePay provides you with a test card number to trigger specific scenarios in the payment gateway, such as decline and approval transactions. You can:

  • Use test card details to test each payment process and ensure that your application processes payments as expected.
  • Before accepting the actual payment, you can use the card details on this page to test your integration.
  • Verify certain cases that are difficult to simulate in real payment scenarios, such as large amount payments.
caution

Never use actual cardholder data to test in the UAT environment.

Preparation

Before testing UAT integration, you should ensure that you have correctly configured the UAT payment channel. The UAT payment channel is a simulation environment that is completely independent of the real payment channel. You need to configure the payment terminal you are in to set up this UAT channel. The configuration reference interface is as follows:

  1. Log in to the ISV platform and click on "Merchants ->Acquiring Contracts ->New Acquiring Contract".
    Log in to the ISV platform and click on 'Merchants ->Acquiring Contracts ->New Acquiring Contract'
  2. Select the merchant, select the payment channel "Bankcard Sandbox" and turn on all switches, then click "Submit".
    Select the merchant, select the payment channel 'Bankcard Sandbox' and turn on all switches, then click 'Submit'
  3. Ensure that your test payment terminal has been added to the merchant account.
    Ensure that your test payment terminal has been added to the merchant account

UAT test card numbers

You can use the following test card data to test the cards present on the CodePay UAT simulator.

  • Use any three-digit Card Verification Value (CVV) / Card Verification Code (CVC), for example: 123.
  • Use any future date as the expiry date, for example, 1124.
  • Use any digit sequence of 5-9 length as the cardholder's postal code, for example, 20001 or 20001-1234.
  • Use a maximum of 20 characters for the cardholder's street address, for example, 1234 Main Street.
  • Any card number that meets the following requirements and passes Luhn check validation, except for cards configured for specific response, will return an approval response:
tip

The composition rules for card numbers of bank card organizations may change over time and with policy changes. The following list is not exhaustive, and if you enter another card number that complies with the rules, it will also be supported.

Card Brand PAN Prefix Length
Visa4*16
Mastercard51 through 5516
Amex34 or 3715
Discover6011, 622, 644 through 6516
Diners300 through 30514 or 16
JCB35*15 or 16
UnionPay62*16 or 19

UAT test card numbers for specific responses

The following test card returns a specific response on the CodePay UAT emulator:

Card Brand Test PAN Response Description
Visa4400 1111 2222 0000 Decline The transaction has not been approved.
Mastercard5100 1111 2222 0000
Amex3400 1111 2222 0002
Discover6500 1111 2222 0004
Diners3000 1111 2222 0006
JCB3500 1111 2222 0001
UnionPay6200 1111 2222 0007
Visa4400 1111 2222 0018 Expired card This indicates that the card has expired and needs to be updated or replaced.
Mastercard5100 1111 2222 0018
Amex3400 1111 2222 0010
Discover6500 1111 2222 0012
Diners3010 1111 2222 0004
JCB3500 1111 2222 0019
UnionPay6200 1111 2222 0015
Visa4400 1111 2222 0026 Timeout This indicates that the network timed out while processing the transaction.
Mastercard5100 1111 2222 0026
Amex3400 1111 2222 0028
Discover6500 1111 2222 0020
Diners3020 1111 2222 0002
JCB3500 1111 2222 0027
UnionPay6200 1111 2222 0023
Visa4400 1111 2222 0034 Insufficient funds This indicates that there are insufficient funds in the account to complete the transaction.
Mastercard5100 1111 2222 0034
Amex3400 1111 2222 0036
Discover6500 1111 2222 0038
Diners3030 1111 2222 0000
JCB3500 1111 2222 0035
UnionPay6200 1111 2222 0031
Visa4400 1111 2222 0042 Do not honor This indicates that the bank or financial institution has refused a particular transaction, such as when the system detects it may be a fraudulent transaction.
Mastercard5100 1111 2222 0042
Amex3400 1111 2222 0044
Discover6500 1111 2222 0046
Diners3040 1111 2222 0008
JCB3500 1111 2222 0043
UnionPay6200 1111 2222 0049
Visa4400 1111 2222 0059 Incorrect PIN This indicates that an incorrect Personal Identification Number (PIN) has been entered.
Mastercard5100 1111 2222 0059
Amex3400 1111 2222 0051
Discover6500 1111 2222 0053
Diners3050 1111 2222 0005
JCB3500 1111 2222 0050
UnionPay6200 1111 2222 0056
Visa4400 1111 2222 0067 Exceeded Limit This indicates that the transaction amount has exceeded the card's credit limit or daily transaction limit.
Mastercard5100 1111 2222 0067
Amex3400 1111 2222 0069
Discover6500 1111 2222 0061
Diners3051 1111 2222 0004
JCB3500 1111 2222 0068
UnionPay6200 1111 2222 0064
Visa4400 1111 2222 0075 System Error This indicates that a technical issue occurred while processing the transaction, possibly due to a failure in the bank system or the merchant's payment system.
Mastercard5100 1111 2222 0075
Amex3400 1111 2222 0077
Discover6500 1111 2222 0079
Diners3052 1111 2222 0003
JCB3500 1111 2222 0076
UnionPay6200 1111 2222 0072