Browse Source

fix: 修复图片不显示,修改文档排版格式

kang.wang 5 years ago
parent
commit
bc246b9792

+ 3 - 3
docs/.vuepress/config.js

@@ -44,11 +44,11 @@ module.exports = {
             link: '/h5/'
           },
           {
-            text: 'shoppingCart plug-in',
+            text: 'ShoppingCart plug-in',
             link: '/cart/'
           },
           {
-            text: 'wechatMiniProgram',
+            text: 'WechatMiniProgram',
             link: '/wx/'
           },
         ],
@@ -87,7 +87,7 @@ module.exports = {
             link: '/zh/cart/'
           },
           {
-            text: 'wechatMiniProgram',
+            text: '微信小程序',
             link: '/zh/wx/'
           },
         ],

BIN
docs/.vuepress/public/moble_sdk_flowsheet.png


BIN
docs/.vuepress/public/pc_flowsheet.png


+ 1 - 1
docs/android/2.md

@@ -1,3 +1,3 @@
 # 2.交易流程
 
-  ![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/moble_sdk_flowsheet.png)
+![image](/moble_sdk_flowsheet.png)

+ 15 - 11
docs/android/3.md

@@ -8,26 +8,30 @@
 
 2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入时 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
 
-3.示例签名串 
-```
+3.示例签名串
+
+```js
 acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26 
 ```
+
 ## 3.2. 通用API 接入地址 
+
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://testapi.allpayx.com/app/pay |https://api.allpayx.com/app/pay 
- 查询接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
- 退款接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
+ 消费接口 |<https://testapi.allpayx.com/app/pay> |<https://api.allpayx.com/app/pay>
+ 查询接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
+ 退款接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
 
 ## 3.3. 消费交易接口
-1. 接口说明
 
-  商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
-   
-2. 请求报文格式 
+1.接口说明
+
+商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
+
+2.请求报文格式
+
+下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
 
-  下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
- 
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 

+ 52 - 46
docs/android/4.md

@@ -1,75 +1,82 @@
-# 4.ANDROID 客户端接入步骤 
+# 4.Android 客户端接入步骤 
 
 ## 4.1. 接入说明 
 
-```
 启动支付控件的接口,接口定义如下:
 
+```java
 public static void pay(Activity activity,String tn,boolean mode)
- 
-参数说明:
+```
 
+::: tip 参数说明
 activity —— 用于启动支付控件的活动对象
 
-tn——订单信息为交易流水号,即 TN,为商户后台从 AllPay 后台获取
+tn —— 订单信息为交易流水号,即 TN,为商户后台从 AllPay 后台获取
 
-mode ——AllPay 后台环境标识,true 将在 AllPay 正式环境发起交易,false 将在 AllPay 测试环 境发起交易 
+mode —— AllPay 后台环境标识,true 将在 AllPay 正式环境发起交易,false 将在 AllPay 测试环 境发起交易
+:::
 
-```
+## 4.2. 添加 SDK 包
 
-## 4.2. 添加 SDK 包 
-```
 1. 把allpaysdk当做Module导入到自己的工程
 2. 在Application Module的build.gradle文件的dependencies下添加compile project(':allpaysdk') 
 3. 在Application Module的build.gradle文件中添加
-repositories {
-
    flatDir {
-    
        dirs project(':allpaysdk').file('libs')
-        
    }
-    
}
-
 
+```java
+repositories {
+    flatDir {
+        dirs project(':allpaysdk').file('libs')
+    }
+}
 ```
 
+## 4.3. 调用支付控件
 
-
-## 4.3. 调用支付控件 
-```
 接着可以通过以下方式调用支付控件:
-//tn——交易流水号,即 TN,为商户后台从 AllPay 后台获取,获取方式参见 AllPay 网关对接文档
-AllPayEngine.Pay(ShopCartActivity.this, tn,false);//false 测试环境 
+
+```java
+/**
+ * tn——交易流水号,即 TN,为商户后台从 AllPay 后台获取,获取方式参见 AllPay 网关对接文档
+ * false 测试环境
+ */
+AllPayEngine.Pay(ShopCartActivity.this, tn, false);
 ```
-## 4.4. 同步结果通知 
 
- ```
- 支付完成后,获取支付控件支付结果,并添加相应处理逻辑,只需实现调用 Activity 
-中的 onActivityResult()方法即可,实例代码如下: 
+## 4.4. 同步结果通知
 
