Browse Source

delete ios android

benson 6 years ago
parent
commit
aa383c7299
52 changed files with 0 additions and 3703 deletions
  1. 0 272
      mobile_sdk/android/android_sdk/Android端控件支付产品接口规范文档4.0.0.md
  2. 0 9
      mobile_sdk/android/android_sdk/Demo/.gitignore
  3. 0 1
      mobile_sdk/android/android_sdk/Demo/allpaysdk/.gitignore
  4. 0 67
      mobile_sdk/android/android_sdk/Demo/allpaysdk/build.gradle
  5. BIN
      mobile_sdk/android/android_sdk/Demo/allpaysdk/libs/AllPaySDK.jar
  6. BIN
      mobile_sdk/android/android_sdk/Demo/allpaysdk/libs/peb-lib.aar
  7. 0 40
      mobile_sdk/android/android_sdk/Demo/allpaysdk/proguard-rules.pro
  8. 0 17
      mobile_sdk/android/android_sdk/Demo/allpaysdk/src/main/AndroidManifest.xml
  9. 0 3
      mobile_sdk/android/android_sdk/Demo/allpaysdk/src/main/res/values/strings.xml
  10. 0 1
      mobile_sdk/android/android_sdk/Demo/app/.gitignore
  11. 0 38
      mobile_sdk/android/android_sdk/Demo/app/build.gradle
  12. 0 25
      mobile_sdk/android/android_sdk/Demo/app/proguard-rules.pro
  13. 0 26
      mobile_sdk/android/android_sdk/Demo/app/src/androidTest/java/com/vtpayment/plugin/ExampleInstrumentedTest.java
  14. 0 31
      mobile_sdk/android/android_sdk/Demo/app/src/main/AndroidManifest.xml
  15. 0 205
      mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/MainActivity.java
  16. 0 1921
      mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/Base64.java
  17. 0 53
      mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/EncoderUtil.java
  18. 0 22
      mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/JsonUtil.java
  19. 0 30
      mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/PayOrder.java
  20. 0 64
      mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/PayUtil.java
  21. 0 18
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/drawable/buy_button_bg.xml
  22. 0 243
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/layout/activity_main.xml
  23. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-hdpi/ic_launcher.png
  24. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  25. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-mdpi/ic_launcher.png
  26. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  27. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  28. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  29. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  30. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  31. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  32. BIN
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  33. 0 6
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/values/colors.xml
  34. 0 13
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/values/strings.xml
  35. 0 11
      mobile_sdk/android/android_sdk/Demo/app/src/main/res/values/styles.xml
  36. 0 17
      mobile_sdk/android/android_sdk/Demo/app/src/test/java/com/vtpayment/plugin/ExampleUnitTest.java
  37. 0 24
      mobile_sdk/android/android_sdk/Demo/build.gradle
  38. 0 17
      mobile_sdk/android/android_sdk/Demo/gradle.properties
  39. BIN
      mobile_sdk/android/android_sdk/Demo/gradle/wrapper/gradle-wrapper.jar
  40. 0 6
      mobile_sdk/android/android_sdk/Demo/gradle/wrapper/gradle-wrapper.properties
  41. 0 160
      mobile_sdk/android/android_sdk/Demo/gradlew
  42. 0 90
      mobile_sdk/android/android_sdk/Demo/gradlew.bat
  43. 0 1
      mobile_sdk/android/android_sdk/Demo/settings.gradle
  44. 0 1
      mobile_sdk/android/android_sdk/allpaysdk/.gitignore
  45. 0 142
      mobile_sdk/android/android_sdk/allpaysdk/allpaysdk.iml
  46. 0 67
      mobile_sdk/android/android_sdk/allpaysdk/build.gradle
  47. BIN
      mobile_sdk/android/android_sdk/allpaysdk/libs/AllPaySDK.jar
  48. BIN
      mobile_sdk/android/android_sdk/allpaysdk/libs/peb-lib.aar
  49. 0 40
      mobile_sdk/android/android_sdk/allpaysdk/proguard-rules.pro
  50. 0 17
      mobile_sdk/android/android_sdk/allpaysdk/src/main/AndroidManifest.xml
  51. 0 3
      mobile_sdk/android/android_sdk/allpaysdk/src/main/res/values/strings.xml
  52. 0 2
      mobile_sdk/iOS/README.md

+ 0 - 272
mobile_sdk/android/android_sdk/Android端控件支付产品接口规范文档4.0.0.md

