# 1. Create Payment
# Request URL
{domain}/open-api/indonesia/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 (Can only be an integer, no decimal places) |
channelCode | Y | string | - | Reference List | Platform ChannelCode |
customerName | Y | string | 1-128 | - | payer name |
Y | string | 1-128 | - | payer email | |
mobile | Y | string | 10-13 | 0817345545 | payer mobile (format: start with 08) |
notifyUrl | Y | string | 1-256 | - | notify url |
redirectUrl | N | string | 1-512 | - | redirect url (URL Required) |
remark | N | string | 1-256 | - | payment remark |
# Request Example
# Request Body
{
"appId": "733b887a4a784708bb369524db5b6ded",
"sign": "A5Vd8NcQvU3QT41Yee2jCIK58jDAKZ6kP5gEE4q7Yu92hUCY3k00FKTSlCNU+CcZm0LSrGbEMFMID3p7uvXaqy5khNv3kPndrgp7MIRHUmQnMgRK+g1XG7PzWdnrqlXc3g+L+kqVja+qrFRz+uVS6GLKLR1P4AtgTa9dok6NU7YTWOnG9r/FwIVx/At4czfEpI10pvg2TptVpiANmseGmz4G30hkaYTTNahkcOMQJn6PDFjivHvjNLZNJVOqHQzVUa+kca1yZZMPHtgxR647KjoY2oAjjl0Y45GL6zP9qHD/eVwcPPAPrRZ4K2o05OJnPf67fAcWNVqpnu6ZGQIXhQ==",
"param": "{\"mchOrderId\":\"Platform0000001\",\"amount\":20000,\"customerName\":\"user01\",\"channelCode\":\"ID_BCA_VA\",\"email\":\"Platform@gmail.com\",\"mobile\":\"08123456789\",\"notifyUrl\":\"https://test.com\",\"timestamp\":\"1677482490058\"}"
}
# 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
// VA
{
"code": 10000,
"message": "Success",
"data": {
"transactionId": "C1030677482494880144",
"payData": "7007020668251633",
"channelType": "VA"
}
}
// URL
{
"code": 10000,
"message": "Success",
"data": {
"transactionId": "C1134681121462065928",
"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": "00020101021226570011ID.DANA.WWW011893600915027261738302092726173830303UME51440014ID.CO.QRIS.WWW0215ID20221744080800303UME520459455303360540720000005802ID5903DBB6015Kota Jakarta Pu61051022062750118pay_O5UMVKIJPn385560490011ID.DANA.WWW0425MER20211029339404713542290501163047475",
"channelType": "QR"
}
}
# Failed Response Example
{
"code":21016,
"message":"Merchant ip forbidden"
}