-@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) 
-{ 
-if (data == null) { 
-return; 
-} 
+支付完成后,获取支付控件支付结果,并添加相应处理逻辑,只需实现调用 Activity 
+中的 onActivityResult()方法即可,实例代码如下:
 
-if (requestCode == AllPayConst.VTPAY_PAY_REQUESR_CODE&& resultCode == AllPayConst.VTPAY_PAY_RESULT_CODE) { 
-String result = data.getExtras().getString("pay_result"); } 
-} 
+ ```java
+@Override
+protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+    if (data == null) {
+        return;
+    }
+
+    if (requestCode == AllPayConst.VTPAY_PAY_REQUESR_CODE&& resultCode == AllPayConst.VTPAY_PAY_RESULT_CODE) {
+        String result = data.getExtras().getString("pay_result");
+    }
+}
+```
 
 pay_result,为 json 字符串,格式如下:
- { 
-"state": "cancel",
-"paymentSchema": "UP", 
-"orderNum": "604337497032", 
-"errorDetail": "user cancel operation " 
-} 
 
-报文说明: 
+```text
+{
+    "state": "cancel",
+    "paymentSchema": "UP",
+    "orderNum": "604337497032",
+    "errorDetail": "user cancel operation "
+}
+```
+
+报文说明:
 
-state: "success"代表成功, "cancel"代表用户取消操作,"fail"代表失败,"query"代表 app 需要调用查询接口来确认订单状态 
-paymentSchema:支付渠道, "APMP"代表支付宝, "WX"代表微信 
-orderNum:订单号
-errorDetail:错误详情 
- ```
+* state: "success"代表成功, "cancel"代表用户取消操作,"fail"代表失败,"query"代表 app 需要调用查询接口来确认订单状态
+* paymentSchema: 支付渠道, "APMP"代表支付宝, "WX"代表微信 
+* orderNum: 订单号
+* errorDetail: 错误详情
 
 
 ## 4.5. 异步结果通知
@@ -77,8 +84,7 @@ errorDetail:错误详情
 商户需要提供一个 http 协议的接口,包含在参数里传递给 SDK,即 backURL。AllPay 
 服务器在支付完成后,会以 Get 方式调用 backURL,通知支付结果。 
 
-参数如下表: 
-
+参数如下表:
 
  序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------

+ 7 - 6
docs/h5/2.md

@@ -9,14 +9,15 @@ Common interface between merchant server and AllPay gateway, each channel has fu
 2.At the end of String1, the signature key K1(assigned at ALLPAY upon access) agreed by both parties is spliced directly (no need to connect with "&"), resulting in a stringSignTemp string, and an md5 operation on stringSignTemp to get the value of signature.
 
 3.Sample signature string
-```
-acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26 
 
+```js
+acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26
 ```
+
 ## 2.2. General API access address
 
- Transaction Type   |Test URL |Production URL   
+ Transaction Type   |Test URL |Production URL
  ------- |-----------|-------
- Purchase|https://mchapi.allpayx.com/testjspay  |https://mchapi.allpayx.com/jspay 
- Inquiry  |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- Refund  |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1
+ Purchase |<https://mchapi.allpayx.com/testjspay> |<https://mchapi.allpayx.com/jspay>
+ Inquiry |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ Refund |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>

+ 1 - 1
docs/ios/2.md

@@ -1,3 +1,3 @@
 # 2.交易流程
 
-  ![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/moble_sdk_flowsheet.png)
+![image](/moble_sdk_flowsheet.png)

+ 16 - 14
docs/ios/3.md

@@ -8,26 +8,30 @@
 
 2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入时 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
 
-3.示例签名串 
-```
+3.示例签名串
+
+```js
 acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26 
 ```
+
 ## 3.2. 通用API 接入地址 
+
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://testapi.allpayx.com/app/pay |https://api.allpayx.com/app/pay 
- 查询接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
- 退款接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
+ 消费接口 |<https://testapi.allpayx.com/app/pay> |<https://api.allpayx.com/app/pay>
+ 查询接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
+ 退款接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
 
 ## 3.3. 消费交易接口
-1. 接口说明
 
-  商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
-   
-2. 请求报文格式 
+1.接口说明
+
+商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
+
+2.请求报文格式
+
+下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
 
-  下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
- 
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
@@ -55,9 +59,7 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
   2|错误信息 |32|文本|msg |错误信息
   3|交易流水号 |32|文本|tn |tn 作为调起 sdk 支付的参数,code等于"00"时返回该字段
   
-## 3.4. 查询交易接口 
-
-
+## 3.4. 查询交易接口
  
 1. 接口说明
  

+ 50 - 32
docs/ios/4.md

@@ -2,28 +2,33 @@
 
 ## 4.1. 接入说明 
 
-```
 启动支付控件的接口,接口定义如下:
 
