Documentation Index
Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
Use this file to discover all available pages before exploring further.
This guide covers Apple Pay for web integrations (Safari on macOS and iOS only). For native iOS apps, Apple Pay is supported automatically via the Swift SDK — see the Swift Quickstart.
Prerequisites
- HTTPS hosting — your site must be served over HTTPS.
- Crossmint account — you need an active Crossmint developer account.
- Working onramp integration — complete a quickstart first.
Setup Instructions
Download the Verification File
Go to the Apple Pay Domains page in the Crossmint Console and click Download file to get the Apple Developer Merchant ID Domain Association file.
Host the Verification File
Host the downloaded file on your server at the following path:
Example: Next.js App Router
Example: Next.js App Router
Option 1: Using the Public FolderReplace
- Create the
.well-knownfolder inside yourpublicdirectory. - Place the downloaded file in
public/.well-known/with the filenameapple-developer-merchantid-domain-association(no extension).
- Create a folder at
app/.well-known/apple-developer-merchantid-domain-association/ - Add a
route.tsfile with the following content:
route.ts
PASTE_FILE_CONTENT_HERE with the content of the downloaded verification file.Example: Next.js Page Router
Example: Next.js Page Router
- Create the
.well-knownfolder inside yourpublicdirectory. - Place the downloaded file in
public/.well-known/with the filenameapple-developer-merchantid-domain-association(no extension).
Example: Vite
Example: Vite
- Create the
.well-knownfolder inside yourpublicdirectory. - Place the downloaded file in
public/.well-known/with the filenameapple-developer-merchantid-domain-association(no extension).
Verify Your Domain
- Return to the Apple Pay Domains page in the Crossmint Console.
- Enter your domain (e.g.,
example.comorcheckout.example.com) in the input field. - Click Verify domain.
If verification fails, ensure the file is publicly accessible at the correct path. You can test by visiting
https://YOUR_DOMAIN/.well-known/apple-developer-merchantid-domain-association in your browser.Enabling Apple Pay in the Checkout Component
Once your domain is verified, enable Apple Pay by settingapplePay: true in the payment configuration:
Local Testing
Using ngrok is recommended for local testing:- Start ngrok with a fixed domain if possible for consistent testing.
- Host the verification file on your local server.
- Register the ngrok domain in the Crossmint Console.
- Test Apple Pay on Safari (macOS) or any iOS device.

