# 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":{
	}
}