fix stripe_pay.dart

This commit is contained in:
Anthony 2021-10-12 00:05:53 +01:00
parent 3398482511
commit 3be9cdd77c

View File

@ -72,7 +72,7 @@ stripePay(context,
return;
}
Stripe.instance.initPaymentSheet(paymentSheetParameters: SetupPaymentSheetParameters(
await Stripe.instance.initPaymentSheet(paymentSheetParameters: SetupPaymentSheetParameters(
applePay: false,
googlePay: false,
style: Theme.of(state.context).brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
@ -102,8 +102,7 @@ stripePay(context,
Navigator.pushNamed(context, "/checkout-status", arguments: order);
}
on StripeException catch(e) {
} on StripeException catch(e) {
showToastNotification(
context,
title: trans(context, "Oops!"),