|
@@ -17,9 +17,9 @@ AllPay为基于微信小程序开发的接口,以帮助客户实现快速、
|
|
```
|
|
```
|
|
1.对于发送到 ALLPAY 系统的 POST 请求报文,其中所有传入参数(除 signature 参数外)按照字段名的 ASCII 码从小到大排序后(字典序),使用 URL 键值对的格式(即 key1=value1&key2=value2...)拼接成字符串 String1。
|
|
1.对于发送到 ALLPAY 系统的 POST 请求报文,其中所有传入参数(除 signature 参数外)按照字段名的 ASCII 码从小到大排序后(字典序),使用 URL 键值对的格式(即 key1=value1&key2=value2...)拼接成字符串 String1。
|
|
|
|
|
|
-2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入时 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
|
|
|
|
|
|
+2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
|
|
|
|
|
|
-3.示例签名串 acqID=99020344&backURL=http://example.com/example&charSet=UTF- 8&frontURL=nil&merID=000000000000015&merReserve=nil&orderAmount=0.01&orderCurre ncy=CNY&orderNum=869873851812&paymentSchema=APMP&signType=MD5&transTime= 20151112151356&transType=PURC&version=VER0000000022f2c77e3718c47cfb47a89a6fbc9d361
|
|
|
|
|
|
+3.示例签名串 acqID=99020344&backURL=http://example.com/example&charSet=UTF-8&frontURL=nil&merID=000000000000015&merReserve=nil&orderAmount=0.01&orderCurre ncy=CNY&orderNum=869873851812&paymentSchema=APMP&signType=MD5&transTime= 20151112151356&transType=PURC&version=VER0000000022f2c77e3718c47cfb47a89a6fbc9d361
|
|
```
|
|
```
|
|
##### 2.2. 通用API接入地址
|
|
##### 2.2. 通用API接入地址
|
|
|
|
|
|
@@ -30,7 +30,6 @@ AllPay为基于微信小程序开发的接口,以帮助客户实现快速、
|
|
| 退款接口 | <https://testapi.allpayx.com/refund> | <https://api.allpayx.com/refund> |
|
|
| 退款接口 | <https://testapi.allpayx.com/refund> | <https://api.allpayx.com/refund> |
|
|
| 退款查询接口 | <https://testapi.allpayx.com/refundquery> | <https://api.allpayx.com/refundquery> |
|
|
| 退款查询接口 | <https://testapi.allpayx.com/refundquery> | <https://api.allpayx.com/refundquery> |
|
|
|
|
|
|
-
|
|
|
|
#### 3. API接口
|
|
#### 3. API接口
|
|
|
|
|
|
##### 3.1. 消费接口
|
|
##### 3.1. 消费接口
|
|
@@ -67,6 +66,7 @@ AllPay为基于微信小程序开发的接口,以帮助客户实现快速、
|
|
'signType': 'MD5',
|
|
'signType': 'MD5',
|
|
'paySign': ''}
|
|
'paySign': ''}
|
|
```
|
|
```
|
|
|
|
+
|
|
将上述返回数据放入微信小程序支付接口,即可调起微信小程序支付,具体方法,参考[微信小程序API](https://developers.weixin.qq.com/miniprogram/dev/api/api-pay.html#wxrequestpaymentobject)
|
|
将上述返回数据放入微信小程序支付接口,即可调起微信小程序支付,具体方法,参考[微信小程序API](https://developers.weixin.qq.com/miniprogram/dev/api/api-pay.html#wxrequestpaymentobject)
|
|
|
|
|
|
3.异步通知报文
|
|
3.异步通知报文
|