flutter_h5pay

所属分类:支付接口
开发工具:Dart
文件大小:0KB
下载次数:0
上传日期:2019-11-02 06:34:10
上 传 者sh-1993
说明:  微信和支付宝的h5pay插件,
(h5pay plugin for wechat and alipay,)

文件列表:
.idea/ (0, 2019-11-01)
.idea/codeStyles/ (0, 2019-11-01)
.idea/codeStyles/Project.xml (3309, 2019-11-01)
.idea/libraries/ (0, 2019-11-01)
.idea/libraries/Dart_Packages.xml (8045, 2019-11-01)
.idea/libraries/Dart_SDK.xml (1965, 2019-11-01)
.idea/libraries/Flutter_Plugins.xml (380, 2019-11-01)
.idea/libraries/Flutter_for_Android.xml (285, 2019-11-01)
.idea/misc.xml (163, 2019-11-01)
.idea/modules.xml (581, 2019-11-01)
.idea/runConfigurations/ (0, 2019-11-01)
.idea/runConfigurations/example_lib_main_dart.xml (315, 2019-11-01)
.idea/workspace.xml (28872, 2019-11-01)
.metadata (308, 2019-11-01)
CHANGELOG.md (65, 2019-11-01)
LICENSE (548, 2019-11-01)
example/ (0, 2019-11-01)
example/.metadata (305, 2019-11-01)
example/android/ (0, 2019-11-01)
example/android/app/ (0, 2019-11-01)
example/android/app/build.gradle (1877, 2019-11-01)
example/android/app/src/ (0, 2019-11-01)
example/android/app/src/debug/ (0, 2019-11-01)
example/android/app/src/debug/AndroidManifest.xml (336, 2019-11-01)
example/android/app/src/main/ (0, 2019-11-01)
example/android/app/src/main/AndroidManifest.xml (1822, 2019-11-01)
example/android/app/src/main/java/ (0, 2019-11-01)
example/android/app/src/main/java/com/ (0, 2019-11-01)
example/android/app/src/main/java/com/sh/ (0, 2019-11-01)
example/android/app/src/main/java/com/sh/flutter_h5pay_example/ (0, 2019-11-01)
example/android/app/src/main/java/com/sh/flutter_h5pay_example/MainActivity.java (373, 2019-11-01)
example/android/app/src/main/res/ (0, 2019-11-01)
example/android/app/src/main/res/drawable/ (0, 2019-11-01)
example/android/app/src/main/res/drawable/launch_background.xml (434, 2019-11-01)
example/android/app/src/main/res/mipmap-hdpi/ (0, 2019-11-01)
example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (544, 2019-11-01)
... ...

# Flutter H5Pay [![pub package](https://img.shields.io/pub/v/flutter_h5pay.svg)](https://pub.dartlang.org/packages/flutter_h5pay) ### A Flutter plugin for h5pay(Support WeChat and Alipay) ## Usage Add `flutter_h5pay` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). ``` dependencies: flutter_h5pay: ^0.1.0 ``` ``` import 'package:flutter_h5pay/h5pay.dart'; //wrap you widget with H5PayWidget //call the pay method to invoke the payment app H5PayWidget( refererScheme: "www.xx.com://", builder: (ctx, controller) { return FlatButton( onPressed: () { controller.pay(getPayUrl(), jumpPayResultCallback: (p) { print("jump pay app result ->$p"); }); }, child: Text("pay")); }, ) ``` ### iOS Opt-in to the embedded views preview by adding a boolean property to the app's `Info.plist` file with the key `io.flutter.embedded_views_preview` and the value `YES`. ### Notice When payment completed or cancelled,on IOS, if need to return to the App,you must add target URL Types into the `Info.plist` file。 For Exmalpe. If you [referer](https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=15_4 "referer")(申请H5支付时的授权域名) is `http://www.xx.com` In Android you can set this referer. In iOS you should set like this `www.xx.com:\\`,and add a URL Schemes of `www.xx.com` into the `Info.plist` file.Please refer to this [article](https://juejin.im/post/5bc83676e51d450e4369b526 "article") for more details.

近期下载者

相关文件


收藏者