# 1.5 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 (qrcode.payment.success, qrcode.payment.failed)
mchOrderId mandatory string Merchant QRCODE mchOrderId
transactionId mandatory string PayCools Unique transaction number
amount mandatory int Amount
fee mandatory int fee
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
// QRCODE payment success callback
{
    "eventName": "qrcode.payment.success",
    "amount":503700,
    "fee":1000,
    "channelCode":"QRPH_DYNAMIC_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,
    "fee":1000,
    "channelCode":"QRPH_DYNAMIC_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":{
	}
}