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