flutter版支付宝登录/支付
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
example
ios
lib
.gitattributes
.gitignore
CHANGELOG.md 支付宝 Android Oct 25, 2018
LICENSE
README.md
fake_alipay.iml
fake_alipay_android.iml
pubspec.yaml

README.md

fake_alipay

flutter版支付宝SDK

Fake 系列 Library

  1. flutter版okhttp3
  2. flutter版微信SDK
  3. flutter版腾讯(QQ)SDK
  4. flutter版新浪微博SDK
  5. flutter版支付宝SDK
  6. flutter版百度移动统计SDK
  7. flutter版百度移动推送SDK

android

# 支付宝混淆
-keep class com.alipay.android.app.IAlixPay{*;}
-keep class com.alipay.android.app.IAlixPay$Stub{*;}
-keep class com.alipay.android.app.IRemoteServiceCallback{*;}
-keep class com.alipay.android.app.IRemoteServiceCallback$Stub{*;}
-keep class com.alipay.sdk.app.PayTask{ public *;}
-keep class com.alipay.sdk.app.AuthTask{ public *;}
-keep class com.alipay.sdk.app.H5PayCallback {
    <fields>;
    <methods>;
}
-keep class com.alipay.android.phone.mrpc.core.** { *; }
-keep class com.alipay.apmobilesecuritysdk.** { *; }
-keep class com.alipay.mobile.framework.service.annotation.** { *; }
-keep class com.alipay.mobilesecuritysdk.face.** { *; }
-keep class com.alipay.tscenter.biz.rpc.** { *; }
-keep class org.json.alipay.** { *; }
-keep class com.alipay.tscenter.** { *; }
-keep class com.ta.utdid2.** { *;}
-keep class com.ut.device.** { *;}

ios

在Xcode中,选择你的工程设置项,选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id

URL Types
alipay: identifier=alipay schemes=${your app scheme name}
iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用的URL Schemes列为白名单,才可正常检查其他应用是否安装。

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>alipay</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

flutter

# pubspec.yml

dependencies:
  fake_alipay:
    git:
      url: https://github.com/v7lin/fake_alipay.git

示例

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.