Invalid argument(s): automatic_async
is not one of the supported values: automatic, manual
#1953
Labels
needs triage
Needs triage
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 ?? '',
);
The text was updated successfully, but these errors were encountered: