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.
- Service Providers need to prepare the callback URL which accepts the HTTP GET command.
HTTP Method |
---|
GET |
This callback URL is provided by Service Provider when requesting the AOC Token in (Initiate Payment Section).
Parameter Name | Description | Usage |
---|---|---|
callbackURL | The 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) Mandatory |
For example, let's say the Service Provider’s callback URL is http://serviceprovider.com/callback?
AOC Gateway will redirect users back to the URL below with the request parameter, aocTransID.
Example
-
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.
-
Then, 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.
Updated about 2 years ago