# 1. Create Payment

# Request URL

  • {domain}/open-api/malaysia/payment/generate

# Request Method

  • POST

# Request Header

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

{
  "appId": "b858d8bca8124be9ac799659d9567293",
  "sign": "QGQ3m1WvdNdXbdqIML0m+4+p+Fu1bf94dmbRdEBDLpMDwZiotd+IDfJELsexibj7Y8+Eb+1UGHcn3vAT4+S9sdjoiXVQCqoTIEDL2jLoVJ6BByxzo/+dB4v7f+/rBazFX0NCsYLvxZLjEw7/FXj7Vh1urfYz+xYh3xdq/THvouKpy8tUVWaYFt2EFyeEds7/fy49yDrTDDc2f9gtRFsc+aVNUTORElKv3MgDNO6jb7rQzfK9GiyFqx071gMJ3MPLu2pyORB6VxHkNZbAP7xbj9DbWReZtR5+QN2/oU9YTX55YAEuEiwbIw095P11RhsxdmMQNXcwUnvgRZKcDyitCg==",
  "param": "{\"mchOrderId\":\"Platform0000057\",\"amount\":56,\"customerName\":\"user01\",\"channelCode\":\"MY_TNG_URL\",\"email\":\"Platform@gmail.com\",\"redirectUrl\":\"https://www.google.com/\",\"notifyUrl\":\"https://test.com\",\"mobile\":\"123456789\",\"timestamp\":\"1679450660108\"}"
}

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

// URL
{
  "code": 10000,
  "message": "Success",
  "data": {
    "transactionId": "C1134681121462065927",
    "payData": "https://open-sea.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=281666040090cytn1kpBj8Yve17QWwJv3Tft",
    "channelType": "URL"
  }
}

// QR Content
{
  "code": 10000,
  "message": "Success",
  "data": {
    "transactionId": "C1030677502883797639",
    "payData": "281666040099hr4l48MSF31LJU2tl4Xv48AR",
    "channelType": "QR"
  }
}

Code Collection

# Failed Response Example

{
  "code":21016,
  "message":"Merchant ip forbidden"
}