Last updated:
0 purchases
flutter alipay
flutter_alipay #
A flutter plugin to use alipay.
因为项目很久了,所以之前的项目都推倒重新来了。
有任何问题,欢迎加入qq群854192563交流
功能列表 #
调用支付
安装 #
增加依赖 pubspec.yaml
dependencies:
flutter_alipay: "^1.0.0"
copied to clipboard
开始 #
ios集成
在info.plist增加一条URL scheme
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>org.zoomdev.flutter.alipay</string>
</array>
</dict>
</array>
copied to clipboard
如果需要定制URL scheme可以这么做:
或者
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>__YOUR APP SCHEME NAME__</string>
</array>
</dict>
</array>
copied to clipboard
然后在app中调用
await FlutterAlipay.setIosUrlSchema('YOUR APP SCHEME NAME');
copied to clipboard
使用 #
import 'package:flutter_alipay/flutter_alipay.dart';
copied to clipboard
调取支付
var result = await FlutterAlipay.pay("you pay info from server");
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.