Page MenuHomePhabricator

Adyen Checkout: Pull donor contact from Apple Pay sheet
Open, HighPublic


For Apple Pay, we should be able to hide the contact fields (name, address, email) and get all of the donor's info from the onAuthorized callback. We could then submit them via the extraData array that gets passed to our backend MW API call.

Event Timeline

DStrine triaged this task as High priority.Aug 4 2021, 1:19 PM

Change 715135 had a related patch set uploaded (by Ejegg; author: Ejegg):

[mediawiki/extensions/DonationInterface@master] WIP get contact info from Apple Pay sheet

Screen Shot 2021-08-26 at 7.16.13 PM.png (748×1 px, 186 KB)

With no billing address set

Screen Shot 2021-08-26 at 7.19.35 PM.png (752×986 px, 187 KB)

Clicking the up down arrow next to the card number

@Ppena @EMartin - In order to get the donor's name and address from Apple Pay without them having to type it, I had to mark it as required. I'm guessing that the majority of Apple Pay users DO have a billing address configured, but those who don't will see the error @Cstone posts above.

There is no way to automatically retrieve that info without marking it as required. Is it worth adding the barrier for donors who DON'T have a billing address configured?

Christine, I agree with you that most will have a billing address so marking it as required will likely have little impact.

In fact, Apple requires a billing address to make a payment so we won't see users with no billing address:
You will need to enter your info in each of the required fields if you want to create an iTunes account. If you enter your credit card details, which if you use the instructions on the HT2731 page that you posted from then you probably will, then your billing address will be needed for its validation.

It is possible to have an Apple ID without a payment method associated, but you then can't make a payment. That requires the card and billing address. So we won't be leaving a group of donors out by requiring the billing address. Hope that helps.

Change 715135 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Get contact info from Apple Pay sheet