Browse Source

Merge branch 'master' of https://git.allpayx.com/OpenAPI/common

benson 5 years ago
parent
commit
cb8dfc7ee4
2 changed files with 52 additions and 10 deletions
  1. 16 7
      AllPay_Integration_Specification_CH.md
  2. 36 3
      AllPay_Integration_Specification_EN.md

+ 16 - 7
AllPay_Integration_Specification_CH.md

@@ -738,9 +738,6 @@ GoAllPay 为客户提供统一的API接入,以帮助客户实现快速、安
 
 获取到tn后,根据本文档第7节调用SDK进行支付。
 
-
-
-
 #### 5.3.3 二维码无跳转模式
 
  该模式返回生成二维码的字符串,商户需要自己生成二维码。
@@ -760,15 +757,27 @@ GoAllPay 为客户提供统一的API接入,以帮助客户实现快速、安
 | code_url | String | O    | 二维码字符串。应答码为00返回该字段 |
 
 
-
-
-
 ```javascript
 测试卡:
 
+Credit card:6250947000000014
+mobile:+852 11112222
+cvn2:  123
+exp date: month 12 year 33
+SMS Code on PC: 111111
+SMS Code on Mobile: 123456
+
+Debit card:6223164991230014
+mobile:13012345678
+PIN: 111111
+cvn2:  123
+exp date: month 12 year 33
+SMS Code on PC:111111
+SMS Code on Mobile:123456
+
 Credit card:8171999927660000
 mobile:+852 11112222
-cvn2:  123
+cvn2:  123
 exp date: month 12 year 30
 SMS Code on PC: 111111
 SMS Code on Mobile: 123456

+ 36 - 3
AllPay_Integration_Specification_EN.md

@@ -597,18 +597,51 @@ Response message:
 
 | Parameter | Type   | Required | Description |
 | -------- | ------ | ---- | --------------------------------------------------------- |
-| RespCode | String | M    | 00 stands for success; 01 stands for fail.                                 |
-| RespMsg  | String | M    | Response message                                                  |
+| 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.3.3 QR code no jump mode
+
+ 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
+
+| Parameter      | Type   | Required | Description     |
+| --------- | ------ | ---- | -------- |
+| tradeFrom | String | M    | "QRCODE" |
+
+Response message:
+
+| 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. |
+
 ```javascript
 Test cards:
 
+Credit card:6250947000000014
+mobile:+852 11112222
+cvn2:  123
+exp date: month 12 year 33
+SMS Code on PC: 111111
+SMS Code on Mobile: 123456
+
+Debit card:6223164991230014
+mobile:13012345678
+PIN: 111111
+cvn2:  123
+exp date: month 12 year 33
+SMS Code on PC:111111
+SMS Code on Mobile:123456
+
 Credit card:8171999927660000
 mobile:+852 11112222
-cvn2:  123
+cvn2:  123
 exp date: month 12 year 30
 SMS Code on PC: 111111
 SMS Code on Mobile: 123456