Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Apple Pay domain verification file missing: how to fix it

OPS-212Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Apple Pay is a wallet button that lets shoppers pay with a saved card using Face ID or Touch ID. Before Apple lets a website show it, the domain must be verified. Verification means your site publicly serves a small text file with no extension at this exact path:

Required file locationtext
https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association

Why it costs you leads or sales

Where the Apple Pay journey breaks
  1. Shopper opens checkoutSafari on iPhone
  2. Domain checkVerification file returns 404
  3. Apple Pay buttonNot shown
  4. One-tap paymentNever starts

The missing file stops the button from rendering, so the one-tap payment path never starts.

Mobile checkout completion with and without the buttonExample numbers
Mobile checkout completion with and without the button (example)Apple Pay shown: 62 %; Apple Pay missing: 54 %024486254Apple Pay shownApple Pay missing%

Example: illustrative numbers only. Removing a one-tap option can lower completion on iPhone traffic.

How to check if your site has it

Check the verification file
  1. Open the file URL

    In a browser, visit https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association. You should see a long block of hexadecimal text, or a file download.

  2. Check the response code

    Run the curl command below. You want HTTP 200 with no redirect.

  3. Check your payment dashboard

    In Stripe, go to Settings > Payment methods > Apple Pay (or Payments > Payment method domains) and look at the status of each domain. Other providers have a similar domain list.

  4. Test on a real device

    Open your checkout in Safari on an iPhone or Mac with a card in Wallet. If the button is missing on the domain, verification is a likely cause.

Check the file statusbash
curl -I https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association
# Good: HTTP/2 200
# Bad: 301/302 redirect, 403, 404, or a content-type of text/html with a themed error page

How to fix it

Host the verification file by platform
  1. Try your payment plugin first

    If you use WooCommerce Stripe Gateway, open WooCommerce > Settings > Payments > Stripe and look for the Apple Pay domain verification option. The plugin can host and register the file for you.

  2. Upload manually if needed

    Using FTP or your host's file manager, create a folder named .well-known in the site root (the folder containing wp-config.php) and upload the file there, named exactly apple-developer-merchantid-domain-association.

  3. Check security rules

    Some security plugins or server rules block dotfolders. Allow /.well-known/ if the file returns 403.

Nginx: serve the file from the web rootnginx
location = /.well-known/apple-developer-merchantid-domain-association {
    default_type text/plain;
    try_files $uri =404;
}
Apache: allow .well-known and skip rewriteshtaccess
RewriteEngine On
RewriteRule ^\.well-known/ - [L]
Register the domain after hosting the file
  1. Add the domain in your provider

    In Stripe, use Settings > Payment methods > Apple Pay or Payment method domains > Add a new domain. Enter the exact host your checkout uses.

  2. Click Verify

    The provider fetches the file. If it returns 200 with the expected content, the domain shows as verified.

  3. Repeat for every domain

    Add each subdomain and the www and non-www versions you actually use for checkout.

Before and after the fix

File missing

  • URL returns 404 or a redirect
  • Domain shows as unverified
  • No Apple Pay button on checkout

File hosted

  • URL returns 200 with the file text
  • Domain shows as verified
  • Apple Pay button appears on supported devices

How to confirm it's fixed

Confirmation checks
  • The file URL returns HTTP 200 with no redirect
  • Your payment dashboard shows the domain as verified
  • The Apple Pay button appears in Safari on an iPhone or Mac with a card in Wallet
  • The button also appears on the exact host shoppers use (www or non-www)
  • Test mode or a small real payment completes, then refund it if needed

How to prevent it happening again

How the problem usually appears
  1. Day 0

    Apple Pay is verified and working.

  2. Day 30

    A migration, new host or security rule removes the .well-known folder.

  3. Day 31

    The button disappears. Nobody sees an error.

  4. Day 45

    Someone notices wallet payments have dropped.

Prevention habits
  • Keep a copy of the verification file in your site's code repository
  • Re-verify the domain after any host, CDN, domain or redirect change
  • Exclude /.well-known/ from redirect, firewall and caching rules that rewrite it
  • Verify new subdomains before launching checkout on them
  • Test checkout on an iPhone after each major release

How FunnelGuard handles this

Questions people ask

Why is my Apple Pay button not showing at checkout?

Common causes are a missing or unverified domain file, a device or browser without Apple Pay, no card in Wallet, or Apple Pay not enabled in your payment settings. Check the verification file URL first, then test in Safari on an iPhone.

Where does the Apple Pay domain verification file go?

It goes at https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association. The file has no extension and must return HTTP 200 directly, without a redirect.

How do I get the Apple Pay verification file?

Download it from your payment provider. In Stripe, add your domain under Payment method domains in the Dashboard and download the file offered there. Other providers have a similar step.

Why does Apple Pay domain verification fail?

The usual causes are a 404, a redirect, a 403 from a security rule, wrong file content, or checking a different host from the one the file is on. Fix the URL so it returns 200 on the exact domain you are verifying, then try again.

Do I need to verify every subdomain for Apple Pay?

Yes. Each domain or subdomain that shows Apple Pay needs its own hosted file and its own registration with your payment provider. Include www and non-www if both can serve checkout.

Can Shopify or Wix handle Apple Pay verification for me?

On Shopify with Shopify Payments, and on Wix or Squarespace with their built-in payments, the platform manages it where supported. These platforms generally do not let you upload files at custom paths, so third-party gateways may be limited.

Can FunnelGuard tell me if my Apple Pay verification file is missing?

Only partly. FunnelGuard's payment methods check can alert you if the Apple Pay option stops appearing in your checkout journey. It does not validate the file or your provider's domain status, so check those by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: payment_methods.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.