1. Create Payment
Request URL
{domain}/open-api/malaysia/payment/generate
Request Method
Parameter Name | Required | Type | Description |
Content-Type | Y | string | application/json |
Request Body Param
Parameter Name | Required | Type | Description |
appId | Y | string | Application Id |
param | Y | string | param |
sign | Y | string | signature |
param
Parameter Name | Required | Type | Length | Example | Description |
timestamp | Y | long | - | 1677495496979 | current timestamp |
mchOrderId | Y | string | 1-32 | CCP20220428011068111 | Merchant order id (unique for transactionId) 1-32 characters |
amount | Y | long | - | - | payment amount (unit: cents) MYR:500.10, should set 50010 cents |
customerName | Y | string | 1-128 | - | payer name |
channelCode | Y | string | - | Reference List | Platform ChannelCode |
notifyUrl | Y | string | 1-256 | - | notify url |
redirectUrl | N | string | 1-512 | - | redirect url (URL Required) |
email | Y | string | 1-128 | - | payer email |
mobile | Y | string | 10-11 | - | payer mobile (format: start with 01) |
remark | N | string | 1-256 | - | payment remark |
Request Example
Request Body
How to construct request body
Response Param
Parameter Name | Type | Description |
code | integer | response code |
message | string | response message |
data | Object | data |
data
Parameter Name | Type | Description |
transactionId | string | Platform transaction id |
payData | string | payment data(VA,URL or QR Content) |
mchOrderId | string | Merchant order id |
channelType | string | Channel Type("URL","VA","QR") |
Response Example
Code Collection
Failed Response Example