# 3 CPM 还款回调接口
# 请求URL
/xxx
# 请求方式
- POST
# 请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
eventName | 是 | string | 事件名称 (cpm.payment.success, cpm.payment.failed) |
mchOrderId | 是 | string | Merchant QRCODE mchOrderId |
transactionId | 是 | string | PayCools Transaction ID |
amount | 是 | 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 |
remark | 否 | string | Remark |
failedCode | 否 | int | Failed Code |
failedMessage | 否 | string | Failed Message |
sign | 是 | string | Sign签名 |
# 回调签名参考 回调签名参考
# 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"
}
# 返回示例
{
"code": 1,
"msg": "success",
"data": {
}
}