pay method
Future<void>
pay({
- required String appId,
- required String partnerId,
- required String prepayId,
- required String package,
- required String nonceStr,
- required String timeStamp,
- required String sign,
override
支付
参数说明:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_12&index=2
- 默认包含支付,参考 https://github.com/RxReader/wechat_kit/blob/master/example/pubspec.yaml
修改
wechat_kit.ios = no_pay
可切换为不包含支付 - 不含「iOS 支付」调用会抛出 MissingPluginException
Implementation
@override
Future<void> pay({
required String appId,
required String partnerId,
required String prepayId,
required String package,
required String nonceStr,
required String timeStamp,
required String sign,
}) {
return methodChannel.invokeMethod<void>(
'pay',
<String, dynamic>{
'appId': appId,
'partnerId': partnerId,
'prepayId': prepayId,
'noncestr': nonceStr,
'timestamp': timeStamp,
'package': package,
'sign': sign,
},
);
}