Redirection after Payment

Service Provider's Callback URL

After the charging has been completed, AOC Gateway will redirect users back to the Service Provider’s Callback URL for successful/ failed/ pending transactions.

  1. Service Providers need to prepare the callback URL which accepts the HTTP GET command.
HTTP Method

This callback URL is provided by Service Provider when requesting the AOC Token in (Initiate Payment Section).

Parameter NameDescriptionUsage
callbackURLThe URL to which the Service Provider would like AOC Gateway to redirect users once the charging transaction is completed. AOC will pass over the aocTransID to this URL.(URL STRING)

For example, let's say the Service Provider’s callback URL is

AOC Gateway will redirect users back to the URL below with the request parameter, aocTransID.



  1. Upon receiving this request, Service Provider will need to invoke the “Request Charging Status” API (Request Charging Status) to get the status of the charging transaction.

  2. Then, Service Provider needs to display a success or failed page to the user/payer.



aocTransID is the unique transaction id generated by AOC Gateway. This id will be used for any future reconciliation purposes. This is the same transaction ID when the Service Provider invokes the Request for AOC Token API.