确认订单回调和支付成功回调通知
接收地址为创建订单出入的notifyUrl,当商户创建订单并且用户确认后 和支付分订单支付成功后会下发该通知。
请求方式 | body | 编码 |
POST | application/json | UTF-8 |
通知确认:如果确认本次通知结果直接response返回SUCCESS,返回非SUCCESS,将会持续接收相同通知,累计10次,逐步增加每次通知间隔
通知参数
变量名 | 类型 | 必填 | 示例值 | 描述 |
returnCode | String | Y | SUCCESS | 返回码(SUCCESS/FAIL) |
returnMsg | String | N | | 返回消息(当returnCode为FAIL时使用) |
resultCode | String | Y | SUCCESS | 业务结果(SUCCESS/FAIL) |
errorCode | String | N | | 错误代码(当resultCode为FAIL时使用) |
errorCodeDes | String | N | | 错误描述(当resultCode为FAIL时使用) |
status | String | Y | | 协议状态 (见订单状态说明) |
attach | String | Y | | 商户数据包 |
payerInfo | String | N | | 付款方信息 |
location | String | N | | 服务位置 |
outTradeNo | String | N | | 商户订单号 |
needCollection | String | N | | 收款信息 |
openid | String | N | | 用户标识 |
transactionId | String | N | | 盛付通订单号 |
postDiscounts | String | N | | 后付费商户优惠 |
postPayments | String | N | | 后付费项目列表 |
timeRange | String | N | | 服务时间范围 |
riskFund | String | N | | 订单风险金信息 |
orderAmount | long | Y | | 商户收款总金额 |
nonceStr | String | Y | | 随机字符串 |
signType | String | Y | RSA | 签名类型 |
sign | String | Y | | 签名 (见签名介绍) |
通知示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | {
"timeEnd": "20201016151242",
"mchId": "93751497",
"chargeInfo": "{\"feeAmount\":\"0\",\"payMoney\":\"0\",\"invoiceAmount\":\"0\"}",
"resultCode": "SUCCESS",
"sign": "FW0qSPYce6NRUT4YkXCguqADSWJU0QUbKFktWbwLk9l//uBXwjNoNUX5ELowWNLMXdkxl3vpPh4Z6D+U8tc4sOmGY9g7gJDGVM1G08dodF+bjjBMKM9sS9hA/hfERqs9e4OJYbBaBUotEuHijblkzzorJMOZg1xF/WD27bFA+2E=",
"subMchId": "93751497",
"nonceStr": "QWFIrsBBLIqaIPZDzuneyXFZxvitoMvZ",
"transactionId": "M20201016348507390007758848",
"returnCode": "SUCCESS",
"returnMsg": "SUCCESS",
"payerInfo": "{\"bankType\":\"DEBIT_CARD\",\"officOrderNum\":\"2020101622001401001430825886\",\"userid\":\"2088702519901002\",\"transactionId\":\"YLZFB20201016145654007153\"}",
"totalFee": 5,
"outTradeNo": "jp3d451tnamqxn1ngchn",
"signType": "RSA",
"tradeType": "alipay_scan",
"status": "PAY_SUCCESS"
}
|