Commit 564fd580 by 王栋源

wdy

parent c8be87bc
<a name="menu" href="/doc">返回主目录</a>
1. [pc端订单支付二维码生成](#paypc)
1. [通联支付查询](#tlqo)
## **<a name="paypc"> 订单支付</a>**
[返回到目录](#menu)
##### URL
[/api/payment/paymentApi/getQrCode]
[/web/payment/paymentApi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:paypc
#### 渠道执行的类型 actionType:getQrCode
``` javascript
{
"uapp_id": "1", //平台渠道ID
"order_num": "1", //支付单号
"total_fee": "1",   //支付金额  分
"body_desc": "1",    //产品名称
"opType": "1", // 支付方式  alipay阿里  wx微信
"actionType": "getQrCode", //Y string 渠道执行的类型
"actionBody": {
"uapp_id": "1", //平台渠道ID
"order_num": "1", //支付单号
"total_fee": "1",   //支付金额  分
"body_desc": "1",    //产品名称
"opType": "alipay", // 支付方式  alipay阿里  wx微信
}
}
```
......@@ -33,3 +37,40 @@
"requestId": "058244807fff4ab388bbda79afc04b28"
  }
```
## **<a name="tlqo"> 订单支付查询</a>**
[返回到目录](#menu)
##### URL
[/web/payment/paymentApi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:queryOrder
``` javascript
{
"actionType": "queryOrder", //Y string 渠道执行的类型
"actionBody": {
"uapp_id": "1", //平台渠道ID
"trxid":"112094120001042656"  //支付渠道交易单号,如支付宝,微信平台的交易单号
}
}
```
#### 返回结果
```javascript
{
"status": 0,
"msg": "SUCCESS",
"data": {
"trxcode": "VSP501", //交易类型,VSP501 微信支付、VSP511 支付宝支付
"trxamt": "100", //交易金额 单位为分
"reqsn": "dfghrtjjn_1", //商户订单号_uappid
"trxid": "112094120001042656",// 交易单号,平台的交易流水号
"trxstatus": "3045", // 交易状态,0000:交易成功、1001:交易不存在、
//2008或者2000 : 交易处理中,请查询交易,如果是实时交易(例如刷卡支付,交易撤销,退货),建议每隔一段时间(10秒)查询交易、
//3888-流水号重复、其他3开头的错误码代表交易失败
"fintime": "20200107180458", // 交易完成时间 yyyyMMddHHmmss
"errmsg": "超时未支付" // 错误原因
},
"requestId": "cc7d75a1e7084aeeb082176cd9efdb4f"
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment