Prerequisites
- HTTPS Hosting: Your site must be hosted on HTTPS to ensure secure transactions.
- Crossmint Account: You need an active Crossmint developer account.
Setup Instructions
Step 1: Download the Verification File
- Go to the Apple Pay Domains page in the Crossmint Console.
- Click Download file to get the Apple Developer Merchant ID Domain Association file.
Step 2: 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).
Step 3: 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.Local Testing
Using ngrok is recommended for local testing. Ngrok allows you to expose your local server to the internet securely.- 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.
For further assistance, please contact our support team.

