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

Don't use payment method in the exception. #7871

Closed
wants to merge 1 commit into from

Conversation

jaynewstrom-stripe
Copy link
Collaborator

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

Summary

Fixes #7827

This was causing issues when serializing PaymentSheetLoadingException.PaymentIntentInTerminalState.
Originally introduced in #7704

@@ -341,7 +340,7 @@ internal class PaymentSheetViewModel @Inject internal constructor(
if (pendingResult is InternalPaymentResult.Completed) {
// If we just received a transaction result after process death, we don't error. Instead, we dismiss
// PaymentSheet and return a `Completed` result to the caller.
val usedPaymentMethod = error.asPaymentSheetLoadingException.usedPaymentMethod
val usedPaymentMethod = stripeIntent.value?.paymentMethod
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to pipe the payment method here from the intent in the loader.

@jaynewstrom-stripe
Copy link
Collaborator Author

Superseded by #7872

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.

[BUG] Crash PaymentSheetResult$Failed.writeToParcel
1 participant