diff --git a/packages/stripe_web/lib/src/web_stripe.dart b/packages/stripe_web/lib/src/web_stripe.dart index e412a3b52..39c1e01df 100644 --- a/packages/stripe_web/lib/src/web_stripe.dart +++ b/packages/stripe_web/lib/src/web_stripe.dart @@ -119,9 +119,7 @@ class WebStripe extends StripePlatform { paymentIntentClientSecret, data: stripe_js.ConfirmCardPaymentData( paymentMethod: stripe_js.CardPaymentMethodDetails(card: element!), - setupFutureUsage: (options?.setupFutureUsage ?? - PaymentIntentsFutureUsage.OnSession) - .toJs(), + setupFutureUsage: options?.setupFutureUsage?.toJs(), ), ); },