# 扫码支付
# 简要描述
- 扫码支付
# 请求URL
/openapi/v1/open/pay/jsPay该接口为我方请求接入方接口,接入方按出参示例返回参数给我方,我方进入支付页换起支付页面
# 请求方式
- post
# 业务参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| uuid | 是 | string | 流水ID |
| totalPrice | 是 | string | 金额 单位:元 |
| domain | 是 | string | 支付域名 |
| saleRule | 否 | string | 折扣策略 |
| memberId | 否 | string | 买家ID |
| name | 否 | string | 姓名 |
| phone | 否 | string | 手机号 |
| goodName | 否 | string | 商品名称 |
# 返回示例
{
"msg": null,
"code": 200,
"obj": {
"callBackUrl": "http://abc.com/web/pay/callBackUrl",
"payUrl": "http://{domain}/web/pay/index.html#/?uuid=ccdb008c-bc4e-4388-b7e2-fce652bd2f40",
"uuid": "ccdb008c-bc4e-4388-b7e2-fce652bd2f40",
"name": "张三",
"phone": "13265487698",
"inRule": 1,
},
"sign": "df951a83e3fc7462241752dd7e65398b"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# 返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| callBackUrl | string | 支付回调地址 |
| payUrl | string | 支付链接(生成二维码) |
| uuid | string | 流水ID |
| name | string | 姓名 |
| phone | string | 手机号 |
| inRule | string | 是否满足折扣策略(1:是 0:否) |
# 支付回调说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 支付状态 参见附录 附录 |
| uuid | string | 流水ID |
| name | string | 姓名 |
| phone | string | 手机号 |
| totalPrice | string | 总金额 单位:元 |
| actPrice | string | 实付金额 单位:元 |
| disPrice | string | 优惠金额 单位:元 |