pay method

  1. @override
Future<void> pay({
  1. required String appId,
  2. required String partnerId,
  3. required String prepayId,
  4. required String package,
  5. required String nonceStr,
  6. required String timeStamp,
  7. required String sign,
})
override

支付

参数说明:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_12&index=2

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,
    },
  );
}