|
@@ -212,7 +212,7 @@ This interface provides the function of refund transaction for access merchants.
|
|
|
|
|
|
##### 5.1 WX
|
|
|
|
|
|
-1.QR code no jump mode
|
|
|
+###### 5.1.1 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.
|
|
|
|
|
@@ -230,7 +230,7 @@ Response message:
|
|
|
| RespMsg | String | M | Response message |
|
|
|
| code_url | String | O | Characters to generate QR code. When RespCode=00 returns it. |
|
|
|
|
|
|
-2.QR code jump mode
|
|
|
+###### 5.1.2 QR code jump mode
|
|
|
|
|
|
It's jump mode, open the front-end page provided by AllPay, which contains WeChat QR code.
|
|
|
|
|
@@ -240,7 +240,7 @@ It's jump mode, open the front-end page provided by AllPay, which contains WeCha
|
|
|
| --------- | ------ | ---- | ------- |
|
|
|
| tradeFrom | String | M | "QUICK" |
|
|
|
|
|
|
-3.WeChat Official Accounts payment
|
|
|
+###### 5.1.3 WeChat Official Accounts payment
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -248,7 +248,7 @@ It's jump mode, open the front-end page provided by AllPay, which contains WeCha
|
|
|
| --------- | ------ | ---- | ------- |
|
|
|
| tradeFrom | String | M | "JSAPI" |
|
|
|
|
|
|
-4.WeChat Mini Programs payment
|
|
|
+###### 5.1.4 WeChat Mini Programs payment
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -267,7 +267,7 @@ Response message:
|
|
|
|
|
|
Parameter sdk_params is used to call up the WeChat Mini Programs payment. Please refer to the Mini Programs integration specification.
|
|
|
|
|
|
-5.APP mode
|
|
|
+###### 5.1.5 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -287,7 +287,7 @@ After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
|
|
|
##### 5.2 AP
|
|
|
|
|
|
-1.WebSite mode
|
|
|
+###### 5.2.1 WebSite mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -297,7 +297,7 @@ After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
|
|
|
##### 5.3 APMP
|
|
|
|
|
|
-1.H5 mode
|
|
|
+###### 5.3.1 H5 mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -305,7 +305,7 @@ After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
| --------- | ------ | ---- | ------- |
|
|
|
| tradeFrom | String | M | "JSAPI" |
|
|
|
|
|
|
-2.APP mode
|
|
|
+###### 5.3.2 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -323,9 +323,27 @@ Response message:
|
|
|
|
|
|
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. |
|
|
|
+
|
|
|
##### 5.4 UP
|
|
|
|
|
|
-1.H5 mode, adaptive PC and mobile
|
|
|
+###### 5.4.1 H5 mode, adaptive PC and mobile
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -333,7 +351,7 @@ After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
| --------- | ------ | ---- | ---- |
|
|
|
| tradeFrom | String | M | "H5" |
|
|
|
|
|
|
-2.APP mode
|
|
|
+###### 5.4.2 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -351,9 +369,27 @@ Response message:
|
|
|
|
|
|
After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
|
|
|
+```javascript
|
|
|
+Test cards:
|
|
|
+
|
|
|
+Credit Card: 5200831111111113
|
|
|
+Mobile: 13552535506
|
|
|
+CVN2: 123
|
|
|
+Exp Date: month 11 year 19
|
|
|
+SMS Code on PC: 111111
|
|
|
+SMS Code on Mobile: 123456
|
|
|
+
|
|
|
+Credit Card: 6226388000000095
|
|
|
+Mobile: 18100000000
|
|
|
+CVN2: 248
|
|
|
+Exp Date: month 12 year 19
|
|
|
+SMS Code on PC: 111111
|
|
|
+SMS Code on Mobile: 123456
|
|
|
+```
|
|
|
+
|
|
|
##### 5.5 Apple Pay
|
|
|
|
|
|
-1.APP mode
|
|
|
+###### 5.5.1 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -373,7 +409,7 @@ After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
|
|
|
##### 5.6 CA
|
|
|
|
|
|
-1.APP mode
|
|
|
+###### 5.6.1 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|