|
|
@@ -1,6 +1,7 @@
|
|
|
import 'dart:async';
|
|
|
|
|
|
import 'package:electronic_assistant/sdk/pay/applepay/apple_pay_info.dart';
|
|
|
+import 'package:flutter/widgets.dart';
|
|
|
import 'package:in_app_purchase/in_app_purchase.dart';
|
|
|
|
|
|
import '../assist/agile_pay_state_info.dart';
|
|
|
@@ -38,6 +39,7 @@ class ApplePay extends AgilePayStateInfo implements IAgilePay {
|
|
|
}
|
|
|
|
|
|
void _verifyErrorPurchase(PurchaseDetails purchaseDetails) {
|
|
|
+ debugPrint('agilePay-applePay--error-> ${purchaseDetails.toString()}');
|
|
|
if (purchaseDetails.error?.code == 'store_kit_network_error') {
|
|
|
sendError(AgilePayCode.payCodeNetError,
|
|
|
AgilePayCode.getMessageByCode(AgilePayCode.payCodeNetError));
|
|
|
@@ -51,6 +53,7 @@ class ApplePay extends AgilePayStateInfo implements IAgilePay {
|
|
|
}
|
|
|
|
|
|
void _verifySuccessPurchase(PurchaseDetails purchaseDetails) {
|
|
|
+ debugPrint('agilePay-applePay--success-> ${purchaseDetails.toString()}');
|
|
|
sendPaySuccess(purchaseDetails.purchaseID);
|
|
|
}
|
|
|
|