|
@@ -4,11 +4,11 @@
|
|
|
* Version:English V5.0.0
|
|
|
* Update Time:2019/04
|
|
|
|
|
|
-#### 1.Overview
|
|
|
+## 1.Overview
|
|
|
AllPay provides customers with unified API access to help them implement fast, secure and centralized access payment channels.
|
|
|
-#### 2.Transaction process
|
|
|
+## 2.Transaction process
|
|
|

|
|
|
-#### 3.Description of verifying the signature
|
|
|
+## 3.Description of verifying the signature
|
|
|
|
|
|
1.For a POST request message sent to the AllPay system, in which all incoming parameters (except signature parameters) according to the field name of ASCII smallest sequence (dictionary), using the format of the URL key/value pair (key1 = value1 & key2 = value2... ) spliced into a string String1.
|
|
|
|
|
@@ -16,9 +16,9 @@ AllPay provides customers with unified API access to help them implement fast, s
|
|
|
|
|
|
3.Sample signature string: acqID=99020344&backURL=https://www.allpayx.com&charSet=UTF-8&detailInfo=W3siZ29vZHNfbmFtZSI6IuiLueaenCIsInF1YW50aXR5IjoiMyJ9LHsiZ29vZHNfbmFtZSI6IuapmOWtkCIsInF1YW50aXR5IjoiNyJ9XQ==&frontURL=https://www.baidu.com&goodsInfo=apple&merID=000000000000015&merReserve=iPhone&orderAmount=0.01&orderCurrency=USD&orderNum=20190104022800&paymentSchema=AP&signType=MD5&transTime=20190104022800&transType=PURC&version=VER0000000022f2c77e3718c47cfb47a89a6fbc9d361
|
|
|
|
|
|
-#### 4.Common interface
|
|
|
+## 4.Common interface
|
|
|
Common interface includes notification, asynchronous notification of transactions, transaction inquiry, refund, refund inquiry interface
|
|
|
-##### 4.1.General API access address
|
|
|
+### 4.1.General API access address
|
|
|
|
|
|
| Interface Name | Test URL | Production URL |
|
|
|
| ------- | ------------------------------------------- | --------------------------------------- |
|
|
@@ -27,7 +27,7 @@ Common interface includes notification, asynchronous notification of transaction
|
|
|
| Refund | https://testapi.allpayx.com/api/refund | https://api.allpayx.com/api/refund |
|
|
|
| Refund inquiry | https://testapi.allpayx.com/api/refundquery | https://api.allpayx.com/api/refundquery |
|
|
|
|
|
|
-##### 4.2.Purchase interface
|
|
|
+### 4.2.Purchase interface
|
|
|
|
|
|
1.Interface specification
|
|
|
|
|
@@ -85,7 +85,7 @@ Parameters as follows:
|
|
|
| signType | String(10) | M | "MD5" or "SHA256" |
|
|
|
| signature | String(32) | M | MD5 or SHA256 signature |
|
|
|
|
|
|
-##### 4.3. Inqiury interface
|
|
|
+### 4.3. Inqiury interface
|
|
|
|
|
|
1.Interface specification
|
|
|
|
|
@@ -125,7 +125,7 @@ Parameters as follows:
|
|
|
| signType | String(3) | M | "MD5" or "SHA256" |
|
|
|
| signature | String(32) | M | MD5 or SHA256 signature |
|
|
|
|
|
|
-##### 4.4 Refund interface
|
|
|
+### 4.4 Refund interface
|
|
|
|
|
|
1.Interface specification
|
|
|
|
|
@@ -168,7 +168,7 @@ This interface provides the function of refund transaction for access merchants.
|
|
|
| signType | String(10) | M | "MD5" or "SHA256" |
|
|
|
| signature | String(32) | M | MD5 or SHA256 signature |
|
|
|
|
|
|
-##### 4.5.Refund Inqiury interface
|
|
|
+### 4.5.Refund Inqiury interface
|
|
|
|
|
|
1.Interface specification
|
|
|
|
|
@@ -208,11 +208,11 @@ This interface provides the function of refund transaction for access merchants.
|
|
|
| signType | String(10) | M | "MD5" or "SHA256" |
|
|
|
| signature | String(32) | M | MD5 or SHA256 signature |
|
|
|
|
|
|
-#### 5.Channel exclusive allocation
|
|
|
+## 5.Channel exclusive allocation
|
|
|
|
|
|
-##### 5.1 WX
|
|
|
+### 5.1 WX
|
|
|
|
|
|
-###### 5.1.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. |
|
|
|
|
|
|
-###### 5.1.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" |
|
|
|
|
|
|
-###### 5.1.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" |
|
|
|
|
|
|
-###### 5.1.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.1.5 APP mode
|
|
|
+#### 5.1.5 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -285,9 +285,9 @@ Response message:
|
|
|
|
|
|
After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
|
|
|
-##### 5.2 AP
|
|
|
+### 5.2 AP
|
|
|
|
|
|
-###### 5.2.1 WebSite mode
|
|
|
+#### 5.2.1 WebSite mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -295,9 +295,9 @@ After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
| --------- | ------ | ---- | ----- |
|
|
|
| tradeFrom | String | M | "WEB" |
|
|
|
|
|
|
-##### 5.3 APMP
|
|
|
+### 5.3 APMP
|
|
|
|
|
|
-###### 5.3.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" |
|
|
|
|
|
|
-###### 5.3.2 APP mode
|
|
|
+#### 5.3.2 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -323,7 +323,7 @@ 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
|
|
|
+#### 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.
|
|
|
|
|
@@ -341,9 +341,9 @@ Response message:
|
|
|
| RespMsg | String | M | Response message |
|
|
|
| code_url | String | O | Characters to generate QR code. When RespCode=00 returns it. |
|
|
|
|
|
|
-##### 5.4 UP
|
|
|
+### 5.4 UP
|
|
|
|
|
|
-###### 5.4.1 H5 mode, adaptive PC and mobile
|
|
|
+#### 5.4.1 H5 mode, adaptive PC and mobile
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -351,7 +351,7 @@ Response message:
|
|
|
| --------- | ------ | ---- | ---- |
|
|
|
| tradeFrom | String | M | "H5" |
|
|
|
|
|
|
-###### 5.4.2 APP mode
|
|
|
+#### 5.4.2 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -387,9 +387,9 @@ SMS Code on PC: 111111
|
|
|
SMS Code on Mobile: 123456
|
|
|
```
|
|
|
|
|
|
-##### 5.5 Apple Pay
|
|
|
+### 5.5 Apple Pay
|
|
|
|
|
|
-###### 5.5.1 APP mode
|
|
|
+#### 5.5.1 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -407,9 +407,9 @@ Response message:
|
|
|
|
|
|
After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
|
|
|
-##### 5.6 CA
|
|
|
+### 5.6 CA
|
|
|
|
|
|
-###### 5.6.1 APP mode
|
|
|
+#### 5.6.1 APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -427,7 +427,7 @@ 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)
|
|
|
|
|
|
-#### 6.RespCode
|
|
|
+## 6.RespCode
|
|
|
|
|
|
| RespCode | Description |
|
|
|
| ------ | --------- |
|
|
@@ -450,12 +450,12 @@ Response message:
|
|
|
| P4 | Function is not supported |
|
|
|
| P5 | Channel returns "Error" |
|
|
|
|
|
|
-#### 7.APP mode integration specification
|
|
|
+## 7.APP mode integration specification
|
|
|
|
|
|
Android Integration Specification:[Click Here](https://git.allpayx.com/OpenAPI/common/src/master/v5/android/Android_Integration_Specification_EN.md)
|
|
|
|
|
|
iOS Integration Specification:[Click Here](https://git.allpayx.com/OpenAPI/common/src/master/v5/ios/iOS_Integration_Specification_EN.md)
|
|
|
|
|
|
-#### 8.Technical support
|
|
|
+## 8.Technical support
|
|
|
|
|
|
If you have problems with debugging, please contact us: support@allpayx.com
|