Skip to content

Apple Pay domain verification failed

Verification is one request. Apple's server fetches /.well-known/apple-developer-merchantid-domain-association from your hostname over TLS and expects a 200 with the exact file in the body. Every failure is one of five ways that fetch goes wrong. Check your domain below to see what comes back and which cause it is. On Flint, there is no file to host at all.
Verified against official documentationReviewed Send a correction (opens in a new tab)

Check your domain

Enter the hostname that shows the Apple Pay button and pick your processor, so the diagnosis matches your flow. The checker fetches the file as a server would, without following redirects, and compares it with your processor's published file.

Fetches /.well-known/apple-developer-merchantid-domain-association the way Apple's verifier does, and checks www and the bare domain together.

Registering through Stripe or Flint? Neither uses the file, so there is no fetch to fail and the five causes don't apply. Go to Stripe, Stripe Connect, Flint, or Verified, but still no button.

What Apple checks

When you click verify in your processor's dashboard, or in the Apple Developer portal, Apple's verification server requests the file from the hostname you entered:

One Apple Pay domain verificationResponse
ProcessorAppleYour serverVerify this hostnameGET the .well-known file200 with the fileVerified, or failed
  1. Processor sends Verify this hostname to Apple
  2. Apple sends GET the .well-known file to Your server
  3. Your server returns 200 with the file to Apple
  4. Apple returns Verified, or failed to Processor

For that fetch to pass, according to Apple's TN3173:

  • The response is a 200 OK with the file contents in the body. A redirect fails, because Apple can't confirm the response came from the registered hostname.
  • The connection uses TLS 1.2 or later, and the certificate chain ends at a root that Apple's operating systems trust. No proxy in front may present a different certificate.
  • The file belongs to that exact hostname. example.com and www.example.com are separate registrations with separate files.
  • The file stays in place. Apple fetches it again, along with your root domain, starting 30 days before your TLS certificate expires, then 15 and 7 days out.

Diagnose it in five minutes

"The URL works when I open it" proves nothing, because your browser follows redirects and passes bot challenges. Use curl and read what a machine gets:

cURL
curl -si https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association

You want HTTP/2 200 or HTTP/1.1 200 with no Location header. A 301, 302, 307, or 308 fails verification. Then read the body, compare it with the file you were given, and check the other hostnames:

Shell
# The body must be the file, not your app's HTML
curl -s https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association | head -c 60

# Byte-compare it with the file your processor or Apple gave you
curl -s https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association -o served.txt
cmp served.txt apple-developer-merchantid-domain-association

# Repeat for every hostname that shows the button
curl -si https://www.yourdomain.com/.well-known/apple-developer-merchantid-domain-association

cmp prints nothing when the files match. If the body is your own HTML, a catch-all rewrite is answering instead of the file. Last, read the certificate chain a non-browser client gets, from outside your VPN:

Shell
openssl s_client -connect yourdomain.com:443 \
  -servername yourdomain.com -showcerts < /dev/null

Look for Verify return code: 0 (ok) and the full chain, leaf to root. Then match what you found:

What you seeCause
curl shows a 3xx status or a Location headerCause 1: a redirect
The status is 200, but the body is your app's HTMLCause 1: a catch-all rewrite
Loads in your browser, fails for Apple, logs show a 403 or nothingCause 2: CDN or bot protection
The error mentions TLS, certificates, or cipher suitesCause 3: TLS trust
Fails only for www, only for the apex, or after you re-added the domainCause 4: wrong or stale file
Worked before, broke near a certificate renewal with no deployCause 5: re-verification
Stripe Connect: verified on the platform, the console still warnsRegistered on the wrong account
Verified everywhere, and still no button on the pageNot a verification problem

