Просмотр исходного кода

修改支付、报关接口文档

tao.zhou 5 лет назад
Родитель
Сommit
9fdfe80a3c

+ 1 - 0
AllPay_Customs_Integration_Specification_CH.md

@@ -237,6 +237,7 @@
 | U9     | 系统错误     |
 | P1     | 渠道未配置   |
 | P2     | 币种未配置   |
+| E1     | 身份信息不匹配   |
 
 *注意:银联渠道申请报关后应答码为04处理中,需要过段时间调用申报查询接口确定最终状态。
 

+ 6 - 8
AllPay_Integration_Specification_CH.md

@@ -942,17 +942,17 @@ CVC: 737
 
 绑卡分两种模式
 
-(1) 用户在商户平台选择添加卡,然后跳转至GoAllPay的绑卡页面,用户在此页面输入卡号信息.绑卡失败,则返失败通知给商户;绑卡成功,返一个“token+customer ID+卡号后四位”给商户。
+(1) 用户在商户平台选择添加卡,然后跳转至GoAllPay的绑卡页面,用户在此页面输入卡号信息。绑卡失败,则返失败通知给商户;绑卡成功,返回“token+customerID+卡号后四位”给商户。
 
- 方式一专属字段
+ 专属字段
 
 | 参数      | 类型   | 属性 | 描述 |
 | --------- | ------ | ---- | ---- |
 | tradeFrom | String | M    | "H5" |
 
-(2)商户自己收集卡号信息通过API送到GoAllPay网关.
+(2) 商户自己收集卡号信息通过API送到GoAllPay网关
 
- 方式二专属字段
+ 专属字段
 
 | 参数       | 类型   | 属性 | 描述              |
 | ---------- | ------ | ---- | ----------------- |
@@ -982,7 +982,7 @@ CVV2: 123
 | 参数      | 类型   | 属性 | 描述     |
 | --------- | ------ | ---- | -------- |
 | tradeFrom | String | M    | "H5"     |
-| bankCode  | String | M    | 银行代码测试环境填写TEST0021,生产环境[点击此处查看详情](https://git.allpayx.com/OpenAPI/common/src/master/RevPayBankCode.md) |
+| bankCode  | String | M    | 银行代码测试环境填写TEST0021,生产环境[点击此处查看详情](https://git.allpayx.com/OpenAPI/common/src/master/RevPayBankCode.md) |
 
 ```javascript
 测试卡信息:
@@ -1080,9 +1080,7 @@ Password : 1234
 
 | 参数  | 类型   | 属性 | 描述                                              |
 | ----- | ------ | ---- | ------------------------------------------------- |
-| BEPURL | String | O    | Trigger URL for mobile payment options in
-the form BEP://1BC.GIROGATE.DE/BCMC/
-123456789$ICAE3BUIH5P9U53Y5HKA9CRT (contrived example). The options are explained below. |
+| BEPURL | String | O    | Trigger URL for mobile payment options in the form BEP://1BC.GIROGATE.DE/BCMC/123456789$ICAE3BUIH5P9U53Y5HKA9CRT (contrived example). |
 
 ### 5.14 India_Netbanking渠道
 

+ 47 - 4
AllPay_Integration_Specification_EN.md

@@ -914,6 +914,24 @@ Response message:
 | RespMsg  | String | M    | Response message |
 | code_url | String | O    | Characters to generate QR code. When RespCode=00 returns it. |
 
+#### 5.9.3 APP mode
+
+ Purchase interface specific fields
+
+| Parameter | Type   | Required | Description |
+| --------- | ------ | ---- | ----- |
+| tradeFrom | String | M    | "APP" |
+
+Response message:
+
+| 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. |
+
+After getting tn, call the SDK to pay according to Section 7 of this document.
+
 ### 5.10 FC
 
 #### 5.10.1 Purchase/Pre-authorization
@@ -924,12 +942,39 @@ Response message:
 | --------- | ------ | ---- | ---- |
 | tradeFrom | String | M    | "H5" |
 
+#### 5.10.2 Bound card payment
+
+There are two modes of card binding
+
+(1) The user chooses to add a card on the merchant platform, and then jumps to the card binding page of GoAllPay. The user enters the card number information on this page. If the card binding fails, the merchant will be notified of the failure; if the card binding is successful, "token + customerID + the last four digits of the card number" will be returned to the merchant.
+
+ Exclusive field
+
+| Parameter | Type | Required | Description |
+| --------- | ------ | ---- | ---- |
+| tradeFrom | String | M    | "H5" |
+
+(2) The merchant collects the card number information by himself and sends it to the GoAllPay gateway through the API.
+
+ Exclusive field
+
+| Parameter | Type | Required | Description |
+| ---------- | ------ | ---- | ----------------- |
+| tradeFrom  | String | M    | "API"             |
+| cardno     | String | M    | Card number              |
+| cvv2       | String | M    | cvv2              |
+| ExpiryDate | String | M    | Validity period: Format MM / YY |
+
 ```javascript
 Test card:
 
 Card Number: 4761340000000019
 Expiry Date: 1217
 CVV2: 830
+
+Card Number: 5204730000002555
+Expiry Date: 1225
+CVV2: 123
 ```
 
 ### 5.11 RevPay
@@ -939,7 +984,7 @@ CVV2: 830
 | Parameter      | Type   | Required | Description     |
 | --------- | ------ | ---- | -------- |
 | tradeFrom | String | M    | "H5"     |
-| bankCode  | String | M    | Bank Code,Test bank code:TEST0021,Production[view more](https://git.allpayx.com/OpenAPI/common/src/master/RevPayBankCode.md) |
+| bankCode  | String | M    | Bank Code. Test environment filled in TEST0021, production environment [click here for details](https://git.allpayx.com/OpenAPI/common/src/master/RevPayBankCode.md) |
 
 ```javascript
 Test card:
@@ -1033,9 +1078,7 @@ Password : 1234
 
 | Parameter      | Type   | Required | Description     |
 | ----- | ------ | ---- | ------------------------------------------------- |
-| BEPURL | String | O    | Trigger URL for mobile payment options in
-the form BEP://1BC.GIROGATE.DE/BCMC/
-123456789$ICAE3BUIH5P9U53Y5HKA9CRT (contrived example). The options are explained below. |
+| BEPURL | String | O    | Trigger URL for mobile payment options in the form BEP://1BC.GIROGATE.DE/BCMC/123456789$ICAE3BUIH5P9U53Y5HKA9CRT (contrived example). |
 
 ### 5.14 India_Netbanking