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 deletion of saved PM #5592

Merged
merged 3 commits into from
Sep 22, 2022
Merged

Fix deletion of saved PM #5592

merged 3 commits into from
Sep 22, 2022

Conversation

brnunes-stripe
Copy link
Contributor

@brnunes-stripe brnunes-stripe commented Sep 22, 2022

Summary

When the user deletes a saved PM that was last used, we were keeping it as the selected item. If the user then confirms the payment without changing the selection, the payment would fail because we'd try to use the deleted PM.

Motivation

Fix bug when deleting the payment method that was last used.

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

delete.mp4

@brnunes-stripe brnunes-stripe merged commit 90ff742 into master Sep 22, 2022
@brnunes-stripe brnunes-stripe deleted the brnunes/delete branch September 22, 2022 15:29
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.

None yet

4 participants