The five causes

  1. The file is not served at exactly the right URL#

    Verification fails immediately, often with "the file can't be reached", while the URL opens fine in your browser.

    Apple requests the well-known path and requires a 200 response with the file contents in the body. It does not follow redirects. A 301 from apex to www, a trailing-slash rewrite, an http-to-https upgrade that also changes the hostname, or a redirect to your homepage all fail, even though a browser follows them silently. The other silent variant is a single-page-app catch-all that returns index.html with a 200 for every unknown path: the status looks right and the body is wrong.

    Confirm it

    curl -si the well-known URL. Any 3xx status or Location header is this cause. If the status is 200, read the body: if it looks like your app's HTML, it is the catch-all rewrite.

    Fix

    Serve the file as a static asset that bypasses redirect rules and SPA rewrites. Most platforms have an exception mechanism for /.well-known/ paths. Verify the apex and www variants separately; each hostname is its own registration.

  2. Your CDN, WAF, or bot protection is blocking Apple's fetcher#

    The file loads fine in every browser you try, and verification still fails. Server logs show a 403 or a challenge page for the verification request, or no request at all.

    Apple's verification servers are not a browser. They send different headers than your browser does and do not execute JavaScript challenges, so bot rules that your own testing sails through will block them. Cloudflare's Super Bot Fight Mode is a documented example: it has blocked Apple's fetch of this exact file.

    Confirm it

    Check origin access logs for requests to the well-known path around the moment you clicked verify. A 403, a challenge response, or silence while your own curl shows up means the fetch is being intercepted.

    Fix

    Exempt the /.well-known/ path from bot fighting, managed challenges, and rate limits, or allowlist Apple's published IP ranges. Then re-run verification and confirm the request reaches origin with a 200.

    "It loads for me" proves nothing here: your browser passes the challenge, Apple's fetcher does not.

  3. Apple does not trust your TLS setup#

    The failure message mentions your TLS certificate configuration or cipher suites.

    The fetch happens over TLS 1.2 or later with a supported cipher suite, and the certificate chain must resolve to a root Apple's operating systems trust. Common breakages: a proxy or load balancer that presents a different certificate than your origin, a missing intermediate certificate (browsers fetch missing intermediates on their own, non-browser clients often do not), a self-signed or internal CA certificate on a staging host, or a path that demands a client certificate.

    Confirm it

    openssl s_client -connect yourdomain.com:443 -servername yourdomain.com and read the chain and the verify return code. Test from outside your network so you see what Apple sees, not what your VPN sees.

    Fix

    Serve the full chain for the exact hostname, keep TLS 1.2+ with modern cipher suites, and make sure the well-known path requires no client certificate. Domains on private networks need bi-directional firewall rules that admit Apple's verification servers.

  4. The file is wrong, stale, or for a different domain#

    The file is reachable and verification still fails, or it fails after you re-added a domain.

    In the Apple Developer portal flow, the file is generated per domain, is valid for 7 days after generation, and only the most recently generated file for a domain counts. The file for example.com does not verify www.example.com; each hostname needs its own. Processors that issue their own file, such as Square, PayPal, Braintree, and Adyen, use a long-lived static file instead, but serving it with an appended .txt extension, wrapped in HTML by a CMS page, or truncated by an upload step fails the same way. A CDN can also keep serving the old file after you replaced it.

    Confirm it

    Byte-compare what the URL serves against the file you downloaded: curl -s the URL to a file and diff it. Confirm the response is raw file bytes, not an HTML page containing them.

    Fix

    Re-download the current file for this exact hostname, serve it unmodified at the well-known path, purge CDN caches, and verify within the validity window when the portal flow applies.

  5. It verified once, then silently broke#

    Apple Pay disappeared from your site with no deploy, often within a month of a TLS certificate renewal.

    Verification is not one-time. Apple re-verifies every registered domain automatically, starting 30 days before your TLS certificate expires and retrying 15 and 7 days out. The re-check requires the association file to still be live and the root domain to return a 200. Teams delete the file after the first success, or renew a certificate onto a different chain, and the domain quietly drops out of verification.

    Confirm it

    Is the well-known URL still serving the file today? Did the certificate or its chain change recently? Does the bare root domain return a 200 rather than a redirect or an error?

    Fix

    Treat the file as permanent infrastructure: keep it deployed forever, re-verify after certificate changes, and monitor the well-known URL like any other health check.

Which flow you're in

