aliPay function

Future<Map> aliPay(
  1. String order, {
  2. AliPayEvn evn = AliPayEvn.ONLINE,
})

evn only supports Android due to native AliPaySDK

Implementation

Future<Map> aliPay(String order, {AliPayEvn evn = AliPayEvn.ONLINE}) async {
  return await _channel
      .invokeMethod("pay", {"order": order, "payEnv": evn.index});
}