-[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) { 
+```c
+[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) {
 
-//此处处理同步支付结果 
+//此处处理同步支付结果
 
-}]; 
-tn:是从服务器端获取的流水号; mode:测试环境:NO; 
-生产环境:YES。 
-Scheme: 可以为任意值推荐填写成"com.xxx.xxx" 等形式, 有特殊配置的渠道会在渠道专属配置里面说明
-ViewController:调用 SDK 时的 ViewController; 
-onResult:接收同步结果通知 
+}];
 
 ```
-## 4.2. 添加 SDK 包 
-```
-1. 将  allpaysdk 下的 AllPaySDK.h,libAllPaySDK.a文件add到项目中
-2. 在 APPDelegate.m 类中导入头文件: 
 
-#import "allpaysdk/AllPaySDK.h" 并添加如下方法 
+::: tip 参数说明
+tn: 是从服务器端获取的流水号; mode:测试环境:NO; 生产环境:YES。
+
+Scheme: 可以为任意值推荐填写成"com.xxx.xxx" 等形式, 有特殊配置的渠道会在渠道专属配置里面说明
 
+ViewController: 调用 SDK 时的 ViewController;
+
+onResult: 接收同步结果通知
+:::
+
+## 4.2. 添加 SDK 包
+
+1. 将  allpaysdk 下的 AllPaySDK.h,libAllPaySDK.a文件add到项目中
+2. 在 APPDelegate.m 类中导入头文件: #import "allpaysdk/AllPaySDK.h" 并添加如下方法
+
+```c
 -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ 
 
 [AllPaySDK openURL:url]; return YES; 
@@ -40,32 +45,46 @@ onResult:接收同步结果通知
 
 [AllPaySDK openURL:url]; return YES; 
 
-} 
+}
+```
 
 3. 根据要使用的渠道的专属配置,对项目进行配置
 
-```
+## 4.3 同步结果通知 
+
+```c
+[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) { 
 
+  //此处处理同步支付结果
 
-## 4.3 同步结果通知 
+ }];
 ```
 
-[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) { 
+resultDic,转为 json 字符串,格式如下:
 
-//此处处理同步支付结果
- }]; 
-resultDic,转为 json 字符串,格式如下: 
+```text
+{
+  "state": "cancel",
+  "paymentSchema": "YL",
+  "orderNum": "604337497032",
+  "errorDetail": "user cancel operation"
+}
+```
+
+::: tip 报文说明
 
-{"state": "cancel",
-"paymentSchema": "YL", 
-"orderNum": "604337497032",
- "errorDetail": "user cancel operation " 
-} 
 - state: "success"代表成功, "cancel"代表用户取消操作, "fail"代表失败
-- paymentSchema:支付渠道, 印度本地支付:"EB", "APMP"代表支付宝,  "WX"代表微信,"APP"代表ApplePay
-- orderNum:订单号
-- errorDetail:错误详情  
-```
+- paymentSchema: 支付渠道, 印度本地支付:"EB", "APMP"代表支付宝,  "WX"代表微信,"APP"代表ApplePay
+- orderNum: 订单号
+- errorDetail: 错误详情
+
+:::
+| 参数        | 说明           |
+| ------------- |:-------------:|
+| state      | "success"代表成功, "cancel"代表用户取消操作, "fail"代表失败 |
+| paymentSchema |印度本地支付:"EB", "APMP"代表支付宝,  "WX"代表微信,"APP"代表ApplePay      |
+| orderNum | 订单号      |
+| errorDetail | 错误详情      |
 
 
 ## 4.5. 异步结果通知
@@ -75,8 +94,7 @@ resultDic,转为 json 字符串,格式如下:
 
 参数如下表: 
 
-
- 序号 |名称  |长度|类型|参数名称|备注 
+ 序号 |名称  |长度|类型|参数名称|备注
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
  2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 

+ 1 - 1
docs/ios/README.md

@@ -1,4 +1,4 @@
-# iOS端控件支付产品接口规范文档4.0.0
+# IOS端控件支付产品接口规范文档4.0.0
 
 [上海偶可贝网络科技有限公司](https://www.allpayx.com)
 

+ 1 - 1
docs/pc/2.md

@@ -1,3 +1,3 @@
 # 2.Transaction process
 
-![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/pc_flowsheet.png)
+![image](/pc_flowsheet.png)

+ 19 - 21
docs/pc/3.md

@@ -4,42 +4,41 @@ Common interface between merchant server and AllPay gateway, each channel has fu
 
 ## 3.1. 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.
 
 2.At the end of String1, the signature key K1(assigned at ALLPAY upon access) agreed by both parties is spliced directly (no need to connect with "&"), resulting in a stringSignTemp string, and an md5 operation on stringSignTemp to get the value of signature.
 
 3.Sample signature string:
 
-```
-acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26 
+```js
+acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26
 ```
 
 ## 3.2. General API access address
 
  Transaction Type  |Test Address|Production Address  
  ------- |-----------|-------
