flutter-stripe / flutter_stripe

Flutter SDK for Stripe.
https://pub.dev/packages/flutter_stripe
959 stars 528 forks source link

Invalid argument(s): `automatic_async` is not one of the supported values: automatic, manual #1953

Open 18Ashelar opened 1 month ago

18Ashelar commented 1 month ago

Describe the bug I'm encountering an error in Flutter web when submitting the payment using the Payment Element. Although the payment is successfully processed and reflected in the Stripe dashboard, the exception is still being thrown.

Code: ////Below code is for pay button: String getReturnUrl() => web.window.location.href;

Future pay() async { await WebStripe.instance.confirmPaymentElement( ConfirmPaymentElementOptions( redirect: PaymentConfirmationRedirect.ifRequired, confirmParams: ConfirmPaymentParams(return_url: ""), ), ); }

//// payment element code PaymentElement( autofocus: true, enablePostalCode: true, onCardChanged: (_) {}, clientSecret: clientSecret ?? '', );

18Ashelar commented 1 month ago

https://github.com/user-attachments/assets/2453acc0-0e22-47f9-9441-c1da27021d04

remonh87 commented 3 weeks ago

can you add the full stacktrace? It is now hard to determine what would be the exact cause