better_wechat_h5pay

Last updated:

0 purchases

better_wechat_h5pay Image
better_wechat_h5pay Images
Add to Cart

Description:

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.