Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/best-flutter/flutter_alipay
A flutter plugin to use alipay.
https://github.com/best-flutter/flutter_alipay
alipay alipay-sdk flutter flutter-plugin
Last synced: about 16 hours ago
JSON representation
A flutter plugin to use alipay.
- Host: GitHub
- URL: https://github.com/best-flutter/flutter_alipay
- Owner: best-flutter
- License: other
- Created: 2018-05-03T14:42:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T10:34:58.000Z (over 4 years ago)
- Last Synced: 2024-01-23T13:48:47.692Z (10 months ago)
- Topics: alipay, alipay-sdk, flutter, flutter-plugin
- Language: Dart
- Homepage:
- Size: 714 KB
- Stars: 138
- Watchers: 7
- Forks: 27
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_alipay
A flutter plugin to use alipay.因为项目很久了,所以之前的项目都推倒重新来了。
有任何问题,欢迎加入qq群854192563交流
## 功能列表
* 调用支付
## 安装
增加依赖 pubspec.yaml
```
dependencies:
flutter_alipay: "^1.0.0"
```## 开始
* ios集成
+ 在info.plist增加一条URL scheme
```
CFBundleURLTypes
CFBundleTypeRole
Editor
CFBundleURLSchemes
org.zoomdev.flutter.alipay
```
如果需要定制URL scheme可以这么做:+ 或者
```
CFBundleURLTypes
CFBundleTypeRole
Editor
CFBundleURLSchemes
__YOUR APP SCHEME NAME__
```然后在app中调用
```
await FlutterAlipay.setIosUrlSchema('YOUR APP SCHEME NAME');
```## 使用
```
import 'package:flutter_alipay/flutter_alipay.dart';
```* 调取支付
```
var result = await FlutterAlipay.pay("you pay info from server");
```