Skip to main content
This guide covers how to show Apple Pay in the onramp embedded checkout. The user confirms the payment with Face ID, Touch ID, or a device passcode instead of typing card details, which typically converts better on Apple devices.

Availability

Apple Pay never appears on other browsers or on Android, even when it is enabled.

Prerequisites

Set Up Apple Pay

To display Apple Pay on your website (Safari on macOS and iOS), you must verify your domain with Apple through the Crossmint Console. This is a one-time setup per domain.

Prerequisites

  1. HTTPS hosting — your site must be served over HTTPS.
  2. Crossmint account — you need an active Crossmint developer account.
1

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.
2

Host the Verification File

Host the downloaded file on your server at the following path:
Option 1: Using the Public Folder
  1. Create the .well-known folder inside your public directory.
  2. Place the downloaded file in public/.well-known/ with the filename apple-developer-merchantid-domain-association (no extension).
Option 2: Using a Route
  1. Create a folder at app/.well-known/apple-developer-merchantid-domain-association/
  2. Add a route.ts file with the following content:
route.ts
Replace PASTE_FILE_CONTENT_HERE with the content of the downloaded verification file.
  1. Create the .well-known folder inside your public directory.
  2. Place the downloaded file in public/.well-known/ with the filename apple-developer-merchantid-domain-association (no extension).
  1. Create the .well-known folder inside your public directory.
  2. Place the downloaded file in public/.well-known/ with the filename apple-developer-merchantid-domain-association (no extension).
3

Verify Your Domain

  1. Return to the Apple Pay Domains page in the Crossmint Console.
  2. Enter your domain (e.g., example.com or checkout.example.com) in the input field.
  3. Click Verify domain.
If verification succeeds, your domain will appear in the list of registered domains and Apple Pay will be available as a payment method in the onramp checkout.
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:
  1. Start ngrok with a fixed domain if possible for consistent testing.
  2. Host the verification file on your local server.
  3. Register the ngrok domain in the Crossmint Console.
  4. Test Apple Pay on Safari (macOS) or any iOS device.

Troubleshooting

  1. Domain not verified (web): Verify your domain on the Apple Pay Domains page
  2. Unsupported browser: Apple Pay on web only appears in Safari on macOS and iOS
  3. iOS Simulator (mobile apps): Apple Pay does not render in the Simulator; test on a physical iPhone running iOS 17 or higher with a card in Apple Wallet
  4. iOS version (mobile apps): Apple Pay inside a WebView requires iOS 16 or higher
  5. Payment method disabled: Check applePay: true in allowedMethods

Next Steps

Google Pay

Enable Google Pay on web and Android

Configure Embedded Checkout Methods

Choose which payment methods the embedded checkout offers