Decode the response

(, )  Change

When you receive the response to your transaction, it is encoded or formatted in the same format as the transaction request. To make this data more accessible, decode it and store it in an array or similar.

Parse the response

(, )  Change

Once you decode the transaction response and store it in an easily accessible object, you can parse the data to retrieve any fields that you need.

All API operations contain a result field in the response. This field indicates the overall result and status of your transaction. Use it to determine different processing options within your app. For example, if the transaction result value is a SUCCESS, you can record it as being processed successfully. If the result is a FAILURE, you can look further at the transaction response to determine whether the payer must retry the transaction or whether you must execute another process within your app.

Frequently asked questions

What should I do if I do not receive a response?
When you do not receive a response, wait for 60 seconds and attempt to resubmit an identical request. If the gateway has received the original request and the new one is a duplicate, the bank transaction is not repeated, and no duplicate funds are transferred. You receive the same response as you would have received for the first request.

How do I know if a transaction has been approved?
All approved transactions are represented with a Transaction Response Code value of APPROVED from the gateway (see the response.gatewayCode field in your transaction response). Any other code represents a declined or failed transaction.

On This Page


Resources

Downloads Plugins Glossary FAQs

Copyright © 2025 ANZ Worldline Payment Solutions