@@ -1,272 +0,0 @@
-#Android端控件支付产品接口规范文档4.0.0
-
-[上海偶可贝网络科技有限公司](https://www.allpayx.com)
-
-* 版本信息:中文 V4.0.0
-* 更新时间:2018 年4 月
-
-#### 1.概述
-AllPay 为基于移动端 APP 支付的客户提供接入插件(下文简称“SDK”),以帮助客户实 现快速、安全、集中式的接入支付渠道。
-#### 2.交易流程 
-  ![image](https://git.allpayx.com/OpenAPI/b2c/raw/master/images/moble_sdk_flowsheet.png)
-#### 3.通用API说明 
-商户服务器和 AllPay 网关对接的通用接口,每个渠道都具有的功能,包括:消费,退款,查询接口。 
-##### 3.1. 验签说明 
-```
-1.对于发送到 ALLPAY 系统的 POST 请求报文,其中所有传入参数(除 signature 参数外)按照字段名的 ASCII 码从小到大排序后(字典序),使用 URL 键值对的格式(即 key1=value1&key2=value2...)拼接成字符串 String1。
-
-2.在 String1 最后直接拼接(不需要用“&”连接)双方约定的签名密钥 K1(接入时 ALLPAY 时分配),得到 stringSignTemp 字符串,并对 stringSignTemp 进行 md5 运算,得到 signature 的值。
-
-3.示例签名串 acqID=99020344&backURL=http://example.com/example&charSet=UTF- 8&frontURL=nil&merID=000000000000015&merReserve=nil&orderAmount=0.01&orde rCurrency=CNY&orderNum=869873851812&paymentSchema=EB&signType=MD5 &transTime=20151112151356&transType=PURC&version=VER0000000022f2c77e3718c47cfb47a89a6fbc9d361 
-```
-##### 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 
-
-##### 3.3. 消费交易接口
-1. 接口说明
-
-  商户网关将订单信息发送给 ALLPAY 网关,由 ALLPAY 网关进行处理后将交易流水 号,即 tn,返回给商户网关,tn 作为调起手机 app 支付控件的参数。
-   
-2. 请求报文格式 
-
-  下面列举的字段为通用字段,每个渠道都需要上送,部分渠道有渠道专属字段,具体字段请到该渠道的专属渠到字段说明处查看
- 
-  序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
- 1|版本号|12|文本|version |统一填写为“VER000000002” 
- 2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 
- 3|交易类型  |4|文本|transType |消费交易填写“PURC” 
- 4|订单号   |60|文本|orderNum  |商户自行定义,需保证同一商户号下订单号不能重复 
- 5|订单金额 |12|文本|orderAmount   |如 100 元,表示为 100 或 100.00 
- 6|订单币种   |3|文本|orderCurrency |人民币填写“CNY”,美元填写"USD" 
- 7|前端 URL 地址 |400|文本|frontURL  |app 模式默认填"nil" 
- 8|后端 URL 地址 |400|文本|backURL   |支付结果异步通知到该地址 
- 9|商户预留字段  |1024 |文本|merReserve    |商户预留内容,可传任意内容,如购买商品信息、员号等,但不要传特殊符号,如逗号。 
- 10|商户代码   |15 |文本|merID     |商户 ID,由AllPay 分配 
- 11|收单行 ID    |11  |文本|acqID      |收单行 ID "99020344" 
- 12|支付渠道代码    |10  |文本|paymentSchema       |支付宝:"APMP"; 微信:"WX"; 境外银联:"UP";  ApplePay 支付:"APP" ;Easebuzz:"EB"
- 13|商品信息    |60  |文本|goodsInfo       | 商品信息
- 14|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
- 15|签名类型     |3  |文本|signType        |MD5 
- 16|签名      |32  |文本|signature         |采用 MD5 签名 
- 
-3. 响应报文格式
-
- 序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
-  1|应答码 |2|文本|code |应答码,00成功 
-  2|错误信息 |32|文本|msg |错误信息
-  3|交易流水号 |32|文本|tn |tn 作为调起 sdk 支付的参数,code等于"00"时返回该字段
-  
-##### 3.4. 查询交易接口 
-
-
- 
-1. 接口说明
- 
- 该接口为接入商家提供交易查询的功能。
-
-2. 请求报文格式 
-
-  
- 序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
- 1|版本号|12|文本|version |统一填写为“VER000000002” 
- 2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 
- 3|交易类型  |4|文本|transType |查询填写“INQY”  
- 4|订单号   |60|文本|orderNum  |商户自行定义,需保证同一商户号下订单号不能重复 
- 5|商户预留字段  |1024 |文本|merReserve    |商户保留 
- 6|商户代码   |15 |文本|merID     |商户 ID,由AllPay 分配 
- 7|收单行 ID    |11  |文本|acqID      |收单行 ID "99020344" 
- 8|支付渠道代码    |10  |文本|paymentSchema       |支付宝:"APMP"; 微信:"WX"; 境外银联:"UP";  ApplePay 支付:"APP" ;Easebuzz:"EB"
- 9|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
- 10|签名类型     |3  |文本|signType        |MD5 
- 11|签名      |32  |文本|signature         |采用 MD5 签名 
-
-
-3. 响应报文格式
-
-  
-  序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
- 1|版本号|12|文本|version |统一填写为“VER000000002” 
- 2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 
- 3|交易类型  |4|文本|transType |查询交易填写为“INQY 
- 4|订单号   |60|文本|orderNum  |商户自行定义,需保证同一商户号下订单号不能重复 
- 5|GW 交易 ID  |32|文本|transID    |GW 系统生成的交易 ID,每笔交易保持唯一  
- 6|商户代码   |15 |文本|merID     |商户 ID,由AllPay 分配 
- 7|收单行 ID    |11  |文本|acqID      |收单行 ID "99020344" 
- 8|交易应答码   |2  |文本|RespCode       |应答码 00-成功  
- 9|应答文字信息    |20  |文本|RespMsg        |应答消息,全部为英文字符 
- 10|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
- 11|GW 处理时间 |14  |文本|GWTime |YYYYMMDDHHMMSS,为 GW 时间,目前为本地交易时间 
- 12|签名类型     |3  |文本|signType        |MD5 
- 13|签名      |32  |文本|signature         |采用 MD5 签名 
-
-##### 3.5. 退款交易接口
-
-1.接口功能说明 
-
-该接口为接入商家提供交易退款的功能。 
-
-2.请求报文格式 
-
-  序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
- 1|版本号|12|文本|version |统一填写为“VER000000002” 
- 2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 
- 3|交易类型  |4|文本|transType |退款填写“REFD” 
- 4|订单号   |60|文本|orderNum  |商户自行定义,需保证同一商户号下订单号不能重复 
- 5|退款金额  |12|文本|returnAmount    |如 100 元,表示为 100 或 100.00 
- 6|订单币种   |3|文本|orderCurrency |人民币填写“CNY”,美元填写"USD" 
- 7|商户预留字段  |1024 |文本|merReserve    |商户预留内容,可传任意内容,如购买商品信息、员号等,但不要传特殊符号,如逗号。 
- 8|商户代码   |15 |文本|merID     |商户 ID,由AllPay 分配 
- 9|收单行 ID    |11  |文本|acqID      |收单行 ID "99020344" 
- 10|支付渠道代码    |10  |文本|paymentSchema       |支付宝:"APMP"; 微信:"WX"; 境外银联:"UP";  ApplePay 支付:"APP" ;Easebuzz:"EB"
- 11|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
- 12|签名类型     |3  |文本|signType        |MD5 
- 13|签名      |32  |文本|signature         |采用 MD5 签名 
- 
-3.响应报文格式
-
-  
-  序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
- 1|版本号|12|文本|version |统一填写为“VER000000002” 
- 2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 
- 3|交易类型  |4|文本|transType |退款填写“REFD” 
- 4|订单号   |60|文本|orderNum  |商户自行定义,需保证同一商户号下订单号不能重复 
- 5|GW 交易 ID  |32|文本|transID    |GW 系统生成的交易 ID,每笔交易保持唯一  
- 6|商户代码   |15 |文本|merID     |商户 ID,由AllPay 分配 
- 7|收单行 ID    |11  |文本|acqID      |收单行 ID "99020344" 
- 8|交易应答码   |2  |文本|RespCode       |应答码 00-成功  
- 9|应答文字信息    |20  |文本|RespMsg        |应答消息,全部为英文字符 
- 10|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
- 11|GW 处理时间 |14  |文本|GWTime |YYYYMMDDHHMMSS,为 GW 时间,目前为本地交易时间 
- 12|签名类型     |3  |文本|signType        |MD5 
- 13|签名      |32  |文本|signature         |采用 MD5 签名 
- 
-#### 4.ANDROID 客户端接入步骤 
-
-##### 4.1. 接入说明 
-
-```
-启动支付控件的接口,接口定义如下:
-
-public static void pay(Activity activity,String tn,boolean mode)
- 
-参数说明:
-
-activity —— 用于启动支付控件的活动对象
-
-tn——订单信息为交易流水号,即 TN,为商户后台从 AllPay 后台获取
-
-mode ——AllPay 后台环境标识,true 将在 AllPay 正式环境发起交易,false 将在 AllPay 测试环 境发起交易 
-
-```
-
-##### 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')
-        
    }
-    
}
-
-
-```
-
-
-
-##### 4.3. 调用支付控件 
-```
-接着可以通过以下方式调用支付控件:
-//tn——交易流水号,即 TN,为商户后台从 AllPay 后台获取,获取方式参见 AllPay 网关对接文档
-AllPayEngine.Pay(ShopCartActivity.this, tn,false);//false 测试环境 
-```
-##### 4.4. 同步结果通知 
-
- ```
- 支付完成后,获取支付控件支付结果,并添加相应处理逻辑,只需实现调用 Activity 
-中的 onActivityResult()方法即可,实例代码如下: 
-
-@Overrideprotected 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 " 
-} 
-
-报文说明: 
-
-state: "success"代表成功, "cancel"代表用户取消操作,"fail"代表失败,"query"代表 app 需要调用查询接口来确认订单状态 
-paymentSchema:支付渠道, "APMP"代表支付宝, "WX"代表微信 
-orderNum:订单号
-errorDetail:错误详情 
- ```
-
-
-##### 4.5. 异步结果通知
-
-商户需要提供一个 http 协议的接口,包含在参数里传递给 SDK,即 backURL。AllPay 
-服务器在支付完成后,会以 Get 方式调用 backURL,通知支付结果。 
-
-参数如下表: 
-
-
- 序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
- 1|版本号|12|文本|version |统一填写为“VER000000002” 
- 2|字符集编码 |6|文本|charSet  |统一填写为“UTF-8” 
- 3|交易类型  |4|文本|transType |消费交易填写“PURC” 
- 4|订单号   |60|文本|orderNum  |商户自行定义,需保证同一商户号下订单号不能重复 
- 5|订单金额 |12|文本|orderAmount   |如 100 元,表示为 100 或 100.00 
- 6|订单币种   |3|文本|orderCurrency |人民币填写“CNY”,美元填写"USD" 
- 7|清算金额  |12 |文本|settAmount   |如 100 元,表示为 100 或 100.00  
- 8|清算币种  |3|文本|settCurrency    |符合 ISO 标准,填写数字类型 
- 9|清算汇率   |7|文本|rate     |实际汇率,7 位有效数字  
- 10|商户预留字段  |1024 |文本|merReserve    |商户预留内容,可传任意内容,如购买商品信息、员号等,但不要传特殊符号,如逗号。 
- 11|GW 交易 ID  |32|文本|transID    |GW 系统生成的交易 ID,每笔交易保持唯一
- 12|商户代码   |15 |文本|merID     |商户 ID,由AllPay 分配 
- 13|收单行 ID    |11  |文本|acqID      |收单行 ID "99020344" 
- 14|支付渠道代码    |10  |文本|paymentSchema       |支付宝:"APMP"; 微信:"WX"; 境外银联:"UP";  ApplePay 支付:"APP" ;Easebuzz:"EB"
- 15|交易应答码   |2  |文本|RespCode       |应答码 00-成功  
- 16|应答文字信息    |20  |文本|RespMsg        |应答消息,全部为英文字符 
- 17|交易时间    |14  |文本|transTime       |交易时间,格式:"yyyyMMddHHmmss" 
- 18|GW 处理时间 |14  |文本|GWTime |YYYYMMDDHHMMSS,为 GW 时间,目前为本地交易时间
- 19|签名类型     |3  |文本|signType        |MD5 
- 20|签名      |32  |文本|signature         |采用 MD5 签名 
- 
-#### 5.渠道专属配置
-##### 5.1 EB渠道
-* 消费接口专属字段
-	* 请求报文
-	
-	 序号 |名称  |长度|类型|参数名称|备注 
- -----|-----|----|----|------|------
-  1| 姓名     |32  |文本|trxn_firstname         |This is name of the customer who is doing the transaction. 
-  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位
- 
-
-

+ 0 - 9
mobile_sdk/android/android_sdk/Demo/.gitignore

@@ -1,9 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea
-.DS_Store
-/build
-/captures
-.externalNativeBuild
-

+ 0 - 1
mobile_sdk/android/android_sdk/Demo/allpaysdk/.gitignore

@@ -1 +0,0 @@
-/build

+ 0 - 67
mobile_sdk/android/android_sdk/Demo/allpaysdk/build.gradle

@@ -1,67 +0,0 @@
-apply plugin: 'com.android.library'
-
-android {
-    compileSdkVersion 25
-    buildToolsVersion "26.0.0"
-
-    defaultConfig {
-        minSdkVersion 15
-        targetSdkVersion 25
-        versionCode 1
-        versionName "1.0"
-        multiDexEnabled true
-        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
-
-    }
-    buildTypes {
-        release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
-        }
-    }
-
-    packagingOptions {
-        //打包时的相关配置
-        exclude 'META-INF/DEPENDENCIES'
-        exclude 'META-INF/NOTICE'
-        exclude 'META-INF/LICENSE'
-        exclude 'META-INF/LICENSE.txt'
-        exclude 'META-INF/NOTICE.txt'
-    }
-
-    dexOptions {
-        javaMaxHeapSize "4g"
-    }
-
-
-    }
-
-repositories {
-    mavenCentral()
-    flatDir {
-        dirs 'libs'
-    }
-}
-
-dependencies {
-    compile fileTree(dir: 'libs', include: ['*.jar'])
-    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
-        exclude group: 'com.android.support', module: 'support-annotations'
-    })
-    compile 'com.android.support:appcompat-v7:25.3.1'
-    testCompile 'junit:junit:4.12'
-
-    compile(name: 'peb-lib', ext: 'aar')
-    compile 'com.android.support:cardview-v7:25.3.1'
-    compile 'com.android.support:recyclerview-v7:25.3.1'
-    compile 'com.squareup.picasso:picasso:2.4.0'
-    compile 'com.squareup.okhttp:okhttp:2.4.0'
-    compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
-    compile 'com.github.bumptech.glide:glide:3.5.2'
-    compile 'com.squareup.retrofit2:retrofit:2.3.0'
-    compile 'com.squareup.retrofit2:converter-gson:2.3.0'
-    compile 'com.google.android.gms:play-services-auth:11.8.0'
-    compile files('libs/AllPaySDK.jar')
-
-
-}

BIN
mobile_sdk/android/android_sdk/Demo/allpaysdk/libs/AllPaySDK.jar


BIN
mobile_sdk/android/android_sdk/Demo/allpaysdk/libs/peb-lib.aar


+ 0 - 40
mobile_sdk/android/android_sdk/Demo/allpaysdk/proguard-rules.pro

@@ -1,40 +0,0 @@
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in /Users/bensonzhang/Library/Android/sdk/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the proguardFiles
-# directive in build.gradle.
-#
-# For more details, see
-#   http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-#   public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
--keepclassmembers class * {
-    @android.webkit.JavascriptInterface <methods>;
-}
-
--keepattributes JavascriptInterface
--keepattributes *Annotation*
-
--dontwarn com.razorpay.**
--keep class com.razorpay.** {*;}
-
--optimizations !method/inlining/*
-
--keepclasseswithmembers class * {
-  public void onPayment*(...);
-}

+ 0 - 17
mobile_sdk/android/android_sdk/Demo/allpaysdk/src/main/AndroidManifest.xml

@@ -1,17 +0,0 @@
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-
-    package="com.allpayx.sdk">
-    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
-    <application android:allowBackup="true" android:label="@string/app_name"
-        android:supportsRtl="true">
-
-        <activity
-            android:name="com.allpayx.sdk.activity.AllPayActivity"
-            android:excludeFromRecents="true"
-            android:screenOrientation="portrait"
-            android:theme="@android:style/Theme.Translucent.NoTitleBar" />
-
-
-    </application>
-
-</manifest>

+ 0 - 3
mobile_sdk/android/android_sdk/Demo/allpaysdk/src/main/res/values/strings.xml

@@ -1,3 +0,0 @@
-<resources>
-    <string name="app_name">AllPaySDK</string>
-</resources>

+ 0 - 1
mobile_sdk/android/android_sdk/Demo/app/.gitignore

@@ -1 +0,0 @@
-/build

+ 0 - 38
mobile_sdk/android/android_sdk/Demo/app/build.gradle

@@ -1,38 +0,0 @@
-apply plugin: 'com.android.application'
-
-android {
-    compileSdkVersion 25
-    buildToolsVersion "26.0.0"
-    defaultConfig {
-        applicationId "com.vtpayment.plugin"
-        minSdkVersion 15
-        targetSdkVersion 25
-        versionCode 1
-        versionName "1.0"
-        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
-    }
-    buildTypes {
-        release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
-        }
-    }
-}
-
-dependencies {
-    compile fileTree(include: ['*.jar'], dir: 'libs')
-    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
-        exclude group: 'com.android.support', module: 'support-annotations'
-    })
-    compile 'com.android.support:appcompat-v7:25.3.1'
-    compile 'com.android.support.constraint:constraint-layout:1.0.0-beta1'
-    testCompile 'junit:junit:4.12'
-    compile project(':allpaysdk')
-}
-
-
-repositories {
-    flatDir {
-        dirs project(':allpaysdk').file('libs')
-    }
-}

+ 0 - 25
mobile_sdk/android/android_sdk/Demo/app/proguard-rules.pro

@@ -1,25 +0,0 @@
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in /Users/bensonzhang/Library/Android/sdk/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the proguardFiles
-# directive in build.gradle.
-#
-# For more details, see
-#   http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-#   public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile

+ 0 - 26
mobile_sdk/android/android_sdk/Demo/app/src/androidTest/java/com/vtpayment/plugin/ExampleInstrumentedTest.java

@@ -1,26 +0,0 @@
-package com.vtpayment.plugin;
-
-import android.content.Context;
-import android.support.test.InstrumentationRegistry;
-import android.support.test.runner.AndroidJUnit4;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import static org.junit.Assert.*;
-
-/**
- * Instrumentation test, which will execute on an Android device.
- *
- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
- */
-@RunWith(AndroidJUnit4.class)
-public class ExampleInstrumentedTest {
-    @Test
-    public void useAppContext() throws Exception {
-        // Context of the app under test.
-        Context appContext = InstrumentationRegistry.getTargetContext();
-
-        assertEquals("com.vtpayment.plugin", appContext.getPackageName());
-    }
-}

+ 0 - 31
mobile_sdk/android/android_sdk/Demo/app/src/main/AndroidManifest.xml

@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.vtpayment.plugin">
-    <uses-permission android:name="android.permission.INTERNET" />
-    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
-    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
-
-    <application
-        android:allowBackup="true"
-        android:icon="@mipmap/ic_launcher"
-        android:label="@string/app_name"
-        android:roundIcon="@mipmap/ic_launcher_round"
-        android:supportsRtl="true"
-        android:theme="@style/AppTheme">
-
-
-        <activity android:name=".MainActivity"
-            android:theme="@style/Theme.AppCompat.Light.NoActionBar"
-            >
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-
-                <category android:name="android.intent.category.LAUNCHER" />
-            </intent-filter>
-        </activity>
-
-
-
-    </application>
-
-</manifest>

+ 0 - 205
mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/MainActivity.java

@@ -1,205 +0,0 @@
-package com.vtpayment.plugin;
-
-import android.app.ProgressDialog;
-import android.content.Intent;
-import android.support.v7.app.AppCompatActivity;
-import android.os.Bundle;
-import android.util.Log;
-import android.view.View;
-import android.widget.ArrayAdapter;
-import android.widget.EditText;
-import android.widget.Spinner;
-import android.widget.Toast;
-
-import com.allpayx.sdk.AllPayEngine;
-import com.allpayx.sdk.constants.AllPayConst;
-import com.allpayx.sdk.util.HttpUtil;
-
-import com.vtpayment.plugin.util.JsonUtil;
-import com.vtpayment.plugin.util.PayUtil;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
-
-
-public class MainActivity extends AppCompatActivity {
-
-    private static final String[] currency = {"INR", "HKD", "CNY", "JPY", "EUR", "USD"};
-    private static String payType[];
-    private static final String[] paymentSchemas = {"EB"};
-
-    private ProgressDialog progressDialog;
-    Map<String,String> params = new HashMap<String,String>();
-    private EditText mAmoutEidt;
-    private EditText mOrderNumEidt;
-    private EditText mMerID;
-    private Spinner mPaymentSchemaSpinner;
-    private Spinner mCurrencySpinner;
-
-    @Override
-    protected void onCreate(Bundle savedInstanceState) {
-        super.onCreate(savedInstanceState);
-        setContentView(R.layout.activity_main);
-        payType = new String[1];
-        payType[0] = getResources().getString(R.string.pay_type_eb);
-
-        // 通用参数
-
-        params.put("version", "VER000000002");
-        params.put("charSet","UTF-8");
-        params.put("transType", "PURC");
-        params.put("orderNum", getOrderNum());
-        params.put("orderAmount", "1.00");
-        params.put("orderCurrency", "CNY");
-        params.put("frontURL", "nil");
-        params.put("merReserve", "");
-        params.put("acqID", "99020344");
-        params.put("backURL", "https://www.baidu.com");
-        params.put("merID", "000000000000015");
-        params.put("paymentSchema", "EB");
-        params.put("goodsInfo", "iPhone x");
-        params.put("transTime", getTransTime());
-        params.put("signType", "MD5");
-
-        initLayout();
-        initListener();
-        update();
-
-    }
-
-    private void initLayout() {
-        mAmoutEidt = (EditText) findViewById(R.id.edit_amount);
-        mOrderNumEidt = (EditText) findViewById(R.id.edit_ordernum);
-        mMerID = (EditText) findViewById(R.id.edit_merid);
-        ArrayAdapter<String> currencyArrayAdapter = new ArrayAdapter<String>(
-                this, android.R.layout.simple_spinner_item, currency);
-        currencyArrayAdapter
-                .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
-
-        mCurrencySpinner = (Spinner) findViewById(R.id.spinner_currency);
-        mCurrencySpinner.setAdapter(currencyArrayAdapter);
-
-        ArrayAdapter<String> paymentSchemaArrayAdapter = new ArrayAdapter<String>(
-                this, android.R.layout.simple_spinner_item, payType);
-        paymentSchemaArrayAdapter
-                .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
-
-        mPaymentSchemaSpinner = (Spinner) findViewById(R.id.spinner_paymentschema);
-        mPaymentSchemaSpinner.setAdapter(paymentSchemaArrayAdapter);
-
-    }
-
-    private void initListener() {
-        findViewById(R.id.submit).setOnClickListener(new View.OnClickListener() {
-
-            @Override
-            public void onClick(View v) {
-                params.put("orderAmount",mAmoutEidt.getText().toString());
-                params.put("orderCurrency",mCurrencySpinner.getSelectedItem().toString());
-                String paymentSchema = paymentSchemas[mPaymentSchemaSpinner.getSelectedItemPosition()];
-                params.put("paymentSchema",paymentSchema);
-
-                switch(paymentSchema){
-                    case "EB":{
-                        //加入EB渠道专用参数
-                        params.put("trxn_firstname","benson zhang");
-                        params.put("trxn_email_id","benson.zhang@allpayx.com");
-                        params.put("trxn_phone","15026528888");
-                        params.put("trxn_is_coupon_enabled","1");
-                        params.put("unique_id","abcde12345");//不能大于10位
-
-                    }
-                    break;
-                }
-
-
-
-
-                pay(params);
-            }
-        });
-    }
-
-    private void update() {
-        params.put("orderNum", getOrderNum());
-        mMerID.setText(params.get("merID"));
-        mOrderNumEidt.setText(params.get("orderNum"));
-        mAmoutEidt.setText(params.get("orderAmount"));
-    }
-
-
-    private void pay(final Map<String,String> params) {
-        progressDialog = ProgressDialog.show(this, "", "模拟网关获取tn...");
-
-        new Thread(new Runnable() {
-            @Override
-            public void run() {
-                params.remove("signature");
-                params.put("signature", PayUtil.getSign(params,"2f2c77e3718c47cfb47a89a6fbc9d361","MD5"));
-
-
-                //String result = HttpUtil.reqStr("http://172.30.1.103:8080/app/pay", params, HttpUtil.METHOD_POST); //本地
-               // String result = HttpUtil.reqStr("https://api.allpayx.com/app/pay", params, HttpUtil.METHOD_POST); //生产
-                String result = HttpUtil.reqStr("https://testapi.allpayx.com/app/pay", params, HttpUtil.METHOD_POST);//测试
-                progressDialog.dismiss();
-                Log.i("opp", "result=" + result);
-                String code = JsonUtil.getParam(result, "code");
-                if (code.equals("00")) {
-                    String tn = JsonUtil.getParam(result, "tn");
-                    Log.i("opp", "tn=" + tn);
-                    AllPayEngine.pay(MainActivity.this, tn, false);
-                } else {
-                   final String msg = JsonUtil.getParam(result, "msg");
-                    runOnUiThread(new Runnable() {
-                        public void run() {
-                            Toast toast = Toast.makeText(
-                                    getApplicationContext(), "获取tn失败:"+msg,
-                                    Toast.LENGTH_SHORT);
-                            toast.show();
-
-                        }
-                    });
-                }
-            }
-        }).start();
-
-    }
-
-
-    private String getOrderNum() {
-        Date now = new Date();
-        SimpleDateFormat spf = new SimpleDateFormat("yyyyMMddHHmmss");
-        return "ap" + spf.format(now).substring(1);
-    }
-
-
-    private String getTransTime() {
-        Date now = new Date();
-        SimpleDateFormat spf = new SimpleDateFormat("yyyyMMddHHmmss");
-        return spf.format(now);
-    }
-
-    @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) {
-
-            update();
-            String result = data.getExtras().getString("pay_result");
-            Toast toast = Toast.makeText(getApplicationContext(), result,
-                    Toast.LENGTH_SHORT);
-            toast.show();
-
-        }
-
-    }
-
-
-}

File diff suppressed because it is too large
+ 0 - 1921
mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/Base64.java


+ 0 - 53
mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/EncoderUtil.java

@@ -1,53 +0,0 @@
-package com.vtpayment.plugin.util;
-
-import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
-
-public class EncoderUtil {
-	public static String Encrypt(String strSrc,String encName) {
-		//parameter strSrc is a string will be encrypted,
-		//parameter encName is the algorithm name will be used.
-		//encName dafault to "MD5"
-		MessageDigest md=null;
-		String strDes=null;
-
-		byte[] bt=strSrc.getBytes();
-		try {
-		if (encName==null||encName.equals("")) {
-		encName="MD5";
-		}
-		md=MessageDigest.getInstance(encName);
-		md.update(bt);
-		strDes=bytes2Hex(md.digest()); //to HexString
-		}
-		catch (NoSuchAlgorithmException e) {
-		System.out.println("Invalid algorithm.");
-		return null;
-		}
-		return strDes;
-		}
-
-		private static String bytes2Hex(byte[]bts) {
-		String des="";
-		String tmp=null;
-		for (int i=0;i<bts.length;i++) {
-		tmp=(Integer.toHexString(bts[i] & 0xFF));
-		if (tmp.length()==1) {
-		des+="0";
-		}
-		des+=tmp;
-		}
-		return des;
-		}
-
-//		public static void main(String[]args) {
-//		TestEncrypt te=new TestEncrypt();
-//		String strSrc="可以加密汉字.Oh,and english";
-//		System.out.println("Source String:"+strSrc);
-//		System.out.println("Encrypted String:");
-//		System.out.println("Use Def:"+te.Encrypt(strSrc,null));
-//		System.out.println("Use MD5:"+te.Encrypt(strSrc,"MD5"));
-//		System.out.println("Use SHA:"+te.Encrypt(strSrc,"SHA-1"));
-//		System.out.println("Use SHA-256:"+te.Encrypt(strSrc,"SHA-256"));
-//		}
-}

+ 0 - 22
mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/JsonUtil.java

@@ -1,22 +0,0 @@
-package com.vtpayment.plugin.util;
-
-import org.json.JSONException;
-import org.json.JSONObject;
-
-
-public class JsonUtil {
-public static String getParam(String jsonString,String key){
-	String value="";
-	JSONObject jsonObject=null;
-	try {
-		jsonObject = new JSONObject(jsonString);
-	} catch (JSONException e) {
-		// TODO Auto-generated catch block
-		e.printStackTrace();
-	}
-	if(jsonObject!=null){
-		value=jsonObject.optString(key);
-	}
-	return value;
-}
-}

+ 0 - 30
mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/PayOrder.java

@@ -1,30 +0,0 @@
-package com.vtpayment.plugin.util;
-
-import java.io.Serializable;
-
-public class PayOrder implements Serializable {
-	/**
-	 * 
-	 */
-	private static final long serialVersionUID = 1L;
-	public String orderNum;
-	public String orderAmount;
-	public String orderCurrency;
-	public String backURL;
-	public String merID;
-	public String secretKey;
-	public String  paymentSchema;
-	public String  version;
-	public String charSet;
-	public String transType;
-	public String frontURL;
-	public String merReserve;
-	public String acqID;
-	public String transTime;
-	public String OrderDesc;
-	public String signType;
-	public String signature;
-	public String language;
-	public String customerId;
-	
-}

+ 0 - 64
mobile_sdk/android/android_sdk/Demo/app/src/main/java/com/vtpayment/plugin/util/PayUtil.java

@@ -1,64 +0,0 @@
-package com.vtpayment.plugin.util;
-
-import android.util.Log;
-
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.TreeMap;
-
-/**
- * Created by bensonzhang on 2017/12/12.
- */
-
-public class PayUtil {
-
-
-
-    public static String getSign(Map<String,String> params,String key,String signType) {
-        Map<String, String> resultMap = sortMapByKey(params);  //按Key进行排序
-        StringBuilder sb = new StringBuilder();
-        for (Map.Entry<String, String> entry : resultMap.entrySet()) {
-            sb.append(entry.getKey());
-            sb.append('=');
-            sb.append(entry.getValue());
-            sb.append('&');
-        }
-        sb.deleteCharAt(sb.lastIndexOf("&"));
-        sb.append(key);
-        Log.i("opp",sb.toString());
-        String sign =EncoderUtil.Encrypt(sb.toString(), signType) ;
-        Log.i("opp",sign);
-        return sign;
-    }
-
-    /**
-     * 使用 Map按key进行排序
-     * @param map
-     * @return
-     */
-    public static Map<String, String> sortMapByKey(Map<String, String> map) {
-        if (map == null || map.isEmpty()) {
-            return null;
-        }
-
-        Map<String, String> sortMap = new TreeMap<>(
-                new MapKeyComparator());
-
-        sortMap.putAll(map);
-
-        return sortMap;
-    }
-
-
-  static   class MapKeyComparator implements Comparator<String> {
-
-        @Override
-        public int compare(String str1, String str2) {
-
-            return str1.compareTo(str2);
-        }
-    }
-
-
-}

+ 0 - 18
mobile_sdk/android/android_sdk/Demo/app/src/main/res/drawable/buy_button_bg.xml

@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
-  <item android:state_pressed="false"  > 
-    <shape>
-        <stroke android:width="2px" android:color="#DDA755" /><!--边框颜色-->
-        <solid android:color="#DDA755" /><!--填充色-->
-        <corners android:radius="4dp" />
-    </shape>
-  </item>
-  
-    <item  android:state_pressed="true" > 
-    <shape>
-        <stroke android:width="2px" android:color="#BB8533" /><!--边框颜色-->
-        <solid android:color="#BB8533" /><!--填充色-->
-        <corners android:radius="4dp" />
-    </shape>
-  </item>
-</selector>

+ 0 - 243
mobile_sdk/android/android_sdk/Demo/app/src/main/res/layout/activity_main.xml

@@ -1,243 +0,0 @@
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:tools="http://schemas.android.com/tools"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:orientation="vertical"
-    tools:context="com.vtpayment.plugin.MainActivity" >
-
-    <RelativeLayout
-        android:layout_width="match_parent"
-        android:layout_height="60dp"
-        android:background="#DDA755" >
-
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="AllPay演示Demo"
-            android:layout_centerInParent="true"
-            android:textStyle="bold"
-            android:textColor="#ffffff"
-            />
-    </RelativeLayout>
-
-    <RelativeLayout
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="30dp"
-        >
-
-
-
-        <TextView
-            android:id="@+id/text_merid"
-            android:layout_width="80dp"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="30dp"
-            android:text="商户号:"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#000000"
-            android:layout_centerVertical="true"
-            />
-
-
-        <EditText
-            android:id="@+id/edit_merid"
-            android:layout_width="180dp"
-            android:layout_height="40dp"
-            android:layout_marginLeft="20dp"
-            android:layout_toRightOf="@id/text_merid"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#888888"
-            android:inputType="numberDecimal"
-            android:enabled="false"
-            android:focusable="false"
-            android:layout_centerVertical="true"
-            />
-    </RelativeLayout>
-
-
-    <RelativeLayout
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="10dp"
-        >
-
-
-
-        <TextView
-            android:id="@+id/text_ordernum"
-            android:layout_width="80dp"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="30dp"
-            android:text="订单号:"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#000000"
-            android:layout_centerVertical="true"
-            />
-
-
-        <EditText
-            android:id="@+id/edit_ordernum"
-            android:layout_width="180dp"
-            android:layout_height="40dp"
-            android:layout_marginLeft="20dp"
-            android:layout_toRightOf="@id/text_ordernum"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#888888"
-            android:inputType="numberDecimal"
-            android:enabled="false"
-            android:focusable="false"
-            android:layout_centerVertical="true"
-            />
-    </RelativeLayout>
-
-
-    <RelativeLayout
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="10dp"
-        >
-
-        <TextView
-            android:id="@+id/text_amount"
-            android:layout_width="80dp"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="30dp"
-            android:text="订单金额:"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#000000"
-            android:layout_centerVertical="true"
-            />
-
-
-        <EditText
-            android:id="@+id/edit_amount"
-            android:layout_width="180dp"
-            android:layout_height="40dp"
-            android:layout_marginLeft="20dp"
-            android:layout_toRightOf="@id/text_amount"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#000000"
-            android:inputType="numberDecimal"
-            android:layout_centerVertical="true"
-            />
-    </RelativeLayout>
-
-
-    <RelativeLayout
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="10dp"
-        >
-
-        <TextView
-            android:id="@+id/text_currency"
-            android:layout_width="80dp"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="30dp"
-            android:text="币种:"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#000000"
-            android:layout_centerVertical="true"
-            />
-
-
-        <Spinner android:id="@+id/spinner_currency"
-            android:layout_width="180dp"
-            android:layout_height="35dp"
-            android:layout_toRightOf="@id/text_currency"
-            android:layout_marginLeft="20dp"
-            android:paddingLeft="5dp"
-            android:background="#ffffff"
-            >
-
-        </Spinner>
-    </RelativeLayout>
-
-
-    <RelativeLayout
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="10dp"
-        >
-
-        <TextView
-            android:id="@+id/text_paymentschema"
-            android:layout_width="80dp"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="30dp"
-            android:text="支付渠道:"
-            android:textSize="15sp"
-            android:textStyle="bold"
-            android:textColor="#000000"
-            android:layout_centerVertical="true"
-            />
-
-
-        <Spinner android:id="@+id/spinner_paymentschema"
-            android:layout_width="180dp"
-            android:layout_height="35dp"
-            android:layout_toRightOf="@id/text_paymentschema"
-            android:layout_marginLeft="20dp"
-            android:paddingLeft="5dp"
-            android:background="#ffffff"
-            >
-
-        </Spinner>
-    </RelativeLayout>
-
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:layout_marginTop="100dp"
-        android:orientation="vertical"
-        android:gravity="center_horizontal"
-        >
-
-        <Button
-            android:id="@+id/submit"
-            android:layout_width="200dp"
-            android:layout_height="50dp"
-            android:layout_margin="10dp"
-            android:text="提交订单"
-            android:background="@drawable/buy_button_bg"
-
-            />
-
-        <Button
-            android:id="@+id/union_pay"
-            android:layout_width="100dp"
-            android:layout_height="wrap_content"
-            android:layout_margin="10dp"
-            android:text="UnionPay"
-            android:visibility="gone"
-            />
-
-        <Button
-            android:id="@+id/ali_pay"
-            android:layout_width="100dp"
-            android:layout_height="wrap_content"
-            android:layout_margin="10dp"
-            android:text="AliPay"
-            android:visibility="gone"
-            />
-
-        <Button
-            android:id="@+id/wx_pay"
-            android:layout_width="100dp"
-            android:layout_height="wrap_content"
-            android:layout_margin="10dp"
-            android:text="WeChat Pay"
-            android:visibility="gone"
-            />
-
-    </LinearLayout>
-
-</LinearLayout>

BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-hdpi/ic_launcher.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-mdpi/ic_launcher.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xhdpi/ic_launcher.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


BIN
mobile_sdk/android/android_sdk/Demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png


+ 0 - 6
mobile_sdk/android/android_sdk/Demo/app/src/main/res/values/colors.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <color name="colorPrimary">#3F51B5</color>
-    <color name="colorPrimaryDark">#303F9F</color>
-    <color name="colorAccent">#FF4081</color>
-</resources>

+ 0 - 13
mobile_sdk/android/android_sdk/Demo/app/src/main/res/values/strings.xml

@@ -1,13 +0,0 @@
-<resources>
-    <string name="app_name">Demo</string>
-    <string name="hello_world">Hello world!</string>
-    <string name="action_settings">Settings</string>
-    <string name="pay_type_yl">银联(易联)</string>
-    <string name="pay_type_apmp">支付宝</string>
-    <string name="pay_type_wx">微信</string>
-    <string name="pay_type_upacp">银联(境内)</string>
-    <string name="pay_type_up">银联(境外)</string>
-    <string name="pay_type_mup">银联信用卡</string>
-    <string name="pay_type_dp">国际卡</string>
-    <string name="pay_type_eb">Easebuzz</string>
-</resources>

+ 0 - 11
mobile_sdk/android/android_sdk/Demo/app/src/main/res/values/styles.xml

@@ -1,11 +0,0 @@
-<resources>
-
-    <!-- Base application theme. -->
-    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
-        <!-- Customize your theme here. -->
-        <item name="colorPrimary">@color/colorPrimary</item>
-        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
-        <item name="colorAccent">@color/colorAccent</item>
-    </style>
-
-</resources>

+ 0 - 17
mobile_sdk/android/android_sdk/Demo/app/src/test/java/com/vtpayment/plugin/ExampleUnitTest.java

@@ -1,17 +0,0 @@
-package com.vtpayment.plugin;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
- */
-public class ExampleUnitTest {
-    @Test
-    public void addition_isCorrect() throws Exception {
-        assertEquals(4, 2 + 2);
-    }
-}

+ 0 - 24
mobile_sdk/android/android_sdk/Demo/build.gradle

@@ -1,24 +0,0 @@
-// Top-level build file where you can add configuration options common to all sub-projects/modules.
-
-buildscript {
-    repositories {
-        jcenter()
-    }
-    dependencies {
-        classpath 'com.android.tools.build:gradle:2.3.3'
-
-        // NOTE: Do not place your application dependencies here; they belong
-        // in the individual module build.gradle files
-    }
-}
-
-allprojects {
-    repositories {
-        jcenter()
-
-    }
-}
-
-task clean(type: Delete) {
-    delete rootProject.buildDir
-}

+ 0 - 17
mobile_sdk/android/android_sdk/Demo/gradle.properties

@@ -1,17 +0,0 @@
-# Project-wide Gradle settings.
-
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-
-# Specifies the JVM arguments used for the daemon process.
-# The setting is particularly useful for tweaking memory settings.
-org.gradle.jvmargs=-Xmx1536m
-
-# When configured, Gradle will run in incubating parallel mode.
-# This option should only be used with decoupled projects. More details, visit
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
-# org.gradle.parallel=true

BIN
mobile_sdk/android/android_sdk/Demo/gradle/wrapper/gradle-wrapper.jar


+ 0 - 6
mobile_sdk/android/android_sdk/Demo/gradle/wrapper/gradle-wrapper.properties

@@ -1,6 +0,0 @@
-#Tue Dec 12 16:12:26 CST 2017
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

+ 0 - 160
mobile_sdk/android/android_sdk/Demo/gradlew

@@ -1,160 +0,0 @@
-#!/usr/bin/env bash
-
-##############################################################################
-##
-##  Gradle start up script for UN*X
-##
-##############################################################################
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn ( ) {
-    echo "$*"
-}
-
-die ( ) {
-    echo
-    echo "$*"
-    echo
-    exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-case "`uname`" in
-  CYGWIN* )
-    cygwin=true
-    ;;
-  Darwin* )
-    darwin=true
-    ;;
-  MINGW* )
-    msys=true
-    ;;
-esac
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-        PRG="$link"
-    else
-        PRG=`dirname "$PRG"`"/$link"
-    fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
-        # IBM's JDK on AIX uses strange locations for the executables
-        JAVACMD="$JAVA_HOME/jre/sh/java"
-    else
-        JAVACMD="$JAVA_HOME/bin/java"
-    fi
-    if [ ! -x "$JAVACMD" ] ; then
-        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-    fi
-else
-    JAVACMD="java"
-    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
-    MAX_FD_LIMIT=`ulimit -H -n`
-    if [ $? -eq 0 ] ; then
-        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
-            MAX_FD="$MAX_FD_LIMIT"
-        fi
-        ulimit -n $MAX_FD
-        if [ $? -ne 0 ] ; then
-            warn "Could not set maximum file descriptor limit: $MAX_FD"
-        fi
-    else
-        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
-    fi
-fi
-
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
-    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
-    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
-    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
-    JAVACMD=`cygpath --unix "$JAVACMD"`
-
-    # We build the pattern for arguments to be converted via cygpath
-    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
-    SEP=""
-    for dir in $ROOTDIRSRAW ; do
-        ROOTDIRS="$ROOTDIRS$SEP$dir"
-        SEP="|"
-    done
-    OURCYGPATTERN="(^($ROOTDIRS))"
-    # Add a user-defined pattern to the cygpath arguments
-    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
-        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
-    fi
-    # Now convert the arguments - kludge to limit ourselves to /bin/sh
-    i=0
-    for arg in "$@" ; do
-        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
-        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
-
-        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
-            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
-        else
-            eval `echo args$i`="\"$arg\""
-        fi
-        i=$((i+1))
-    done
-    case $i in
-        (0) set -- ;;
-        (1) set -- "$args0" ;;
-        (2) set -- "$args0" "$args1" ;;
-        (3) set -- "$args0" "$args1" "$args2" ;;
-        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
-        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
-        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
-        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
-        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
-        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
-    esac
-fi
-
-# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
-function splitJvmOpts() {
-    JVM_OPTS=("$@")
-}
-eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
-JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
-
-exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

+ 0 - 90
mobile_sdk/android/android_sdk/Demo/gradlew.bat

@@ -1,90 +0,0 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem  Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windowz variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-if "%@eval[2+2]" == "4" goto 4NT_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-goto execute
-
-:4NT_args
-@rem Get arguments from the 4NT Shell from JP Software
-set CMD_LINE_ARGS=%$
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega

+ 0 - 1
mobile_sdk/android/android_sdk/Demo/settings.gradle

@@ -1 +0,0 @@
-include ':app', ':allpaysdk'

+ 0 - 1
mobile_sdk/android/android_sdk/allpaysdk/.gitignore

@@ -1 +0,0 @@
-/build

+ 0 - 142
mobile_sdk/android/android_sdk/allpaysdk/allpaysdk.iml

@@ -1,142 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module external.linked.project.id=":allpaysdk" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
-  <component name="FacetManager">
-    <facet type="android-gradle" name="Android-Gradle">
-      <configuration>
-        <option name="GRADLE_PROJECT_PATH" value=":allpaysdk" />
-      </configuration>
-    </facet>
-    <facet type="android" name="Android">
-      <configuration>
-        <option name="SELECTED_BUILD_VARIANT" value="debug" />
-        <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
-        <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
-        <afterSyncTasks>
-          <task>generateDebugSources</task>
-        </afterSyncTasks>
-        <option name="ALLOW_USER_CONFIGURATION" value="false" />
-        <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
-        <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
-        <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
-        <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
-        <option name="PROJECT_TYPE" value="1" />
-      </configuration>
-    </facet>
-  </component>
-  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
-    <output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
-    <output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" />
-    <exclude-output />
-    <content url="file://$MODULE_DIR$">
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/debug" isTestSource="false" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/androidTest/debug" isTestSource="true" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
-      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
-      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/multi-dex" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
-      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
-      <excludeFolder url="file://$MODULE_DIR$/build/outputs" />
-      <excludeFolder url="file://$MODULE_DIR$/build/tmp" />
-    </content>
-    <orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
-    <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="library" exported="" name="AllPaySDK" level="project" />
-    <orderEntry type="library" exported="" name="play-services-auth-8.3.0" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="runner-0.5" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="espresso-idling-resource-2.2.2" level="project" />
-    <orderEntry type="library" exported="" name="picasso-2.4.0" level="project" />
-    <orderEntry type="library" exported="" name="peb-lib-" level="project" />
-    <orderEntry type="library" exported="" name="play-services-base-8.3.0" level="project" />
-    <orderEntry type="library" exported="" name="okhttp-2.4.0" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="hamcrest-library-1.3" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="hamcrest-integration-1.3" level="project" />
-    <orderEntry type="library" exported="" name="support-core-ui-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="cardview-v7-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="glide-3.5.2" level="project" />
-    <orderEntry type="library" exported="" name="support-core-utils-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="support-fragment-25.3.1" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="jsr305-2.0.1" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="multidex-instrumentation-1.0.1" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="espresso-core-2.2.2" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="exposed-instrumentation-api-publish-0.5" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="rules-0.5" level="project" />
-    <orderEntry type="library" exported="" name="okio-1.13.0" level="project" />
-    <orderEntry type="library" exported="" name="retrofit-2.3.0" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="javax.annotation-api-1.2" level="project" />
-    <orderEntry type="library" exported="" name="converter-gson-2.3.0" level="project" />
-    <orderEntry type="library" exported="" name="gson-2.7" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="javax.inject-1" level="project" />
-    <orderEntry type="library" exported="" name="okhttp-3.8.0" level="project" />
-    <orderEntry type="library" exported="" name="play-services-basement-8.3.0" level="project" />
-    <orderEntry type="library" exported="" name="multidex-1.0.1" level="project" />
-    <orderEntry type="library" exported="" name="support-v4-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="support-media-compat-25.3.1" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="javawriter-2.1.1" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="hamcrest-core-1.3" level="project" />
-    <orderEntry type="library" exported="" scope="TEST" name="junit-4.12" level="project" />
-    <orderEntry type="library" exported="" name="recyclerview-v7-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="support-annotations-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="appcompat-v7-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="support-vector-drawable-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="okhttp-urlconnection-2.2.0" level="project" />
-    <orderEntry type="library" exported="" name="support-compat-25.3.1" level="project" />
-    <orderEntry type="library" exported="" name="animated-vector-drawable-25.3.1" level="project" />
-  </component>
-</module>

+ 0 - 67
mobile_sdk/android/android_sdk/allpaysdk/build.gradle

@@ -1,67 +0,0 @@
-apply plugin: 'com.android.library'
-
-android {
-    compileSdkVersion 25
-    buildToolsVersion "26.0.0"
-
-    defaultConfig {
-        minSdkVersion 15
-        targetSdkVersion 25
-        versionCode 1
-        versionName "1.0"
-        multiDexEnabled true
-        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
-
-    }
-    buildTypes {
-        release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
-        }
-    }
-
-    packagingOptions {
-        //打包时的相关配置
-        exclude 'META-INF/DEPENDENCIES'
-        exclude 'META-INF/NOTICE'
-        exclude 'META-INF/LICENSE'
-        exclude 'META-INF/LICENSE.txt'
-        exclude 'META-INF/NOTICE.txt'
-    }
-
-    dexOptions {
-        javaMaxHeapSize "4g"
-    }
-
-
-    }
-
-repositories {
-    mavenCentral()
-    flatDir {
-        dirs 'libs'
-    }
-}
-
-dependencies {
-    compile fileTree(dir: 'libs', include: ['*.jar'])
-    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
-        exclude group: 'com.android.support', module: 'support-annotations'
-    })
-    compile 'com.android.support:appcompat-v7:25.3.1'
-    testCompile 'junit:junit:4.12'
-
-    compile(name: 'peb-lib', ext: 'aar')
-    compile 'com.android.support:cardview-v7:25.3.1'
-    compile 'com.android.support:recyclerview-v7:25.3.1'
-    compile 'com.squareup.picasso:picasso:2.4.0'
-    compile 'com.squareup.okhttp:okhttp:2.4.0'
-    compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
-    compile 'com.github.bumptech.glide:glide:3.5.2'
-    compile 'com.squareup.retrofit2:retrofit:2.3.0'
-    compile 'com.squareup.retrofit2:converter-gson:2.3.0'
-    compile 'com.google.android.gms:play-services-auth:8.3.0'
-    compile files('libs/AllPaySDK.jar')
-
-
-}

BIN
mobile_sdk/android/android_sdk/allpaysdk/libs/AllPaySDK.jar


BIN
mobile_sdk/android/android_sdk/allpaysdk/libs/peb-lib.aar


+ 0 - 40
mobile_sdk/android/android_sdk/allpaysdk/proguard-rules.pro

@@ -1,40 +0,0 @@
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in /Users/bensonzhang/Library/Android/sdk/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the proguardFiles
-# directive in build.gradle.
-#
-# For more details, see
-#   http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-#   public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
--keepclassmembers class * {
-    @android.webkit.JavascriptInterface <methods>;
-}
-
--keepattributes JavascriptInterface
--keepattributes *Annotation*
-
--dontwarn com.razorpay.**
--keep class com.razorpay.** {*;}
-
--optimizations !method/inlining/*
-
--keepclasseswithmembers class * {
-  public void onPayment*(...);
-}

+ 0 - 17
mobile_sdk/android/android_sdk/allpaysdk/src/main/AndroidManifest.xml

@@ -1,17 +0,0 @@
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-
-    package="com.allpayx.sdk">
-    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
-    <application android:allowBackup="true" android:label="@string/app_name"
-        android:supportsRtl="true">
-
-        <activity
-            android:name="com.allpayx.sdk.activity.AllPayActivity"
-            android:excludeFromRecents="true"
-            android:screenOrientation="portrait"
-            android:theme="@android:style/Theme.Translucent.NoTitleBar" />
-
-
-    </application>
-
-</manifest>

+ 0 - 3
mobile_sdk/android/android_sdk/allpaysdk/src/main/res/values/strings.xml

@@ -1,3 +0,0 @@
-<resources>
-    <string name="app_name">AllPaySDK</string>
-</resources>

+ 0 - 2
mobile_sdk/iOS/README.md

@@ -1,2 +0,0 @@
-# iOS
-