Completing 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. (this callback URL is provided by Service Provider when requesting the AOC Token in (Initiate Payment Section).

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

📘

Example

Service Provider’s callback URL is http://serviceprovider.com/callback?

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

http://serviceprovider.com/callback?aocTransID=12345678

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

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

📘

Note

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.