Jump to content

Fundraising/Data and flow/Payment methods/Apple Pay

From Wikitech

Apple Pay is a mobile payment service by Apple Inc. that allows users to make payments in person, in iOS apps, and on the web.

We have integrations both directly through Adyen and through Gravy using the Adyen backend. There is also native iOS payments that are using the direct Adyen integration.

Apple Dev Accounts

We share some Apple Pay setup with the iOS team. Not everyone has access to the full config so if something is needed ask the iOS team and they can help out.

Verifying Merchant Domains (payments.wikimedia.org)

We have to do this yearly? Adyen and Gravy use different files, but the process on the apple side is the same.

  • Navigate to the Merchant Identifiers list here
  • Select the 'Wikimedia Apple Pay Merchant ID' record to edit
  • On the Edit or Configure Merchant ID page, Scroll down to the Merchant Domains block
  • On the right, click Verify
  • Download the new verification file payments.wikimedia.org
  • In payments-wiki, update the contents of .well-known/apple-developer-merchantid-domain-association.txt with the contents of the new verification file you just downloaded
  • Example here: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1123424
  • Deploy that change
  • Reverify by clicking 'OK'

It will take a few seconds to process, and then if successful, you will be redirected back to the Edit or Configure Merchant ID page where Verification Expires date should be updated.

Adyen

Adyen was our first Apple Pay integration. We are using Adyen's certificate for setup. More info here: https://wikitech.wikimedia.org/wiki/Fundraising/Data_and_flow/PSP_integrations/Adyen_Checkout#Apple_Pay

Native

More information here for adyen https://wikitech.wikimedia.org/wiki/Fundraising/Data_and_flow/PSP_integrations/Adyen_Checkout#In_App_(Native)_Donations

Gravy