# 1.4 QrCode 还款回调接口
# 请求URL
/xxx
# 请求方式
- POST
# 请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| eventName | 是 | string | 事件名称 (qrcode.payment.success, qrcode.payment.failed) |
| aggregateOrderId | 否 | string | 如果是多单聚合支付(该字段有值) |
| mchOrderId | 是 | string | Merchant QRCODE mchOrderId |
| transactionId | 是 | string | PayCools Transaction ID |
| totalAmount | 是 | int | Amount 总金额 |
| amount | 是 | int | Amount 极兔订单金额 |
| fee | 是 | int | Amount 手续费 |
| transactionStatus | 是 | string | Transaction Status:PENDING, COMPLETE, FAILED |
| createTime | 是 | string | Create Time |
| returnTime | 是 | string | Return Time |
| channelCode | 是 | string | Used for payment callback - Channel Code |
| businessType | 是 | Integer | business type 1:COD类型,2:驿站类型,3:转寄类型,4:驿站自提类型 |
| remark | 是 | string | Remark |
| failedCode | 否 | int | Failed Code |
| failedMessage | 否 | string | Failed Message |
| sign | 是 | string | Sign签名 |
# 回调签名参考 回调签名参考 (opens new window)
# callback example
// QRCODE payment success callback
{
"eventName": "qrcode.payment.success",
"totalAmount":505700, // 单位: 分
"amount":503700, // 单位: 分
"fee":2000, // 单位: 分
"channelCode":"QRPH_HYBRID_QR",
"mchOrderId":"CCVA1653350151938813",
"createTime":"2022-05-31 09:38:06",
"remark":"qrcode payment",
"sign": "xxxxxxxxxxxxx",
"returnTime":"2022-05-31 09:38:06",
"businessType": 1,
"transactionId":"C1032653961085706055",
"transactionStatus":"COMPLETE"
}
// QRCODE payment failed callback
{
"eventName": "qrcode.payment.failed",
"totalAmount":505700, // 单位: 分
"amount":503700, // 单位: 分
"fee":2000, // 单位: 分
"channelCode":"QRPH_HYBRID_QR",
"mchOrderId":"CCVA1653350151938813",
"createTime":"2022-05-31 09:38:06",
"remark":"qrcode payment",
"sign": "xxxxxxxxxxxxx",
"returnTime":"2022-05-31 09:38:06",
"businessType": 1,
"transactionId":"C1032653961085706055",
"transactionStatus":"FAILED"
}
# 返回示例
{
"code":1,
"msg":"success",
"data":{
}
}