Initiate Payment

In order to initiate payment for IOD services, Service Provider will need to request GET AOC TOKEN by sending below parameter.

Request

HTTP Method
POST
POST <AOC_SERVER>/api/getAOCToken
HTTP/1.1
Content type: application/x-www-form-urlencoded


{
  "apiKey":"Ofa3M7zS2c3",
  "username":"test",
  "spTransID":"201903192030-test1",
  "description":"Testing123456789",
  "currency":"MYR",
  "amount":"0.01",
  "onBehalfOf":"TestSP",
  "channel":"WEB",
  "operator":"operator1",
  "taxAmount":"0",
  "callbackURL":"https%3A%2F%2Fwww.test.com",
  "isSubscription":"False",
  "contactInfo":"6019123456789",
  "purchaseCategoryCode":"Game",
  "referenceCode":"Game",
}

Request Parameter

Parameter NameDescriptionUsage
isSubscriptionThis is a boolean flag (true/false) to define if the transaction is on a subscription basis or on demand. If it's a subscription basis, the flag needs to be set to true.(BOOLEAN) Mandatory

📘

Request AOC Token

Refer to Request AOC Token for Charging for more details.