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