-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Send users directly to web when we do not support Native GPay #4898
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we just put all this logic in DonateViewModel
? It's already doing most of the work for us. (i.e. in addition to checking isGooglePayAvailable()
, you can also check if the country code is allowed.)
I moved the logic to |
Thanks @dbrant |
https://phabricator.wikimedia.org/T373410
The idea is to use the current logic in the
GooglePayViewModel
that decides to show in the Donation dialog or CustomTab.