# 2.4 收款回调接口

# 请求URL
  • /xxx
# 请求方式
  • POST
# 请求参数
参数名 必选 类型 说明
eventName string 事件名称 (h5.payment.success, h5.payment.failed)
mchOrderId string Merchant mchOrderId
transactionId string PayCools Unique transaction number
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 签名

# 回调签名参考 回调签名参考

# callback example
// payment success callback
{
    "eventName": "h5.payment.success",
    "amount": 5000,
    "channelCode": "GCASH_URL",
    "mchOrderId": "CCVA1653350151938813",
    "createTime": "2022-05-31 09:38:06",
    "remark": "gcash payment",
    "sign": "xxxxxxxxxxxxx",
    "returnTime": "2022-05-31 09:38:06",
    "transactionId": "C1032653961085706055",
    "transactionStatus": "COMPLETE"
}

// payment failed callback
{
    "eventName": "h5.payment.failed",
    "amount": 5000,
    "channelCode": "GCASH_URL",
    "mchOrderId": "CCVA1653350151938813",
    "createTime": "2022-05-31 09:38:06",
    "remark": "gcash payment",
    "sign": "xxxxxxxxxxxxx",
    "returnTime": "2022-05-31 09:38:06",
    "transactionId": "C1032653961085706055",
    "transactionStatus": "FAILED"
}
# 返回示例
{
    "code":1,
    "msg":"success",
    "data":{
	}
}