Bladeren bron

添加安卓文档

benson 6 jaren geleden
bovenliggende
commit
19f2ba2beb
4 gewijzigde bestanden met toevoegingen van 44 en 20 verwijderingen
  1. 1 2
      docs/android/1.md
  2. 9 10
      docs/android/3.md
  3. 29 5
      docs/android/5.md
  4. 5 3
      docs/android/README.md

+ 1 - 2
docs/android/1.md

@@ -1,3 +1,2 @@
-# 1.概述
-
+#### 1.概述
 AllPay 为基于移动端 APP 支付的客户提供接入插件(下文简称“SDK”),以帮助客户实 现快速、安全、集中式的接入支付渠道。

+ 9 - 10
docs/android/3.md

@@ -10,7 +10,7 @@
 
 3.示例签名串
 
-```js
+```java
 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 
 ```
 
@@ -50,7 +50,7 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
  14|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
  15|签名类型     |3  |文本|signType        |MD5 
  16|签名      |32  |文本|signature         |采用 MD5 签名 
- 
+
 3. 响应报文格式
 
  序号 |名称  |长度|类型|参数名称|备注 
@@ -58,18 +58,18 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
   1|应答码 |2|文本|code |应答码,00成功 
   2|错误信息 |32|文本|msg |错误信息
   3|交易流水号 |32|文本|tn |tn 作为调起 sdk 支付的参数,code等于"00"时返回该字段
-  
+
 ## 3.4. 查询交易接口 
 
 
- 
+
 1. 接口说明
- 
+
  该接口为接入商家提供交易查询的功能。
 
 2. 请求报文格式 
 
-  
+
  序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
@@ -87,7 +87,7 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
 
 3. 响应报文格式
 
-  
+
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
@@ -127,10 +127,10 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
  11|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
  12|签名类型     |3  |文本|signType        |MD5 
  13|签名      |32  |文本|signature         |采用 MD5 签名 
- 
+
 3.响应报文格式
 
-  
+
   序号 |名称  |长度|类型|参数名称|备注 
  -----|-----|----|----|------|------
  1|版本号|12|文本|version |统一填写为“VER000000002” 
@@ -146,4 +146,3 @@ acqID=99020344&backURL=https://www.baidu.com&charSet=UTF-8&frontURL=nil&goodsInf
  11|GW 处理时间 |14  |文本|GWTime |YYYYMMDDHHMMSS,为 GW 时间,目前为本地交易时间 
  12|签名类型     |3  |文本|signType        |MD5 
  13|签名      |32  |文本|signature         |采用 MD5 签名 
- 

+ 29 - 5
docs/android/5.md

@@ -1,7 +1,5 @@
-# 5.渠道专属配置
-
-## 5.1 EB渠道
-
+#### 5.渠道专属配置
+##### 5.1 EB渠道
 * 消费接口专属字段
 	* 请求报文
 	
@@ -11,4 +9,30 @@
   2| 邮箱     |40  |文本|trxn_email_id         |this is email id of the customer who is doing transaction.
   3|电话 |20  |文本|trxn_phone|Phone number of the customer.
   4|优惠券选项 |1  |文本|trxn_is_coupon_enabled| If the value is 0 then customer will not be able to see the coupons. If the value is 1 then customer will be able see the coupons and able to select the coupons
-  5|客户id |10  |文本|unique_id|This is customer’s unique id.不能超过10位
+  5|客户id |10  |文本|unique_id|This is customer’s unique id.不能超过10位
+
+##### 5.2 WX渠道
+* 渠道配置
+  
+  在主项目的AndroidManifest.xml文件中添加添加如下配置
+  
+```xml
+  
+  <!-- wpay sdk begin -->
+
+
+<activity
+    android:name="com.allpayx.sdk.wxapi.WXPayEntryActivity"
+    android:exported="true"
+    android:launchMode="singleTop" />
+
+
+<activity-alias
+    android:name=".wxapi.WXPayEntryActivity"
+    android:exported="true"
+    android:launchMode="singleTop"
+    android:targetActivity="com.allpayx.sdk.wxapi.WXPayEntryActivity" />
+
+<!-- wpay sdk end -->
+
+```

+ 5 - 3
docs/android/README.md

@@ -1,6 +1,8 @@
-# Android端控件支付产品接口规范文档4.0.0
+# Android端控件支付产品接口规范文档4.0.2
 
 [上海偶可贝网络科技有限公司](https://www.allpayx.com)
 
-* 版本信息:中文 V4.0.0
-* 更新时间:2018 年4 月
+* 版本信息:中文 V4.0.2
+* 更新时间:2018 年7 月
+
+#