1 Star 0 Fork 0

JJ / bp_alipay

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
JJ 提交于 2021-03-15 11:35 . 3.5.4

bp_alipay

flutter版支付宝SDK

docs

android

buildscript {
    dependencies {
        // Android 11兼容,需升级Gradle到3.5.4/3.6.4/4.x.y
        // 建议使用3.5.4,4.x.y libs里aar不支持
        classpath 'com.android.tools.build:gradle:3.5.4'
    }
}
# 不需要做任何额外接入工作
# 混淆已打入 Library,随 Library 引用,自动添加到 apk 打包混淆

ios

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

URL Types
alipay: identifier=alipay schemes=${your app scheme name} # schemes 不能为纯数字,推荐:alipay${appId}
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

  • snapshot
dependencies:
  alipay_kit:
    git:
      url: https://gitee.com/fengxinsen/bp_alipay.git
  • release
dependencies:
  alipay_kit: ^${latestTag}

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

1
https://gitee.com/fengxinsen/bp_alipay.git
git@gitee.com:fengxinsen/bp_alipay.git
fengxinsen
bp_alipay
bp_alipay
master

搜索帮助