Page MenuHomePhabricator

Adyen Checkout: Pull donor contact from Apple Pay sheet
Closed, ResolvedPublic

Description

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.

https://docs.adyen.com/payment-methods/apple-pay/web-component#events

https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778020-onpaymentauthorized

Event Timeline

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

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

https://gerrit.wikimedia.org/r/715135

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

https://gerrit.wikimedia.org/r/715135