This task covers two pieces:
Update Settings cell
Update the Settings "Donate" option from "Support Wikipedia (external icon)" to "Donate to Wikipedia (no icon)"
We will only change this design if the user qualifies for the Netherlands or Italy campaigns (Config start and end dates are located here):
- Their device country code is set to Netherlands or Italy in iOS Settings > Language & Region > Region
- The device date falls into the Netherlands or Italy campaign start date and end date (starting Oct 17th).
Otherwise we will fall back to the old behavior. "Support Wikipedia (external icon)" cell in Settings, and tapping will take them to an external browser app showing donate.wikipedia.org.
Present the "Donate with Apple Pay?" action sheet
Present the "Donate with Apple Pay?" action sheet after tapping the Settings "Donate to Wikipedia" cell or after tapping the "Donate" button in the new campaign modal.
We will only present this "Donate with Apple Pay?" action sheet if:
- Their device country code is set to Netherlands or Italy in iOS Settings > Language & Region > Region
- The device current date falls into the Netherlands or Italy campaign start date and end date. (starting Oct 17th).
- The user has Apple Pay set up with a valid card in Apple Wallet.
If they only qualify for 1 & 2 but not 3, we will send them straight to the in-app web view displaying donate.wikipedia.org. If they don't qualify for 1 or 2, they will fall back to the old behavior and go to an external browser app showing donate.wikipedia.org.
Some engineering background details can be seen in https://docs.google.com/document/d/1fXdHRknr8gz5Pou8PHFujIpb8Im06rDWdW04liFH42s/edit.
Testing Notes
This can be tested starting in Wikipedia TestFlight 7.4.3 (2809) build.