Where a file is involved, the fetch is the same. Only who issues the file and where you click register differ, so diagnose with the checks above and apply the fix in your flow's dashboard.

  • Apple Developer portal, direct. You run your own merchant ID and merchant validation. Download the per-domain file from the portal, serve it at the well-known path, and click verify within 7 days. This is the flow where file expiry and the one-file-per-domain rules bite hardest.
  • Square, Adyen, Braintree, PayPal. Same model, different console: each has you serve its domain association file and register the domain in its dashboard or API. The same verification failures apply; only the registration step changes.
  • Stripe. No file. Stripe stopped using the association file in 2025, and registration alone activates Apple Pay: register each hostname in the Dashboard or with POST /v1/payment_method_domains, on the account that runs the charge. There is no fetch to debug, so the five causes above do not apply, and a file left over from the old flow does no harm. If apple_pay stays inactive, apple_pay.status_details.error_message gives the reason, and POST /v1/payment_method_domains/{id}/validate re-checks after you fix it.
  • WooCommerce Stripe plugin. Current versions register the domain through Stripe's payment method domains API and no longer place a file, so guides that tell you to upload one predate the change. When registration fails, the plugin shows Stripe's error in an admin notice and records it in the WooCommerce logs when logging is enabled.

Stripe Connect: registered on the wrong account

On Stripe, a domain registration belongs to the account that runs the charge. With direct charges, that's the connected account, not the platform. Register only on the platform and the platform's dashboard looks fine, while the payment page logs:

You have not registered or verified the domain, so apple_pay is not enabled in the Express Checkout Element.

Register the hostname on the connected account by sending the Stripe-Account header with your platform key:

cURL
curl https://api.stripe.com/v1/payment_method_domains \
  -u "sk_live_...:" \
  -H "Stripe-Account: acct_..." \
  -d domain_name=checkout.yourdomain.com

Destination charges and separate charges and transfers register on the platform, with no Stripe-Account header. On Flint this choice doesn't exist: Flint registers every hostname on your own payment account, which is the account that runs the charge.

Verified, but still no button

If the registration is active and the button still doesn't render, stop re-verifying. The cause is in the payment page or the device:

  • HTTPS only. Wallet buttons don't render on plain HTTP, including http://localhost. For local work, use a tunnel such as ngrok or cloudflared and register the tunnel's hostname in your sandbox.
  • The hostname in the address bar. The registered hostname must match the page exactly. A button on www needs www registered, not just the apex.
  • Iframes. A payment form in a cross-origin iframe needs allow="payment" on the iframe, and the iframe's own hostname registered too.
  • A device with a card in Wallet. Test in Safari on an iPhone or Mac with a card added to Apple Wallet.
  • No automation browsers. Headless Chrome, Playwright, Puppeteer, and CI screenshot tools have no wallet, so the button never renders there however correct the setup is.
  • The wallet is turned on. Apple Pay must be enabled as a payment method for the account, and the page must ask for it. On Flint, the order's payment_collection.stripe.elements.payment_options lists the wallets your payment options turn on.

Apple Pay on Flint: no file, no fetch to fail

Flint registers hostnames for Apple Pay and Google Pay without an association file, an Apple Merchant ID, or a certificate signing request, and handles Apple's merchant validation for you. How much you do depends on where checkout runs:

Where the button showsWhat you do
Flint hosted checkout and payment linksNothing. They run on Flint's domain, already registered.
Hosted checkout or the customer account on your subdomain, such as pay.yourdomain.comNothing beyond the custom domain. Flint issues its certificate and registers it for wallets. The add-on is $15 a month.
A checkout you build with Stripe Elements on your own pagesOne API call per hostname, below.

Register each hostname with POST /v1/payment-method-domains, using a key with payments.payment_method_domains.write. Send the bare hostname, with no scheme, path, or port:

cURL
curl -X POST https://api.withflintpay.com/v1/payment-method-domains \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: pmd-shop-yourdomain-com" \
  -d '{ "domain_name": "shop.yourdomain.com" }'
