|
@@ -1,4 +1,4 @@
|
|
|
-# AllPay Web Integration Specification V5.0.0
|
|
|
+# AllPay Integration Specification V5.0.0
|
|
|
[Shanghai AllPay Technology Co., Ltd.](https://www.allpayx.com)
|
|
|
|
|
|
* Version:English V5.0.0
|
|
@@ -65,7 +65,7 @@ This field is a list of common fields, sending, every channel needs some channel
|
|
|
|
|
|
Parameters as follows:
|
|
|
|
|
|
-| parameter | Type | Required | Description |
|
|
|
+| parameter | Type | Required | Description |
|
|
|
| ------------- | ------------ | ---- | ------------------------------------------------------------ |
|
|
|
| version | String(12) | M | "VER000000005" |
|
|
|
| charSet | String(6) | M | "UTF-8" |
|
|
@@ -83,7 +83,7 @@ Parameters as follows:
|
|
|
| transTime | String(14) | M | Transaction time, format :" yyymmddhhmmss" |
|
|
|
| merReserve | String(1024) | O | Merchant reserved content, can pass any content, such as purchase information, account number, etc., but do not pass special symbols, such as commas. |
|
|
|
| signType | String(10) | M | "MD5" or "SHA256" |
|
|
|
-| signature | String(32) | M | MD5 or SHA256 signature名 |
|
|
|
+| signature | String(32) | M | MD5 or SHA256 signature |
|
|
|
|
|
|
##### 4.3. Inqiury interface
|
|
|
|
|
@@ -106,7 +106,7 @@ Parameters as follows:
|
|
|
| signType | String(10) | M | "MD5" or "SHA256" |
|
|
|
| signature | String(32) | M | MD5 or SHA256 signature |
|
|
|
|
|
|
-3..Response message format
|
|
|
+3.Response message format
|
|
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|
| ------------- | ---------- | ---- | ------------------------------------------------------------ |
|
|
@@ -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
|
|
|
+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
|
|
|
+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
|
|
|
+5.APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
@@ -279,41 +279,117 @@ Response message:
|
|
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|
| -------- | ------ | ---- | --------------------------------------------------------- |
|
|
|
-| RespCode | String | M | 00 stands for success; 01 stands for fail. |
|
|
|
+| 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. |
|
|
|
|
|
|
-##### 5.3 AP
|
|
|
+After getting tn, call the SDK to pay according to Section 7 of this document.
|
|
|
+
|
|
|
+##### 5.2 AP
|
|
|
|
|
|
1.WebSite mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
|
-| Parameter | Type | Required | Description |
|
|
|
+| Parameter | Type | Required | Description |
|
|
|
| --------- | ------ | ---- | ----- |
|
|
|
| tradeFrom | String | M | "WEB" |
|
|
|
|
|
|
+##### 5.3 APMP
|
|
|
|
|
|
+1.H5 mode
|
|
|
|
|
|
-##### 5.3 CA
|
|
|
+ Purchase interface specific fields
|
|
|
+
|
|
|
+| Parameter | Type | Required | Description |
|
|
|
+| --------- | ------ | ---- | ------- |
|
|
|
+| tradeFrom | String | M | "JSAPI" |
|
|
|
|
|
|
-1.APP
|
|
|
+2.APP mode
|
|
|
|
|
|
Purchase interface specific fields
|
|
|
|
|
|
-| Parameter | Type | Required | Description |
|
|
|
+| Parameter | Type | Required | Description |
|
|
|
| --------- | ------ | ---- | ----- |
|
|
|
| tradeFrom | String | M | "APP" |
|
|
|
|
|
|
-Response message:
|
|
|
+Response message:
|
|
|
|
|
|
-| Parameter | Type | Required | Description |
|
|
|
+| 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.4 UP
|
|
|
+
|
|
|
+1.H5 mode, adaptive PC and mobile
|
|
|
+
|
|
|
+ Purchase interface specific fields
|
|
|
+
|
|
|
+| Parameter | Type | Required | Description |
|
|
|
+| --------- | ------ | ---- | ---- |
|
|
|
+| tradeFrom | String | M | "H5" |
|
|
|
+
|
|
|
+2.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. |
|
|
|
+| 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.5 Apple Pay
|
|
|
+
|
|
|
+1.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.6 CA
|
|
|
+
|
|
|
+1.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 CA app payment. When RespCode=00 returns it.|
|
|
|
|
|
|
- After you get tn,please integrate according to [Android Integration Specification](https://git.allpayx.com/OpenAPI/common/src/master/v5/android/Android%E7%AB%AF%E6%8E%A7%E4%BB%B6%E6%94%AF%E4%BB%98%E4%BA%A7%E5%93%81%E6%8E%A5%E5%8F%A3%E8%A7%84%E8%8C%83%E6%96%87%E6%A1%A3.md)
|
|
|
+ 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
|
|
|
|
|
@@ -338,13 +414,11 @@ Response message:
|
|
|
| P4 | Function is not supported |
|
|
|
| P5 | Channel returns "Error" |
|
|
|
|
|
|
-#### 7.SDK Download
|
|
|
-
|
|
|
-Android SDK integration specification:[Android SDK](https://git.allpayx.com/OpenAPI/common/src/master/v5/android/Android%E7%AB%AF%E6%8E%A7%E4%BB%B6%E6%94%AF%E4%BB%98%E4%BA%A7%E5%93%81%E6%8E%A5%E5%8F%A3%E8%A7%84%E8%8C%83%E6%96%87%E6%A1%A3.md)
|
|
|
-
|
|
|
-iOS SDK integration specification:[iOS SDK](https://git.allpayx.com/OpenAPI/common/src/master/v5/ios/iOS%E7%AB%AF%E6%8E%A7%E4%BB%B6%E6%94%AF%E4%BB%98%E4%BA%A7%E5%93%81%E6%8E%A5%E5%8F%A3%E8%A7%84%E8%8C%83%E6%96%87%E6%A1%A3.md)
|
|
|
+#### 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
|
|
|
|