fix stripe_pay.dart
This commit is contained in:
parent
3398482511
commit
3be9cdd77c
@ -72,7 +72,7 @@ stripePay(context,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Stripe.instance.initPaymentSheet(paymentSheetParameters: SetupPaymentSheetParameters(
|
await Stripe.instance.initPaymentSheet(paymentSheetParameters: SetupPaymentSheetParameters(
|
||||||
applePay: false,
|
applePay: false,
|
||||||
googlePay: false,
|
googlePay: false,
|
||||||
style: Theme.of(state.context).brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
|
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);
|
Navigator.pushNamed(context, "/checkout-status", arguments: order);
|
||||||
|
|
||||||
}
|
} on StripeException catch(e) {
|
||||||
on StripeException catch(e) {
|
|
||||||
showToastNotification(
|
showToastNotification(
|
||||||
context,
|
context,
|
||||||
title: trans(context, "Oops!"),
|
title: trans(context, "Oops!"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user