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

Refactor validation errors from Payment- & CustomerSheetLoader #7872

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

tillh-stripe
Copy link
Collaborator

@tillh-stripe tillh-stripe commented Feb 2, 2024

Summary

This pull request fixes an issue where an unserializable Throwable in PaymentSheetResult.Failed caused a crash. The cause turned out to be the Address in the PaymentMethod object.

Now, we no longer include the entire PaymentMethod in the exception, but rather keep this information in the PaymentSheetViewModel.

Motivation

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Before After
before screenshot after screenshot

Changelog

@tillh-stripe tillh-stripe force-pushed the tillh/fix-badparcelable-with-loading-exception branch from 2ce55b3 to b4ccb24 Compare February 5, 2024 15:32
@tillh-stripe tillh-stripe marked this pull request as ready for review February 5, 2024 15:36
@tillh-stripe tillh-stripe requested review from a team as code owners February 5, 2024 15:36
paymentsheet/detekt-baseline.xml Show resolved Hide resolved
@tillh-stripe tillh-stripe force-pushed the tillh/fix-badparcelable-with-loading-exception branch from 8eefeaf to b3a2e68 Compare February 5, 2024 18:33
@tillh-stripe tillh-stripe merged commit 7f728fc into master Feb 5, 2024
7 checks passed
@tillh-stripe tillh-stripe deleted the tillh/fix-badparcelable-with-loading-exception branch February 5, 2024 19:33
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.

2 participants