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;
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 ?? '', );