# 3 QRCODE Callback Notification api
# Request URL
/xxx
# request method
- POST
# request params
parameter name | Is it mandatory | type of data | description |
---|---|---|---|
eventName | mandatory | string | eventName (cpm.payment.success, cpm.payment.failed) |
mchOrderId | mandatory | string | Merchant QRCODE mchOrderId |
transactionId | mandatory | string | PayCools Unique transaction number |
amount | mandatory | int | Amount |
transactionStatus | mandatory | string | Transaction Status:PENDING, COMPLETE, FAILED |
createTime | mandatory | string | Create Time |
returnTime | mandatory | string | Return Time |
channelCode | mandatory | string | Used for payment callback - Channel Code |
remark | optional | string | Remark |
failedCode | optional | int | Failed Code |
failedMessage | optional | string | Failed Message |
sign | mandatory | string | Sign |
# sign procss refer to sign procss
# callback example
// CPM payment success callback
{
"eventName": "cpm.payment.success",
"amount": 503700,
"channelCode": "GCASH_CPM",
"mchOrderId": "CCVA1653350151938813",
"createTime": "2022-05-31 09:38:06",
"remark": "cpm payment",
"sign": "xxxxxxxxxxxxx",
"returnTime": "2022-05-31 09:38:06",
"transactionId": "C1032653961085706055",
"transactionStatus": "COMPLETE"
}
// CPM payment failed callback
{
"eventName": "cpm.payment.failed",
"amount": 503700,
"channelCode": "GCASH_CPM",
"mchOrderId": "CCVA1653350151938813",
"createTime": "2022-05-31 09:38:06",
"remark": "cpm payment",
"sign": "xxxxxxxxxxxxx",
"returnTime": "2022-05-31 09:38:06",
"transactionId": "C1032653961085706055",
"transactionStatus": "FAILED"
}
# response example
{
"code": 1,
"msg": "success",
"data": {
}
}