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

[Flutter Web] handleNextAction returns Unexpected null value #1768

Closed
eliamirafiori opened this issue May 11, 2024 · 1 comment
Closed

[Flutter Web] handleNextAction returns Unexpected null value #1768

eliamirafiori opened this issue May 11, 2024 · 1 comment
Labels
needs triage Needs triage

Comments

@eliamirafiori
Copy link

Describe the bug
While creating a payment intent on Flutter Web and retrieving successfully its client_secret from my backend, when I rung Stripe.instance.handleNextAction(clientSecret) to check the status of the intent, Stripe throws the following error:

Unexpected null value

To Reproduce
Steps to reproduce the behavior:

  1. Use Flutter Web
  2. Add to pubspec: flutter_stripe and flutter_stripe_web
  3. Create a payment method and get its ID
  4. Create a payment intent on your backend and get the client_secret
  5. Pass the client_secret to Stripe.instance.handleNextAction

Expected behavior
I expected to get the PaymentIntent associated to the client_secret retrieved above.
But instead I get the error Unexpected null value.

The client_secret passed is not null, it's a String.

PC / Chrome

  • Device: PC
  • OS: Win 11
  • Package version: flutter_stripe: ^10.1.1
  • Package version: flutter_stripe_web: ^5.1.0
  • Flutter version: 3.16.9
@eliamirafiori eliamirafiori added the needs triage Needs triage label May 11, 2024
@guidotheelen
Copy link

Also facing this issue:
#1746

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

2 participants