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 delete behavior in customerSheet #3309

Merged
merged 4 commits into from
Feb 21, 2024
Merged

Fix delete behavior in customerSheet #3309

merged 4 commits into from
Feb 21, 2024

Conversation

wooj-stripe
Copy link
Collaborator

Summary

Fix delete behavior in CustomerSheet

Motivation

If an exception is thrown in detachPaymentMethod(), we are incorrectly removing the paymentMethod in the UI. Instead, we should attempt to remove it, and if successful, then update the UI

Testing

Manually by adding PaymentSheetError.unknown("--"), in detachPaymentMethod
Manually w/ the success case
Relying on automated UI tests

Changelog

@wooj-stripe wooj-stripe marked this pull request as ready for review February 20, 2024 21:57
@wooj-stripe wooj-stripe requested review from a team as code owners February 20, 2024 21:57
@wooj-stripe wooj-stripe merged commit f1f558f into master Feb 21, 2024
3 checks passed
@wooj-stripe wooj-stripe deleted the wooj/delPMCS branch February 21, 2024 22:16
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

2 participants