wechatPay method
微信支付
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?) ?? {};
}