- Purchase |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- Inqiury |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- Refund |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- 
+ Purchase |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ Inqiury |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ Refund |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+
 ## 3.3. Purchase interface
 
 1. Request message format
- 
-	This field is a list of common fields, sending, every channel needs some channel channel exclusive field, specific fields please go to the channel's exclusive canal to the fields that view. Consumer interface is divided into jump transformation and parameters return type, default to jump transformation, parameters return type will be explained in chapter 4 channels (exclusive) inside.
 
- No. |Field Name  |Max.Length|Type|Parameter Name|Comment 
+This field is a list of common fields, sending, every channel needs some channel channel exclusive field, specific fields please go to the channel's exclusive canal to the fields that view. Consumer interface is divided into jump transformation and parameters return type, default to jump transformation, parameters return type will be explained in chapter 4 channels (exclusive) inside.
+
+ No. |Field Name  |Max.Length|Type|Parameter Name|Comment
  -----|-----|----|----|------|------
- 1|Message Version|12|Text|version |"VER000000002" 
- 2|Character set coding |6|Text|charSet  |"UTF-8" 
- 3|Transaction type  |4|Text|transType |"PURC" 
- 4|Order Number   |60|Text|orderNum  |The merchant shall define it by itself, and the order number of the same merchant number shall not be repeated 
- 5|Order Amount |12|Text|orderAmount   |100 is displayed as 100 or 100.00 
- 6|Order Currency   |3|Text|orderCurrency |Fill in "CNY" in RMB and "USD" in USD 
- 7|Frontend URL Address |400|Text|frontURL  |Payment results are notified to this address front 
- 8|Backend URL Address |400|Text|backURL   |Payment results are notified to this address asynchronously 
- 9|Merchant Reserved  |1024 |Text|merReserve    |Merchant reserved content, can pass any content, such as purchase information, account number, etc., but do not pass special symbols, such as commas. 
+ 1|Message Version|12|Text|version |"VER000000002"
+ 2|Character set coding |6|Text|charSet  |"UTF-8"
+ 3|Transaction type  |4|Text|transType |"PURC"
+ 4|Order Number   |60|Text|orderNum  |The merchant shall define it by itself, and the order number of the same merchant number shall not be repeated
+ 5|Order Amount |12|Text|orderAmount   |100 is displayed as 100 or 100.00
+ 6|Order Currency   |3|Text|orderCurrency |Fill in "CNY" in RMB and "USD" in USD
+ 7|Frontend URL Address |400|Text|frontURL  |Payment results are notified to this address front
+ 8|Backend URL Address |400|Text|backURL   |Payment results are notified to this address asynchronously
+ 9|Merchant Reserved  |1024 |Text|merReserve    |Merchant reserved content, can pass any content, such as purchase information, account number, etc., but do not pass special symbols, such as commas.
  10|Merchant ID   |15 |Text|merID     |Merchant ID, assigned by AllPay 
  11|Acquirer ID    |11  |Text|acqID      |"99020344" 
  12|Payment Channel Code    |10  |Text|paymentSchema|Payment Channel Code:[Click here for details](https://git.allpayx.com/OpenAPI/b2c/src/master/pc_api/paymentSchema.md)
@@ -157,5 +156,4 @@ This interface provides the function of refund transaction for access merchants.
  10|Transaction Time    |14  |Text|transTime       |Transaction time, format :" yyymmddhhmmss" 
  11|Gateway process time |14  |Text|GWTime |YYYYMMDDHHMMSS this should be a GWtime, currently is local transaction time 
  12|Signature Type     |3  |Text|signType        |MD5 
- 13|Signature Data      |32  |Text|signature         |MD5 signature 
- 
+ 13|Signature Data      |32  |Text|signature         |MD5 signature 

+ 3 - 3
docs/wx/2.md

@@ -18,6 +18,6 @@ acqID=99020344&backURL=http://example.com/example&charSet=UTF- 8&frontURL=nil&me
 
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://testapi.allpayx.com/gw/wap/pay/v1 |https://api.allpayx.com/gw/wap/pay/v1
- 查询接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- 退款接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1
+ 消费接口 |<https://testapi.allpayx.com/gw/wap/pay/v1> |<https://api.allpayx.com/gw/wap/pay/v1>
+ 查询接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ 退款接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>

+ 7 - 7
docs/wx/3.md

@@ -29,11 +29,13 @@
 2. 返回数据格式
 
  ```js
- {'timeStamp': '',
-'nonceStr': '',
- 'package': '',
-'signType': 'MD5',
- 'paySign': ''}
+{
+  'timeStamp': '',
+  'nonceStr': '',
+  'package': '',
+  'signType': 'MD5',
+  'paySign': ''
+}
  ```
 
 将上述返回数据放入微信小程序支付接口,即可调起微信小程序支付,具体方法,参考[微信小程序 API ](https://developers.weixin.qq.com/miniprogram/dev/api/api-pay.html#wxrequestpaymentobject)
@@ -71,7 +73,6 @@
 
 2. 请求报文格式 
 
-
  序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
@@ -132,7 +133,6 @@
 
 3.响应报文格式
 
-
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 

+ 1 - 1
docs/zh/android/2.md

@@ -1,3 +1,3 @@
 # 2.交易流程
 
-  ![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/moble_sdk_flowsheet.png)
+![image](/moble_sdk_flowsheet.png)

+ 14 - 10
docs/zh/android/3.md

@@ -8,25 +8,29 @@
 
 2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入时 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
 
-3.示例签名串 
-```
+3.示例签名串
+
+```js
 acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26 
 ```
+
 ## 3.2. 通用API 接入地址 
+
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://testapi.allpayx.com/app/pay |https://api.allpayx.com/app/pay 
- 查询接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
- 退款接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
+ 消费接口 |<https://testapi.allpayx.com/app/pay> |<https://api.allpayx.com/app/pay>
+ 查询接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
+ 退款接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
 
 ## 3.3. 消费交易接口
-1. 接口说明
 
-  商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
-   
-2. 请求报文格式 
+1.接口说明
+
+商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
+
+2.请求报文格式
 
-  下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
+下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
  
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------

+ 52 - 46
docs/zh/android/4.md

@@ -1,75 +1,82 @@
-# 4.ANDROID 客户端接入步骤 
+# 4.Android 客户端接入步骤 
 
 ## 4.1. 接入说明 
 
-```
 启动支付控件的接口,接口定义如下:
 
+```java
 public static void pay(Activity activity,String tn,boolean mode)
- 
-参数说明:
+```
 
+::: tip 参数说明
 activity —— 用于启动支付控件的活动对象
 
-tn——订单信息为交易流水号,即 TN,为商户后台从 AllPay 后台获取
+tn —— 订单信息为交易流水号,即 TN,为商户后台从 AllPay 后台获取
 
-mode ——AllPay 后台环境标识,true 将在 AllPay 正式环境发起交易,false 将在 AllPay 测试环 境发起交易 
+mode —— AllPay 后台环境标识,true 将在 AllPay 正式环境发起交易,false 将在 AllPay 测试环 境发起交易
+:::
 
-```
+## 4.2. 添加 SDK 包
 
-## 4.2. 添加 SDK 包 
-```
 1. 把allpaysdk当做Module导入到自己的工程
 2. 在Application Module的build.gradle文件的dependencies下添加compile project(':allpaysdk') 
 3. 在Application Module的build.gradle文件中添加
-repositories {
-
    flatDir {
-    
        dirs project(':allpaysdk').file('libs')
-        
    }
-    
}
-
 
+```java
+repositories {
+    flatDir {
+        dirs project(':allpaysdk').file('libs')
+    }
+}
 ```
 
+## 4.3. 调用支付控件
 
-
-## 4.3. 调用支付控件 
-```
 接着可以通过以下方式调用支付控件:
-//tn——交易流水号,即 TN,为商户后台从 AllPay 后台获取,获取方式参见 AllPay 网关对接文档
-AllPayEngine.Pay(ShopCartActivity.this, tn,false);//false 测试环境 
+
+```java
+/**
+ * tn——交易流水号,即 TN,为商户后台从 AllPay 后台获取,获取方式参见 AllPay 网关对接文档
+ * false 测试环境
+ */
+AllPayEngine.Pay(ShopCartActivity.this, tn, false);
 ```
-## 4.4. 同步结果通知 
 
- ```
- 支付完成后,获取支付控件支付结果,并添加相应处理逻辑,只需实现调用 Activity 
-中的 onActivityResult()方法即可,实例代码如下: 
+## 4.4. 同步结果通知
 
-@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) 
-{ 
-if (data == null) { 
-return; 
-} 
+支付完成后,获取支付控件支付结果,并添加相应处理逻辑,只需实现调用 Activity 
+中的 onActivityResult()方法即可,实例代码如下:
 
-if (requestCode == AllPayConst.VTPAY_PAY_REQUESR_CODE&& resultCode == AllPayConst.VTPAY_PAY_RESULT_CODE) { 
-String result = data.getExtras().getString("pay_result"); } 
-} 
+ ```java
+@Override
+protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+    if (data == null) {
+        return;
+    }
+
+    if (requestCode == AllPayConst.VTPAY_PAY_REQUESR_CODE&& resultCode == AllPayConst.VTPAY_PAY_RESULT_CODE) {
+        String result = data.getExtras().getString("pay_result");
+    }
+}
+```
 
 pay_result,为 json 字符串,格式如下:
- { 
-"state": "cancel",
-"paymentSchema": "UP", 
-"orderNum": "604337497032", 
-"errorDetail": "user cancel operation " 
-} 
 
-报文说明: 
+```text
+{
+    "state": "cancel",
+    "paymentSchema": "UP",
+    "orderNum": "604337497032",
+    "errorDetail": "user cancel operation "
+}
+```
+
+报文说明:
 
-state: "success"代表成功, "cancel"代表用户取消操作,"fail"代表失败,"query"代表 app 需要调用查询接口来确认订单状态 
-paymentSchema:支付渠道, "APMP"代表支付宝, "WX"代表微信 
-orderNum:订单号
-errorDetail:错误详情 
- ```
+* state: "success"代表成功, "cancel"代表用户取消操作,"fail"代表失败,"query"代表 app 需要调用查询接口来确认订单状态
+* paymentSchema: 支付渠道, "APMP"代表支付宝, "WX"代表微信 
+* orderNum: 订单号
+* errorDetail: 错误详情
 
 
 ## 4.5. 异步结果通知
@@ -77,8 +84,7 @@ errorDetail:错误详情
 商户需要提供一个 http 协议的接口,包含在参数里传递给 SDK,即 backURL。AllPay 
 服务器在支付完成后,会以 Get 方式调用 backURL,通知支付结果。 
 
-参数如下表: 
-
+参数如下表:
 
  序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------

+ 6 - 6
docs/zh/h5/2.md

@@ -10,14 +10,14 @@
 
 3.示例签名串
 
+```js
+acqID=99020344&backURL=http://example.com/example&charSet=UTF- 8&frontURL=nil&merID=000000000000015&merReserve=nil&orderAmount=0.01&orderCurre ncy=CNY&orderNum=869873851812&paymentSchema=APMP&signType=MD5&transTime= 20151112151356&transType=PURC&version=VER0000000022f2c77e3718c47cfb47a89a6fbc9d361
 ```
- acqID=99020344&backURL=http://example.com/example&charSet=UTF- 8&frontURL=nil&merID=000000000000015&merReserve=nil&orderAmount=0.01&orderCurre ncy=CNY&orderNum=869873851812&paymentSchema=APMP&signType=MD5&transTime= 20151112151356&transType=PURC&version=VER0000000022f2c77e3718c47cfb47a89a6fbc9d361 
 
-```
-## 2.2. 通用API 接入地址 
+## 2.2. 通用API 接入地址
 
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://mchapi.allpayx.com/testjspay  |https://mchapi.allpayx.com/jspay 
- 查询接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- 退款接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1
+ 消费接口 |<https://mchapi.allpayx.com/testjspay> |<https://mchapi.allpayx.com/jspay>
+ 查询接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ 退款接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>

+ 1 - 1
docs/zh/ios/2.md

@@ -1,3 +1,3 @@
 # 2.交易流程
 
-  ![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/moble_sdk_flowsheet.png)
+![image](/moble_sdk_flowsheet.png)

+ 16 - 14
docs/zh/ios/3.md

@@ -8,26 +8,30 @@
 
 2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入时 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
 
-3.示例签名串 
-```
+3.示例签名串
+
+```js
 acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26 
 ```
+
 ## 3.2. 通用API 接入地址 
+
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://testapi.allpayx.com/app/pay |https://api.allpayx.com/app/pay 
- 查询接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
- 退款接口 |https://testapi.allpayx.com/pay |https://api.allpayx.com/pay 
+ 消费接口 |<https://testapi.allpayx.com/app/pay> |<https://api.allpayx.com/app/pay>
+ 查询接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
+ 退款接口 |<https://testapi.allpayx.com/pay> |<https://api.allpayx.com/pay>
 
 ## 3.3. 消费交易接口
-1. 接口说明
 
-  商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
-   
-2. 请求报文格式 
+1.接口说明
+
+商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
+
+2.请求报文格式
+
+下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
 
-  下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
- 
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
@@ -55,9 +59,7 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
   2|错误信息 |32|文本|msg |错误信息
   3|交易流水号 |32|文本|tn |tn 作为调起 sdk 支付的参数,code等于"00"时返回该字段
   
-## 3.4. 查询交易接口 
-
-
+## 3.4. 查询交易接口
  
 1. 接口说明
  

+ 50 - 32
docs/zh/ios/4.md

@@ -2,28 +2,33 @@
 
 ## 4.1. 接入说明 
 
-```
 启动支付控件的接口,接口定义如下:
 
-[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) { 
+```c
+[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) {
 
-//此处处理同步支付结果 
+//此处处理同步支付结果
 
-}]; 
-tn:是从服务器端获取的流水号; mode:测试环境:NO; 
-生产环境:YES。 
-Scheme: 可以为任意值推荐填写成"com.xxx.xxx" 等形式, 有特殊配置的渠道会在渠道专属配置里面说明
-ViewController:调用 SDK 时的 ViewController; 
-onResult:接收同步结果通知 
+}];
 
 ```
-## 4.2. 添加 SDK 包 
-```
-1. 将  allpaysdk 下的 AllPaySDK.h,libAllPaySDK.a文件add到项目中
-2. 在 APPDelegate.m 类中导入头文件: 
 
-#import "allpaysdk/AllPaySDK.h" 并添加如下方法 
+::: tip 参数说明
+tn: 是从服务器端获取的流水号; mode:测试环境:NO; 生产环境:YES。
+
+Scheme: 可以为任意值推荐填写成"com.xxx.xxx" 等形式, 有特殊配置的渠道会在渠道专属配置里面说明
 
+ViewController: 调用 SDK 时的 ViewController;
+
+onResult: 接收同步结果通知
+:::
+
+## 4.2. 添加 SDK 包
+
+1. 将  allpaysdk 下的 AllPaySDK.h,libAllPaySDK.a文件add到项目中
+2. 在 APPDelegate.m 类中导入头文件: #import "allpaysdk/AllPaySDK.h" 并添加如下方法
+
+```c
 -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ 
 
 [AllPaySDK openURL:url]; return YES; 
@@ -40,32 +45,46 @@ onResult:接收同步结果通知
 
 [AllPaySDK openURL:url]; return YES; 
 
-} 
+}
+```
 
 3. 根据要使用的渠道的专属配置,对项目进行配置
 
-```
+## 4.3 同步结果通知 
+
+```c
+[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) { 
 
+  //此处处理同步支付结果
 
-## 4.3 同步结果通知 
+ }];
 ```
 
