Browse Source

修改v5接口文档

tao.zhou 6 years ago
parent
commit
c0268d1d41
2 changed files with 53 additions and 8 deletions
  1. 12 8
      AllPay_Integration_Specification_CH.md
  2. 41 0
      AllPay_Integration_Specification_EN.md

+ 12 - 8
AllPay_Integration_Specification_CH.md

@@ -427,8 +427,6 @@ SMS Code on Mobile: 123456
 
  获取到tn后,根据[Android对接文档](https://git.allpayx.com/OpenAPI/common/src/master/v5/android/Android_Integration_Specification_CH.md)调用SDK进行支付
 
-
-
 ### 5.7 MIPAY渠道
 
 #### 5.7.1 H5支付
@@ -443,7 +441,19 @@ SMS Code on Mobile: 123456
 | phone      | String | M    | Phone number of the customer                                 |
 | customerId | String | O    | Customer ID, when client register on merchant, merchant distribute it to client. |
 
+```javascript
+测试环境配置:
+
+修改测试机器hosts,添加如下两条信息
+114.80.87.249 account.preview.n.xiaomi.net
+114.80.87.249 api.account.preview.n.xiaomi.net
 
+测试卡:
+
+卡号:5123456789012346
+有效期:0520
+cvv:123
+```
 
 ### 5.8 EB渠道
 
@@ -458,12 +468,6 @@ SMS Code on Mobile: 123456
 | email     | String | M    | this is email id of the customer who is doing transaction  |
 | phone     | String | M    | Phone number of the customer                               |
 
-
-
-
-
-
-
 ## 6.应答码 
 
 | 应答码 | 描  述      |

+ 41 - 0
AllPay_Integration_Specification_EN.md

@@ -427,6 +427,47 @@ Response message:
 
  After you get tn,please integrate according to [Android Integration Specification](https://git.allpayx.com/OpenAPI/common/src/master/v5/android/Android_Integration_Specification_EN.md)
 
+### 5.7 MIPAY
+
+#### 5.7.1 H5 mode
+
+ Purchase interface specific fields
+
+| Parameter | Type   | Required | Description |
+| ---------- | ------ | ---- | ------------------------------------------------------------ |
+| tradeFrom  | String | M    | "H5"                                                         |
+| firstname  | String | M    | This is name of the customer who is doing the transaction.   |
+| email      | String | M    | this is email id of the customer who is doing transaction    |
+| phone      | String | M    | Phone number of the customer                                 |
+| customerId | String | O    | Customer ID, when client register on merchant, merchant distribute it to client. |
+
+```javascript
+Test environment configuration:
+
+Modify the test machine hosts file, add the following two information.
+114.80.87.249 account.preview.n.xiaomi.net
+114.80.87.249 api.account.preview.n.xiaomi.net
+
+Test card:
+
+Card number:5123456789012346
+Validity period:0520
+cvv:123
+```
+
+### 5.8 EB
+
+#### 5.8.1 H5 mode
+
+ Purchase interface specific fields
+
+| Parameter | Type   | Required | Description |
+| --------- | ------ | ---- | ---------------------------------------------------------- |
+| tradeFrom | String | M    | "H5"                                                       |
+| firstname | String | M    | This is name of the customer who is doing the transaction. |
+| email     | String | M    | this is email id of the customer who is doing transaction  |
+| phone     | String | M    | Phone number of the customer                               |
+
 ## 6.RespCode 
 
 | RespCode | Description      |