Initiate Payment
A One-Time Purchase (IOD) is a single purchase (daily, weekly, or monthly purchase) made by a customer. It allows the customer to buy the item once without the renewal of the subscription.
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 Name | Description | Usage |
---|---|---|
isSubscription | This 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 |
Notes
For One-time Purchase,
- Subscription Renewal Charge API is not applicable.
- Refer to Request AOC Token for Charging for more details.
Updated about 2 years ago