Browse Source

修改微信小程序响应参数

tao.zhou 2 years ago
parent
commit
cb441fcff3

+ 3 - 3
AllPay_Integration_Specification_CH.md

@@ -8,12 +8,12 @@
 GoAllPay 为客户提供统一的API接入,以帮助客户实现快速、安全、集中式的接入支付渠道。
 ## 2.交易流程 
 ![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/pc_flowsheet.png)
-## 3.验签说明 
+## 3.签名规则 
 ```html
-1. 对于发送到 GoAllPay 系统的请求,其中所有传入参数(除 signature 参数外)按照参数名的 ASCII 码从小到大排序后(字典序),使用 URL 键值对的格式(即 key1=value1&key2=value2...)拼接成字符串 String1。
+1. 所有传入参数(除 signature 参数外)按照参数名的 ASCII 码从小到大排序后(字典序),使用 URL 键值对的格式(即 key1=value1&key2=value2...)拼接成字符串 String1。
 
 
-2. 在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 Key(接入 GoAllPay 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行加密运算,得到 signature 的值。
+2. 在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 Key(接入 GoAllPay 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行加密运算(加密算法以参数signType值为准),得到 signature 的值。
 
 
 3. 签名过程示例:

+ 2 - 2
AllPay_Integration_Specification_EN.md

@@ -8,12 +8,12 @@
 GoAllPay provides customers with unified API access to help them implement fast, secure and centralized access payment channels.
 ## 2.Transaction process 
 ![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/pc_flowsheet.png)
-## 3.Description of verifying the signature 
+## 3.Signature rules 
 ```html
 1. For the request message sent to the GoAllPay system, in which all incoming parameters (except parameter signature) according to the field name of ASCII smallest sequence (dictionary), using the format of the URL key/value pair (key1 = value1 & key2 = value2... ) spliced into a string String1.
 
 
-2. At the end of String1, the signature Key (assigned at GoAllPay upon access) agreed by both parties is spliced directly (no need to connect with "&"), resulting in a stringSignTemp string, and an encryption on stringSignTemp to get the value of signature.
+2. At the end of String1, the signature Key (assigned at GoAllPay upon access) agreed by both parties is spliced directly (no need to connect with "&"), resulting in a stringSignTemp string, and an encryption on stringSignTemp to get the value of signature (The encryption algorithm is subject to the parameter "signType" value).
 
 
 3. Example of signing process: 

+ 3 - 8
payExclusive_CH.md

@@ -61,14 +61,9 @@
 
 | 参数       | 类型   | 属性 | 描述                                                   |
 | ---------- | ------ | ---- | ------------------------------------------------------ |
-| appId   | String | O    | 小程序id |
-| timeStamp    | String | O    | 时间戳 |
-| nonceStr | String | O    | 随机字符串 |
-| package | String | O    | 数据包 |
-| signType | String | O    | 签名方式 |
-| paySign | String | O    | 签名 |
-
-将上述返回数据放入微信小程序支付接口,即可调起支付,具体方法,参考微信官方小程序API。
+| sdk_params | Object | O    | 小程序支付所需参数 |
+
+将上述返回数据放入微信小程序支付接口,即可调起支付,具体方法请参考微信官方小程序API。
 
 #### 1.5 APP支付
 

+ 3 - 8
payExclusive_EN.md

@@ -61,14 +61,9 @@ It's jump mode, open the front-end page provided by GoAllPay, which contains WeC
 
 | Parameter       | Type   | Required | Description                                                   |
 | ---------- | ------ | ---- | ------------------------------------------------------ |
-| appId   | String | O    | Mini Program ID |
-| timeStamp    | String | O    | Timestamp |
-| nonceStr | String | O    | Random String |
-| package | String | O    | Order Extension String |
-| signType | String | O    | Sign type |
-| paySign | String | O    | Signature |
-
-The above parameters are used to call up the WeChat Mini Programs payment. Please refer to the WeChat Mini Programs integration specification.
+| sdk_params | Object | O    | Required parameter for Mini Program payment. |
+
+Parameter sdk_params is used to call up the WeChat Mini Programs payment. Please refer to the WeChat Mini Programs integration specification.
 
 #### 1.5 APP mode