diff --git a/LabelStoreMax/lib/app/providers/stripe_pay.dart b/LabelStoreMax/lib/app/providers/stripe_pay.dart index d2ad5b3..fde00f9 100644 --- a/LabelStoreMax/lib/app/providers/stripe_pay.dart +++ b/LabelStoreMax/lib/app/providers/stripe_pay.dart @@ -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!"),