-[AllPaySDK pay:[diction objectForKey:@"tn"] mode:NO scheme:@"com.xxx.xxx" ViewController:self onResult: ^(NSDictionary *resultDic) { 
+resultDic,转为 json 字符串,格式如下:
 
-//此处处理同步支付结果
- }]; 
-resultDic,转为 json 字符串,格式如下: 
+```text
+{
+  "state": "cancel",
+  "paymentSchema": "YL",
+  "orderNum": "604337497032",
+  "errorDetail": "user cancel operation"
+}
+```
+
+::: tip 报文说明
 
-{"state": "cancel",
-"paymentSchema": "YL", 
-"orderNum": "604337497032",
- "errorDetail": "user cancel operation " 
-} 
 - state: "success"代表成功, "cancel"代表用户取消操作, "fail"代表失败
-- paymentSchema:支付渠道, 印度本地支付:"EB", "APMP"代表支付宝,  "WX"代表微信,"APP"代表ApplePay
-- orderNum:订单号
-- errorDetail:错误详情  
-```
+- paymentSchema: 支付渠道, 印度本地支付:"EB", "APMP"代表支付宝,  "WX"代表微信,"APP"代表ApplePay
+- orderNum: 订单号
+- errorDetail: 错误详情
+
+:::
+| 参数        | 说明           |
+| ------------- |:-------------:|
+| state      | "success"代表成功, "cancel"代表用户取消操作, "fail"代表失败 |
+| paymentSchema |印度本地支付:"EB", "APMP"代表支付宝,  "WX"代表微信,"APP"代表ApplePay      |
+| orderNum | 订单号      |
+| errorDetail | 错误详情      |
 
 
 ## 4.5. 异步结果通知
@@ -75,8 +94,7 @@ resultDic,转为 json 字符串,格式如下:
 
 参数如下表: 
 
-
- 序号 |名称  |长度|类型|参数名称|备注 
+ 序号 |名称  |长度|类型|参数名称|备注
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
  2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 

+ 1 - 1
docs/zh/ios/README.md

@@ -1,4 +1,4 @@
-# iOS端控件支付产品接口规范文档4.0.0
+# IOS端控件支付产品接口规范文档4.0.0
 
 [上海偶可贝网络科技有限公司](https://www.allpayx.com)
 

+ 3 - 2
docs/zh/pc/2.md

@@ -1,2 +1,3 @@
-#### 2.交易流程 
-![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/pc_flowsheet.png)
+# 2.交易流程
+
+![image](/pc_flowsheet.png)

+ 11 - 14
docs/zh/pc/3.md

@@ -4,30 +4,29 @@
 
 ## 3.1. 验签说明
 
-
-
 1.对于发送到 ALLPAY 系统的 POST 请求报文,其中所有传入参数(除 signature 参数外)按照字段名的 ASCII 码从小到大排序后(字典序),使用 URL 键值对的格式(即 key1=value1&key2=value2...)拼接成字符串 String1。
 
 2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入时 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
 
 3.示例签名串
-```
+
+```js
 acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInfo=iPhone x&merID=800039253992510&merReserve=&orderAmount=1.00&orderCurrency=INR&orderNum=ap0180417163142&paymentSchema=EB&signType=MD5&transTime=20180417163142&transType=PURC&trxn_email_id=benson.zhang@allpayx.com&trxn_firstname=benson zhang&trxn_is_coupon_enabled=1&trxn_phone=15026528888&unique_id=abcde12345&version=VER000000002f3e0e436cd24430aa4aaaed597450f26 
 ```
