Testing

Overview


When integrating a payment gateway, you'll need to test your implementation before going live.

We've got test card and bank account (for debit orders)details for you to use when testing. The cards cover a variety of use cases and allow you to simulate successful and failed transactions with different causes.

Speak with your Account manager to test alternative payment methods like Instant EFT, Mobile money, etc.

Card testing


For successful payment, you can use the following card numbers:

  • 4444 3333 2222 1111 - non-3D Secure card
  • 5555 5555 5555 4444 - 3D Secure card

For both cards, please use:

  • any cardholder name
  • any expiry larger or equal to the current month/year
  • CVC = 123
  • For a failed payment, please change the CVC or expiration date.

When using a 3D Secure enrolled card in S2S checkout, an incorrect CVC will trigger an authorisation failure on the S2S callback step (after the customer returns from test ACS).

Using a wrong expiry date emulates data validation failure and results in immediate error before that step.

📘

Testing tip

Simulating card payments can be done by using Test mode credentials or by setting the Revio dashboard to test mode


Debit order testing


Revio has a "mock-bank" testing infrastructure that allows developers to simulate bank authorisation and collection results in real-time.

The Mock-bank infrastructure allows you to test:

  • Debicheck authentication requests
  • Debicheck payment requests
  • EFT Debit order payment requests

For successful authentication and payment requests, make sure that:

  • You use a valid SA ID Number or Passport number
  • You input your cellphone number in format 0821234567
  • Bank account number can be any number
  • Bank account code needs to be six digits
  • Bank account type enumerators of Savings, Transmission or Current

Please reach out to support at [email protected] to activate the mock-bank feature for you. Once activated, please make use of your Live API keys to test.

📘

Testing tip

Access this link to create test SA ID Numbers


-> To test unsuccessful debit order requests:

EFT Debit order

  • To get a full reject EFT response file, provide the account number: '910000001' as one of the account numbers in the transactions.

  • To get a partial reject EFT response file, provide the account number: '810000001' as one of the account numbers in the transactions.

  • To get an unpaid file 40 seconds after the final acceptance file, provide the account number: '310000001' as one of the account numbers in the transactions.

  • To get an unpaid file (with disputes) 40 seconds after the final acceptance file, provide the account number: '210000001' as one of the account numbers in the transactions.

The same response structure will be received for Debicheck failed transactions.