|
|
@@ -1,4 +1,5 @@
|
|
|
import 'package:electronic_assistant/sdk/pay/alipay/alipay.dart';
|
|
|
+import 'package:electronic_assistant/sdk/pay/googlepay/google_pay_info.dart';
|
|
|
import 'package:electronic_assistant/sdk/pay/listener/i_agile_pay.dart';
|
|
|
import 'package:electronic_assistant/sdk/pay/wxpay/wechat_pay.dart';
|
|
|
import 'package:electronic_assistant/sdk/pay/wxpay/wechat_pay_info.dart';
|
|
|
@@ -6,6 +7,7 @@ import 'alipay/ali_pay_info.dart';
|
|
|
import 'applepay/apple_pay.dart';
|
|
|
import 'applepay/apple_pay_info.dart';
|
|
|
import 'code/agile_pay_code.dart';
|
|
|
+import 'googlepay/google_pay.dart';
|
|
|
import 'listener/agile_pay_state.dart';
|
|
|
|
|
|
class AgilePay {
|
|
|
@@ -24,6 +26,8 @@ class AgilePay {
|
|
|
iAgilePay = WechatPay(payInfo);
|
|
|
} else if (payInfo is ApplePayInfo) {
|
|
|
iAgilePay = ApplePay(payInfo);
|
|
|
+ } else if (payInfo is GooglePayInfo) {
|
|
|
+ iAgilePay = GooglePay(payInfo);
|
|
|
}
|
|
|
realPay = iAgilePay;
|
|
|
if (iAgilePay != null) {
|