In order to accept payment using Apple Pay on your custom built website, you will need to upload a file to a specific location and be using Stripe as your payment provider in Gift Up!
- Download this domain association file and host it at
/.well-known/apple-developer-merchantid-domain-associationon your site. For example, if you're registering
https://example.com, make that file available at
Once this file is publicly available, it can take an hour or two for Apple Pay to register in Apple's system for your domain.
Tip: It is worth checking if this file already exists on your website, as some hosting providers (like Suarespace) have this uploaded by default on all the websites they host.
- Register your web domain in your Stripe account for "Apple pay on the Web" transactions in your Stripe dashboard here: https://dashboard.stripe.com/account/apple_pay
To test Apple Pay is working and enabled, you will need the correct hardware. Here's a guide from Apple.
If you're having any issues getting it to work, contact Stripe for advice. They do have a complete guide here: https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay