Browse Source

更新至5.1版本

tao.zhou 3 years ago
parent
commit
fbdd38dd42
4 changed files with 236 additions and 140 deletions
  1. 1 1
      AllPay_Integration_Specification_CH.md
  2. 7 7
      AllPay_Integration_Specification_EN.md
  3. 145 79
      payExclusive_CH.md
  4. 83 53
      payExclusive_EN.md

+ 1 - 1
AllPay_Integration_Specification_CH.md

@@ -89,7 +89,7 @@ signature: 1e0f24d39cdc8236d17a5f6f17672611
 | merID     | String(15)    | O    | 商户ID,RespCode为00时返回 |
 | orderNum      | String(60)   | O    | 订单号,RespCode为00时返回 |
 | transID   | String(32)   | O    | GoAllPay流水号,RespCode为00时返回 |
-| parameter | Object    | O    | 支付相关参数,RespCode为00时返回 |
+| parameter | Object    | O    | 支付相关参数,RespCode为00且非后台支付时返回。详见[渠道专属参数](payExclusive_CH.md) |
 
 **4. 回调参数**
 

+ 7 - 7
AllPay_Integration_Specification_EN.md

@@ -54,7 +54,7 @@ This interface provides the function of purchase transaction for access merchant
 
 **2. Request parameters**
 
-It consists of general fields and channel-specific fields. All upload fields must be signed.
+It consists of general fields and channel exclusive fields. All upload fields must be signed.
 
   *Channel exclusive fields:* [click to view](payExclusive_EN.md)
 
@@ -86,10 +86,10 @@ It consists of general fields and channel-specific fields. All upload fields mus
 | ------------- | ------------ | ---- | ------------------------------------------------------------ |
 | RespCode       | String(2)   | M    | Response code. 00 stands for success. |
 | RespMsg       | String(256)    | M    | Response message |
-| merID     | String(15)    | O    | Merchant ID. Return it when RespCode is 00. |
-| orderNum      | String(60)   | O    | Order number. Return it when RespCode is 00. |
-| transID   | String(32)   | O    | GoAllPay serial number. Return it when RespCode is 00. |
-| parameter | Object    | O    | Payment parameters. Return it when RespCode is 00. |
+| merID     | String(15)    | O    | Merchant ID. Returned when RespCode is 00. |
+| orderNum      | String(60)   | O    | Order number. Returned when RespCode is 00. |
+| transID   | String(32)   | O    | GoAllPay serial number. Returned when RespCode is 00. |
+| parameter | Object    | O    | Payment parameters. Returned when RespCode is 00 and the payment is not in the background. For details, please visit [Channel exclusive fields](payExclusive_EN.md) |
 
 **4. Callback parameters**
 
@@ -262,7 +262,7 @@ It consists of general fields and channel-specific fields. All upload fields mus
 
 **2. Request parameters**
 
- It consists of general fields and channel-specific fields. All upload fields must be signed.
+ It consists of general fields and channel exclusive fields. All upload fields must be signed.
 
   *Channel exclusive fields:* [click to view](preAuthorizationExclusive_EN.md)
 
@@ -518,7 +518,7 @@ To refund the payments which are more than 90 days ago, the merchant can't proce
 
 **2. Request parameters** 
 
-  It consists of general fields and channel-specific fields. All upload fields must be signed.
+  It consists of general fields and channel exclusive fields. All upload fields must be signed.
 
   *Channel exclusive fields:* [click to view](bindCardPayExclusive_EN.md)
 

File diff suppressed because it is too large
+ 145 - 79
payExclusive_CH.md


+ 83 - 53
payExclusive_EN.md

@@ -1,4 +1,4 @@
-## Channel exclusive allocation
+## Channel exclusive fields
 
 ### 1 WX
 
@@ -6,48 +6,58 @@
 
  This mode returns the URL value of WeChat payment collection for parameter return, ask the merchant to convert it into QR code, generate the front interface of payment, and prompt the user to scan the code to pay.
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description     |
 | --------- | ------ | ---- | -------- |
 | tradeFrom | String | M    | "QRCODE" |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter     | Type   | Required | Description                            |
 | -------- | ------ | ---- | ------------------------------- |
-| RespCode | String | M    | 00 stands for success; 01 stands for fail. |
-| RespMsg  | String | M    | Response message |
-| code_url | String | O    | Characters to generate QR code. When RespCode=00 returns it. |
+| code_url | String | O    | QR code string |
 
 #### 1.2 QR code jump mode
 
 It's jump mode, open the front-end page provided by GoAllPay, which contains WeChat QR code.
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description    |
 | --------- | ------ | ---- | ------- |
 | tradeFrom | String | M    | "QUICK" |
 
+**Response parameter "parameter" details**
+
+| Parameter     | Type   | Required | Description                            |
+| -------- | ------ | ---- | ------------------------------- |
+| code_url | String | O    | QR code string |
+
 #### 1.3 WeChat Official Accounts payment
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description    |
 | --------- | ------ | ---- | ------- |
 | tradeFrom | String | M    | "JSAPI" |
 
+**Response parameter "parameter" details**
+
+| Parameter     | Type   | Required | Description                            |
+| -------- | ------ | ---- | ------------------------------- |
+| code_url | String | O    | QR code string |
+
 #### 1.4 WeChat Mini Programs payment
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description       |
 | --------- | ------ | ---- | ---------- |
 | tradeFrom | String | M    | "APPLET"   |
 | openid    | String | M    | Wechat openid |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter       | Type   | Required | Description                                                   |
 | ---------- | ------ | ---- | ------------------------------------------------------ |
@@ -59,13 +69,13 @@ Parameter sdk_params is used to call up the WeChat Mini Programs payment. Please
 
 #### 1.5 APP mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description  |
 | --------- | ------ | ---- | ----- |
 | tradeFrom | String | M    | "APP" |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter     | Type   | Required | Description                                                      |
 | -------- | ------ | ---- | --------------------------------------------------------- |
@@ -79,23 +89,35 @@ After getting tn, call the SDK to pay according to APP document.
 
 #### 2.1 WebSite mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description  |
 | --------- | ------ | ---- | ----- |
 | tradeFrom | String | M    | "WEB" |
 
+**Response parameter "parameter" details**
+
+| Parameter     | Type   | Required | Description                            |
+| -------- | ------ | ---- | ------------------------------- |
+| code_url | String | O    | QR code string |
+
 #### 2.2 H5 mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ------- |
 | tradeFrom | String | M    | "JSAPI" |
 
+**Response parameter "parameter" details**
+
+| Parameter     | Type   | Required | Description                            |
+| -------- | ------ | ---- | ------------------------------- |
+| code_url | String | O    | QR code string |
+
 #### 2.3 APP mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ----- |
@@ -115,29 +137,27 @@ After getting tn, call the SDK to pay according to APP document.
 
  This mode returns the URL value of Alipay collection for parameter return, ask the merchant to convert it into QR code, generate the front interface of payment, and prompt the user to scan the code to pay.
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description     |
 | --------- | ------ | ---- | -------- |
 | tradeFrom | String | M    | "QRCODE" |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter     | Type   | Required | Description                            |
 | -------- | ------ | ---- | ------------------------------- |
-| RespCode | String | M    | 00 stands for success; 01 stands for fail.                       |
-| RespMsg  | String | M    | Response message        |
-| code_url | String | O    | Characters to generate QR code. When RespCode=00 returns it. |
+| code_url | String | O    | QR code string |
 
 #### 2.5 Alipay Mini Programs payment
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description       |
 | --------- | ------ | ---- | ---------- |
 | tradeFrom | String | M    | "APPLET"   |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter       | Type   | Required | Description                                                   |
 | ---------- | ------ | ---- | ------------------------------------------------------ |
@@ -151,15 +171,21 @@ Parameter sdk_params is used to call up the Alipay Mini Programs payment. Please
 
 #### 3.1 H5 mode, adaptive PC and mobile
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ---- |
 | tradeFrom | String | M    | "H5" |
 
+**Response parameter "parameter" details**
+
+| Parameter     | Type   | Required | Description                            |
+| -------- | ------ | ---- | ------------------------------- |
+| code_url | String | O    | QR code string |
+
 #### 3.2 APP mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ----- |
@@ -179,13 +205,13 @@ After getting tn, call the SDK to pay according to APP document.
 
  This mode returns the URL value of UnionPay collection for parameter return, ask the merchant to convert it into QR code, generate the front interface of payment, and prompt the user to scan the code to pay.
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description     |
 | --------- | ------ | ---- | -------- |
 | tradeFrom | String | M    | "QRCODE" |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter     | Type   | Required | Description                            |
 | -------- | ------ | ---- | ------------------------------- |
@@ -195,7 +221,7 @@ Response message:
 
 #### 3.4 Express Pay
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description     |
 | --------- | ------ | ---- | -------- |
@@ -234,19 +260,17 @@ SMS Code on Mobile: 123456
 
 #### 4.1 APP mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ----- |
 | tradeFrom | String | M    | "APP" |
 
-Response message:
+**Response parameter "parameter" details**
 
-| Parameter | Type   | Required | Description |
-| -------- | ------ | ---- | --------------------------------------------------------- |
-| RespCode | String | M    | 00 stands for success; 01 stands for fail. |
-| RespMsg  | String | M    | Response message |
-| tn       | String | O    | Transaction serial number. Required parameter for Wechat app payment. When RespCode=00 returns it. |
+| Parameter     | Type   | Required | Description                            |
+| -------- | ------ | ---- | ------------------------------- |
+| code_url | String | O    | QR code string |
 
 After getting tn, call the SDK to pay according to APP document.
 
@@ -254,13 +278,13 @@ After getting tn, call the SDK to pay according to APP document.
 
 #### 5.1 APP mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description  |
 | --------- | ------ | ---- | ----- |
 | tradeFrom | String | M    | "APP" |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter | Type   | Required | Description                                          |
 | -------- | ------ | ---- | --------------------------------------------------------- |
@@ -274,7 +298,7 @@ Response message:
 
 #### 6.1 H5 mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | ---------- | ------ | ---- | ------------------------------------------------------------ |
@@ -302,7 +326,7 @@ cvv:123
 
 #### 7.1 H5 mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ---------------------------------------------------------- |
@@ -315,7 +339,7 @@ cvv:123
 
 #### 8.1 H5 mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | ----------------- | ------ | ---- | --------- |
@@ -337,7 +361,7 @@ CVC: 111
 
 #### 5.1 H5 mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ------- |
@@ -347,13 +371,13 @@ CVC: 111
 
  This mode returns the URL value of WeChat payment collection for parameter return, ask the merchant to convert it into QR code, generate the front interface of payment, and prompt the user to scan the code to pay.
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter      | Type   | Required | Description     |
 | --------- | ------ | ---- | -------- |
 | tradeFrom | String | M    | "QRCODE" |
 
-Response message:
+**Response parameter "parameter" details**
 
 | Parameter | Type | Required | Description |
 | -------- | ------ | ---- | ------------------------------- |
@@ -363,7 +387,7 @@ Response message:
 
 #### 5.3 APP mode
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type   | Required | Description |
 | --------- | ------ | ---- | ----- |
@@ -385,7 +409,7 @@ After getting tn, call the SDK to pay according to APP document.-->
 
 ##### 5.1.1 CIL international card 
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter | Type | Required | Description |
 | --------- | ------ | ---- | ---- |
@@ -405,7 +429,7 @@ CVV2: 123
 
 ##### 5.1.2 SN international card 
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter | Type | Required | Description |
 | --------- | ------ | ---- | ---- |
@@ -433,7 +457,7 @@ CVV2: 900
 
 ##### 5.1.3 TL international card 
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter | Type | Required | Description |
 | ------------------- | ------ | ---- | -------------------------------- |
@@ -460,7 +484,7 @@ CVV2: 212
 
 ##### 5.1.4 ICBC international card 
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter | Type | Required | Description |
 | --------- | ------ | ---- | ------------------------------------------------------------ |
@@ -473,7 +497,7 @@ Click the card number to get the SMS verification code.<br>Card 1: [457410890011
 
 ##### 5.1.5 RDP international card
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter | Type | Required | Description |
 | --------- | ------ | ---- | ---- |
@@ -493,7 +517,7 @@ CVV2: 123
 
 ##### 5.1.6 VT international card
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter | Type | Required | Description |
 | --------- | ------ | ---- | ---- |
@@ -507,9 +531,15 @@ Expiry Date: 1227
 CVV2: 123
 ```
 
+**Response parameter "parameter" details**
+
+| Parameter     | Type   | Required | Description                            |
+| -------- | ------ | ---- | ------------------------------- |
+| code_url | String | O    | QR code string |
+
 #### 5.2 Background mode (Applicable to SN and TL international card)
 
- Purchase interface specific fields
+ **Request parameters**
 
 | Parameter | Type | Required | Description |
 | --------- | ------ | ---- | ---- |
@@ -678,7 +708,7 @@ You should add the following parameters:
 
 #### 10.1 H5 mode
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter      | Type   | Required | Description     |
 | --------- | ------ | ---- | ---- |
@@ -688,7 +718,7 @@ Purchase interface specific fields
 
 #### 11.1 H5 mode
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter      | Type   | Required | Description     |
 | --------- | ------ | ---- | ---- |
@@ -710,7 +740,7 @@ Test Pincode: 2639777698
 
 #### 12.1 H5 mode
 
-Purchase interface specific fields
+**Request parameters**
 
 | Parameter | Type | Required | Description |
 | --------- | ------ | ---- | ---- |