Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rxreader/alipay_kit
Flutter版支付宝登录/支付
https://github.com/rxreader/alipay_kit
alipay flutter login pay
Last synced: 5 days ago
JSON representation
Flutter版支付宝登录/支付
- Host: GitHub
- URL: https://github.com/rxreader/alipay_kit
- Owner: RxReader
- License: mit
- Created: 2018-12-24T09:38:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-16T09:15:12.000Z (over 1 year ago)
- Last Synced: 2024-12-30T02:13:03.946Z (5 days ago)
- Topics: alipay, flutter, login, pay
- Language: Dart
- Homepage:
- Size: 27.6 MB
- Stars: 325
- Watchers: 7
- Forks: 65
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alipay_kit
[![Pub Package](https://img.shields.io/pub/v/alipay_kit.svg)](https://pub.dev/packages/alipay_kit)
[![License](https://img.shields.io/github/license/RxReader/alipay_kit)](https://github.com/RxReader/alipay_kit/blob/master/LICENSE)Flutter 版支付宝SDK
## 相关工具
* [Flutter版微信SDK](https://github.com/RxReader/wechat_kit)
* [Flutter版腾讯(QQ)SDK](https://github.com/RxReader/tencent_kit)
* [Flutter版新浪微博SDK](https://github.com/RxReader/weibo_kit)
* [Flutter版支付宝SDK](https://github.com/RxReader/alipay_kit)
* [Flutter版深度链接](https://github.com/RxReader/link_kit)
* [Flutter版walle渠道打包工具](https://github.com/RxReader/walle_kit)## Dart/Flutter Pub 私服
* [simple_pub_server](https://github.com/RxReader/simple_pub_server)
## 相关文档
* [蚂蚁金服开放平台](https://openhome.alipay.com/platform/appManage.htm)
* [支付宝支付](https://docs.open.alipay.com/204/105051/)
* [支付宝登录](https://docs.open.alipay.com/218/105329/)
* [应用签名工具](https://opendocs.alipay.com/open/common/104062)## 开始使用
### Android
```
# 不需要做任何额外接入工作
# 混淆已打入 Library,随 Library 引用,自动添加到 apk 打包混淆
```* [获取 Android 签名信息](https://github.com/RxReader/wechat_kit#android)
* 新版已没有「~~UTDID冲突的问题~~」
### iOS
```
# 不需要做任何额外接入工作
# 配置已集成到脚本里
```* UTDID冲突的问题解决方案
```diff
alipay_kit:
+ ios: noutdid # 默认 utdid
```### Flutter
> [周期扣款](https://github.com/RxReader/alipay_kit/issues/55)
* 配置
```yaml
dependencies:
alipay_kit: ^${latestTag} # 默认不包含iOS支付
# alipay_kit_ios: ^${latestTag} # iOS支付alipay_kit:
# ios: noutdid # 默认 utdid
scheme: ${your alipay scheme} # scheme 不能为纯数字,推荐:alipay${appId}
```* 安装(仅iOS)
```shell
# step.1 安装必要依赖
sudo gem install plist
# step.2 切换工作目录,插件里为 example/ios/,普通项目为 ios/
cd example/ios/
# step.3 执行脚本
pod install
```## 示例
[示例](./example/lib/main.dart)
## Star History
![stars](https://starchart.cc/rxreader/alipay_kit.svg)