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

fix: resolve with Error.Canceled if no payment option is selected in Payment Sheet custom flow #975

Merged

Conversation

charliecruzan-stripe
Copy link
Collaborator

Summary

previously we'd return with a null error, and a null payment option is the flow was cancelled. this isn't necessarily bad, but it doesn't match the behavior of the non-custom flow, or any of our other flows.

Now, we resolve with an error.code == Canceled

Motivation

closes #723

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

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

Successfully merging this pull request may close these issues.

Clicking the cross to close the payment sheet doesn't send a Canceled error in custom flow
1 participant