Test mode transactions

Whilst integrating or otherwise testing, transactions can be performed in test mode for all payment types. Test transactions are visible and searchable in the Backoffice, but are not sent to an actual external payment processor API. They can be differentiated by inspecting the isTestTxn flag in the Txn object returned by the API.

Specific responses can be obtained for test mode transactions to test the various scenarios likely to be encountered while processing payments.

Test cards

Card TypeCard Number
Mastercard5123456789012346
Mastercard 2 Series2720010040360012
Visa4987654321098769
American Express345678901234564
Diners30123456789019
JCB3530111333300000

Simulating bank response codes

While performing test mode transactions, specific parameters can be provided to obtain specific simulated bank response codes.

Response codes between 00 and 99 can be obtained using any of the two methods:

Last two digits in transaction amount method

To simulate a bank response code, use the last two digits in the transaction amount. Please note the transaction amount is stated in cents. For example, 10005 (represents $100.05) will generate a bank response code of 05. Another example is a transaction amount of 211 generating a bank response code of 11.

Expiry method

To simulate a bank response code using the Expiry method, set the month component to 99 and set the year component (where the year is a two digit representation; for example, the year 2023 would be represented as 23) to the bank response code you desire. For example, submitting a transaction with an expiry date of 9945 will result in a bank response code of 45.

Simulating CVN Responses

The following CVN values can be submitted to obtain the listed simulated CVN response codes:

CVNCVN ResponseBank Response Code
987N05, regardless of amount or expiry date
876PDetermined by amount or expiry date
765UDetermined by amount or expiry date
All othersMDetermined by amount or expiry date

Simulating timeouts

To simulate a timeout, set the transaction amount to 11199 ($111.99). This will result in a 50 second delay before a PT_G5 response code is returned.