JSON
{
  "data": {
    "payment_method_domain_id": "pmdom_1kmn0aExample",
    "version": 1,
    "domain_name": "shop.yourdomain.com",
    "status": "active",
    "validation_status": "active",
    "payment_option_statuses": [
      { "payment_option": "apple_pay", "status": "active" },
      { "payment_option": "google_pay", "status": "active" }
    ],
    "created_at": "2026-10-28T12:00:00Z",
    "updated_at": "2026-10-28T12:00:00Z"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4E"
}

Registering checks the hostname right away, so the response already says whether the buttons can render. Read validation_status first:

validation_status on payment method domain
  • active
    The registration is on and Apple Pay and Google Pay are both ready on this hostname.
  • action_required
    The registration is inactive, or a wallet is. Read payment_option_statuses to see which, then check the hostname again.
  • unavailable
    Flint couldn't read a wallet's status, most often because payment onboarding for the environment isn't finished. Finish it, then check again.

Reads return the most recent check. To check again, set the registration's status to active, with the version you read as expected_version:

cURL
curl -X PATCH https://api.withflintpay.com/v1/payment-method-domains/pmdom_1kmn0aExample \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: pmd-shop-yourdomain-com-recheck-1" \
  -d '{ "expected_version": 1, "status": "active" }'

A registration belongs to the key's environment, so register each hostname again with a live key before launch. If a wallet stays inactive after a live check, confirm the hostname matches the address bar exactly and ask Flint Help with the payment_method_domain_id. The Apple Pay and Google Pay setup guide covers testing, errors, and the go-live checklist.

A file-based flow and Flint, side by side

Square, PayPal, Braintree, AdyenApple Developer portal, directFlint
File to hostThe processor's file, on every hostnameA new file per hostname, valid 7 days until verifiedNone
After verificationKeep the file live for Apple's re-checks before each certificate expiryKeep the file live for Apple's re-checks before each certificate expiryNothing to keep live
Merchant ID and certificatesHandled by the processor in its standard setupYours to create and renewHandled by Flint
Registering a hostnameThe processor's dashboard or APIThe Apple Developer portalAutomatic for hosted checkout and custom domains, or one POST /v1/payment-method-domains

Questions, answered

Why does Apple Pay domain verification fail when the file opens in my browser?

Your browser follows redirects, passes bot challenges, and fills in missing intermediate certificates. Apple's verification server does none of that: it needs a 200 response with the file in the body, directly from the hostname you registered. Check the URL with curl -si, which sees what a machine sees, or run Flint's free Apple Pay domain checker, which fetches the file without following redirects.

How long does Apple Pay domain verification take?

Verification is one fetch of the file, not a review queue, so a result normally shows within seconds to a few minutes. A verification that stays pending for hours is a fetch that keeps failing. Diagnose it as a failure instead of waiting.

Do www and the apex domain need separate verification?

Yes. Every hostname that shows an Apple Pay button is its own registration: example.com, www.example.com, and shop.example.com are three. In the Apple Developer portal flow each one also needs its own file. The rule holds on Stripe and Flint too, where registration needs no file.

Why did Apple Pay stop working when nothing was deployed?

Apple re-verifies file-based domains on its own, starting 30 days before your TLS certificate expires and retrying 15 and 7 days out. If the file was deleted after the first success, the root domain stopped returning a 200, or the renewed certificate changed the chain of trust, the re-check fails and Apple Pay disappears with no deploy on your side.

Do I need an Apple Merchant ID or a certificate signing request?

Only when you run Apple Pay merchant validation yourself through the Apple Developer portal. Processors that validate for you, including Flint, don't ask for either.

Can I test domain registration in a sandbox or Stripe test mode?

Only your integration. A Stripe test mode registration marks Apple Pay active right away, even for a domain that doesn't exist, and Flint sandbox registrations behave the same way. Register every hostname with a live key before launch, and treat the live registration's wallet status as the first real result.

Does Flint need a domain association file for Apple Pay?

No. Flint-hosted checkout and payment links run on Flint's domain and show Apple Pay and Google Pay with no setup. A Flint custom domain is registered for wallets automatically. For a checkout you build on your own domain, one POST /v1/payment-method-domains call registers each hostname, and the response reports whether each wallet is ready.

Sources

All sources accessed October 28, 2026.