#### Background
This is the task to add native support for GPay into the Android Wikipedia App in partnership with fr-tech. Adding Native payment method support was one of the proposed enhancements identified for improving donor experience in the apps. Fr-tech and the iOS team have already added support for ApplePay. Adding support for Google / Apple Pay was also a [[ https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2022/Mobile_and_apps#Accepting_donations_from_mobile_apps | request in the 2022 Wishlist ]].
#### Requirements
- Entry points for flow: 1) From the "Donate" option in settings 2) from an in-app banner
- An option to "Donate with GPay" or via "Other payment method" should be presented when tapping Donate
- The GooglePay option or any branding should not be visible if the user doesn't have GooglePay set-up or is restricted for compliance reasons. In this case, the user should be sent directly to donate.wikimedia.org
- Tapping "Donate with GPay" should launch the Native Donation form
- The Native Donation form should have functional parity with iOS's native donation form
- Array of amounts
- Cursor should be active on Amount entry, with number keyboard active
- Choosing an amount button autofills that amount into the amount field.
- Error message for when an amount is below the minimum accepted donation amount (Match [[ https://donate.wikimedia.org/w/index.php?title=Special:LandingPage&country=US&uselang=en&utm_medium=spontaneous&utm_source=fr-redir&utm_campaign=spontaneous | donate.wikimedia.org ]])
- Error message for when an amount is above $25,000 USD (Match [[ https://donate.wikimedia.org/w/index.php?title=Special:LandingPage&country=US&uselang=en&utm_medium=spontaneous&utm_source=fr-redir&utm_campaign=spontaneous | donate.wikimedia.org ]])
- Checkbox for transaction fee //I'll generously add X to cover the transaction fees so you can keep 100% of my donation.//
- Choosing to pay transaction fees automatically adds that amount into the amount field
- Checkbox for recurring donation //Make this a monthly recurring donation.//
- Checkbox for email opt-in //Yes, the Wikimedia Foundation may send me an occasional email.//
- "Donate with GPay" button should use pre-packaged branded button from Google
- Links below the donation form should be:
- [[ https://donate.wikimedia.org/wiki/Problems_donating | Problems donating? ]]
- [[ https://donate.wikimedia.org/wiki/Ways_to_Give | Other ways to give ]]
- [[ https://donate.wikimedia.org/wiki/FAQ | Frequently asked questions ]]
- [[ https://donate.wikimedia.org/wiki/Tax_deductibility | Tax deductibility information]]
- The Native Donation form should have functional parity with iOS's native donation form
- After donating via GPay, show a Thank you message in-app
- Tapping "Other payment method" should launch the existing link used in the app to donate.wikimedia.org
#### Designs:
TBA
####References:
* Brand guidelines from Google https://developers.google.com/pay/api/android/guides/brand-guidelines
* Can be based on ApplePay general flow (ApplePay Parent task with designs: T288285, [[ https://www.figma.com/file/yapMJ6cGCJpYWhLmnSYScJ/iOS-and-Android-%E2%86%92-Donor-experiences?type=design&node-id=0-1&mode=design | figma ]])
* Also consider existing Android Banner/Donation flow designs: [[ https://www.figma.com/file/yapMJ6cGCJpYWhLmnSYScJ/iOS-and-Android-%E2%86%92-Donor-experiences?type=design&node-id=783-7192&mode=design&t=Ahuq484AFuCq4l4t-0 | Figma ]]
####To do:
[] AV Create rough mockups and share for feedback in April 18 Combined Apps
[] DB Share mockups with Google
[] AV Create final mockups and attach to Sub Epic