On This Page
Interpreting the Redirect Response
After your application redirects the merchant to
National Australia Bank
, the
following sequence occurs.- Merchants not logged in to theGateway Portalat the time of the redirect are prompted to do so. Merchants with expired credentials are prompted to reset them, after which they must click the redirect link again.
- TheGateway Portalpage opens, stating the partner's name along with the permissions that the partner is requesting from the merchant. If the merchant logged in using an account with sufficient privileges, the they are prompted to chooseAlloworDeny. If the logged-in user does not have sufficient privileges, theAllowbutton is disabled.
- If the merchant clicksDeny,National Australia Bankredirects the merchant to the URL that you defined in yourredirect_urlparameter with no parameters appended to it. This is not a failure but a denial of permission by the merchant's representative. The denial does not prohibit any future attempt for this or any merchant.
- When the merchant clicksAllow,National Australia Bankredirects the merchant to the URL that you defined in yourredirect_urlparameter.The redirect URL inNational Australia Bank's response is encoded with at least one of the following parameters.ParameterDescriptioncodeThe authorization code that your application sends toNational Australia Bankwhen requesting an access token (during the next step of the authentication process). For security reasons, the authorization code expires inten minutes. If it expires, you must repeat the redirect to request another.stateThis parameter is returned only if it was submitted in the request. It is used to test for possible CSRF attacks. If the state values from the request and response do not match, you could be the victim of a CSRF attack, and you should display an HTTP 401 error code in response.