Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
18Ashelar opened this issue Oct 9, 2024 · 1 comment
Labels
needs triage Needs triage

Comments

@18Ashelar
Copy link

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.

  • Device: Google Chrome
  • Package version: 11.1.0
  • Flutter version 24.1.0

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 18Ashelar added the needs triage Needs triage label Oct 9, 2024
@18Ashelar
Copy link
Author

Screen.Recording.2024-10-09.at.1.11.47.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant