Skip to content

Commit 3be9cdd

Browse files
committed
fix stripe_pay.dart
1 parent 3398482 commit 3be9cdd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

LabelStoreMax/lib/app/providers/stripe_pay.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ stripePay(context,
7272
return;
7373
}
7474

75-
Stripe.instance.initPaymentSheet(paymentSheetParameters: SetupPaymentSheetParameters(
75+
await Stripe.instance.initPaymentSheet(paymentSheetParameters: SetupPaymentSheetParameters(
7676
applePay: false,
7777
googlePay: false,
7878
style: Theme.of(state.context).brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
@@ -102,8 +102,7 @@ stripePay(context,
102102

103103
Navigator.pushNamed(context, "/checkout-status", arguments: order);
104104

105-
}
106-
on StripeException catch(e) {
105+
} on StripeException catch(e) {
107106
showToastNotification(
108107
context,
109108
title: trans(context, "Oops!"),

0 commit comments

Comments
 (0)