Skip to content
Last updated

Testing the checkout

Once the April checkout has been fully integrated into your page, it’s important to test its functionality.

April will provide a set of test API keys beginning with sandbox_ to test the integration.

Plugins testing

Merchants using an April plugin integration can simply replace their normal API keys in their plugin settings with the sandbox_ keys and go to their checkout.

Direct integration testing

In the web interface, merchants who have integrated using the direct API integration can continue to load the checkout script from the production URL previously given in Step 2 of the checkout integration page. The checkout widget will communicate with the correct April environment based on the public key you provide.

REST calls made from the backend server will require the host to be updated to api.sandbox.au.meetapril.io. Be sure to use the test API keys.

Below is a guide to filling fields in a test instalments payments plan.

Pre-generated testing inputs

The integration is now ready to be tested. Use the following inputs to test your new April checkout from the customer side.

Test credit card numbers

Use any of the following cards to test you can successfully pay for orders.

Card typeTest card number
Visa credit4242424242424242
Visa debit4000056655665556
Mastercard credit5555555555554444
Mastercard debit5200828282828210
Mastercard prepaid5105105105105100
American Express378282246310005

Use the following cards to test error scenarios. When used to pay for an order, the call will fail with HTTP status code 400 and the given error code will be returned. See Handling errors for more details on errors.

Card typeTest card numberError code
Visa debit4000000000009995insufficient_funds
Visa debit4000000000009987lost_card
Visa debit4000000000009979stolen_card
Visa debit4000000000000069expired_card
Visa debit4000000000000127invalid_cvc
Visa debit4100000000000019fraudulent

Use the following card to test 3D-Secure support

Card typeTest card numberBehaviour
Visa debit4000002500003155Will trigger 3DS challenge

Set up a test instalments payments plan:

Data fieldDescription
Phone numberAny valid phone number
EmailAny valid email
Date of BirthAny valid date more than 18 years ago
Identity verification
Given nameAny string
Middle nameImportant: to pass the identity verification (sandbox only), enter TWOPASS in this field.
Family nameAny string
Australian residential addressAny valid Australian address
Driver's licenceAny string
PassportAny string

Testing other processes

After creating a test transaction using the sandbox_ API keys, it’s now possible to test other functions of the April checkout. Access the Merchant dashboard to view your test payments, initiate a refund for a test payment, and test the Virtual Terminal functionality (using the same test card information above).

Important

Remember to replace the sandbox_ API keys with the normal keys after completing testing.

Troubleshooting

If your direct API integration is not functioning as expected, please review the previous steps in the process:

If you cannot identify the issue or are using a plugin integration, please contact April support.

What's next?

Access and use the Merchant dashboard



Return to documentation home.