Last updated:
0 purchases
better wechat h5pay
better_wechat_h5pay #
A simple Wechat H5 payment for flutter.
Install Started #
Add this to your pubspec.yaml file:
dependencies:
better_wechat_h5pay: ^0.0.1
copied to clipboard
Install it
$ flutter packages get
copied to clipboard
Normal usage #
WechatPayWebView(controller: _payWebViewController),
Expanded(
child: Center(
child: CupertinoButton(
child: Text("支付"),
onPressed: () {
_payWebViewController.pay(url: url(), referer: referer());
},
),
),
),
String url() {
return "https://wx.tenpay.com/xxxxxx";
}
String referer() {
return Platform.isIOS ? "yourserverhost://" : "https://yourserverhost";
}
copied to clipboard
Feature #
✅ wechat h5 payment.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.