wechatPay method

  1. @override
Future<Map> wechatPay(
  1. PayType which
)
override

微信支付

Implementation

@override
Future<Map> wechatPay(PayType which) async {
  final String methodName;
  switch (which) {
    case Payment():
      methodName = 'wechatPay';
    case HongKongWallet():
      methodName = 'wechatPayHongKongWallet';
  }
  final response = await methodChannel.invokeMethod<dynamic>(
      methodName, which.arguments);
  return (response as Map?) ?? {};
}