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

WebStripe - ConfirmPaymentOptions - "enum PaymentConfirmationRedirect" #1181

Closed
cyphl opened this issue Mar 22, 2023 · 0 comments · Fixed by #1201
Closed

WebStripe - ConfirmPaymentOptions - "enum PaymentConfirmationRedirect" #1181

cyphl opened this issue Mar 22, 2023 · 0 comments · Fixed by #1201
Assignees
Labels

Comments

@cyphl
Copy link

cyphl commented Mar 22, 2023

Version: stripe_js-2.0.1

The enum below, is defined in confirm_payment_options.dart:
enum PaymentConfirmationRedirect { always, ifRequired, }

It gets serialized in confirm_payment_options.g.dart as:

{ PaymentConfirmationRedirect.always: 'always', PaymentConfirmationRedirect.ifRequired: 'ifRequired', };

It seems though the StripeApi is expecting it to be: always or if_required.

│ ⛔ StripeApi pay error: IntegrationError: Invalid value for stripe.confirmPayment(): redirect should be one of the following strings: always, if_required. You specified: ifRequired. └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

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

Successfully merging a pull request may close this issue.

3 participants