-## 3.2. 通用API 接入地址 
+
+## 3.2. 通用API 接入地址
+
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- 查询接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- 退款接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
-
-                            
+ 消费接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ 查询接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ 退款接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
 
 ## 3.3. 消费交易接口
 
 1. 请求报文格式
 
-	下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看. 消费接口分为跳转型和参数返回型,默认为跳转型,参数返回型会在 第4章(渠道专属配置)里面说明
+下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看. 消费接口分为跳转型和参数返回型,默认为跳转型,参数返回型会在 第4章(渠道专属配置)里面说明
 
  序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
@@ -48,14 +47,12 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
  15|签名类型     |3  |文本|signType        |MD5 
  16|签名      |32  |文本|signature         |采用 MD5 签名 
 
-
 2. 跳转型消费接口响应报文
 
-	商户需要提供一个 http/https 协议的接口,包含在参数里传递给 SDK,即 backURL。AllPay 
+商户需要提供一个 http/https 协议的接口,包含在参数里传递给 SDK,即 backURL。AllPay 
 服务器在支付完成后,会以 Get 方式调用 backURL,通知支付结果。 
 
-参数如下表: 
-
+参数如下表:
 
  序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------

+ 3 - 3
docs/zh/wx/2.md

@@ -18,6 +18,6 @@ acqID=99020344&backURL=http://example.com/example&charSet=UTF- 8&frontURL=nil&me
 
  交易名称  |开发调试地址|生产交易地址  
  ------- |-----------|-------
- 消费接口 |https://testapi.allpayx.com/gw/wap/pay/v1 |https://api.allpayx.com/gw/wap/pay/v1
- 查询接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1 
- 退款接口 |https://testapi.allpayx.com/pay/v1 |https://api.allpayx.com/pay/v1
+ 消费接口 |<https://testapi.allpayx.com/gw/wap/pay/v1> |<https://api.allpayx.com/gw/wap/pay/v1>
+ 查询接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>
+ 退款接口 |<https://testapi.allpayx.com/pay/v1> |<https://api.allpayx.com/pay/v1>

+ 7 - 7
docs/zh/wx/3.md

@@ -29,11 +29,13 @@
 2. 返回数据格式
 
  ```js
- {'timeStamp': '',
-'nonceStr': '',
- 'package': '',
-'signType': 'MD5',
- 'paySign': ''}
+{
+  'timeStamp': '',
+  'nonceStr': '',
+  'package': '',
+  'signType': 'MD5',
+  'paySign': ''
+}
  ```
 
 将上述返回数据放入微信小程序支付接口,即可调起微信小程序支付,具体方法,参考[微信小程序 API ](https://developers.weixin.qq.com/miniprogram/dev/api/api-pay.html#wxrequestpaymentobject)
@@ -71,7 +73,6 @@
 
 2. 请求报文格式 
 
-
  序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
@@ -132,7 +133,6 @@
 
 3.响应报文格式
 
-
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002”