-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
Type cast fails on Customer Sheet cancel #1721
Comments
This also happens on IOS. |
I created a pull request to fix this issue. Hopefully it will get merged soon ;) In your pubspec.yaml
|
I have somehow the same problem. Collecting payment through cardForm.
If the card is 3d secured the user is redirected to hooks.stripe.com to authenticate the card, but on closing that page it throws StripeException with FailureCode.failed rather than FailureCode.cancelled. since the user explicitly closed the payment process. I am expecting to get FailureCode.cancelled. @Flucadetena @jamesblasco @ovchars2 @cornwe19 . Can someone please help me out this? |
Hi @phawadshah I'm sorry but I'm still using my fork to avoid this issue, I can not tell you more than to use it or check out what I did and see if it helps :) |
@Flucadetena I did use your fork but it did not work. I think you misread my issue.
I am expecting failureCode.cancelled and it throws failed, since it was cancelled by the user. |
Describe the bug
When a Customer Sheet is closed, a type cast error is thrown instead of StripeException
To Reproduce
Expected behavior
StripeException with FailureCode.Canceled is thrown
Smartphone / tablet
main
branchAdditional context
Logs:
The text was updated successfully, but these errors were encountered: