Treat google payment request token error as setup failure in boost.

This commit is contained in:
Alex Hart 2021-11-19 11:53:44 -04:00 committed by Cody Henthorne
parent ff038e3ade
commit 3d65a957f4

View file

@ -121,7 +121,7 @@ class BoostFragment : DSLSettingsBottomSheetFragment(
is DonationEvent.GooglePayUnavailableError -> Unit
is DonationEvent.PaymentConfirmationError -> onPaymentError(event.throwable)
is DonationEvent.PaymentConfirmationSuccess -> onPaymentConfirmed(event.badge)
is DonationEvent.RequestTokenError -> onPaymentError(event.throwable)
is DonationEvent.RequestTokenError -> onPaymentError(DonationExceptions.SetupFailed(event.throwable))
DonationEvent.RequestTokenSuccess -> Log.i(TAG, "Successfully got request token from Google Pay")
DonationEvent.SubscriptionCancelled -> Unit
is DonationEvent.SubscriptionCancellationFailed -> Unit