Apple Pay

Enable Apple Pay as a payment method for international customers using Razorpay Checkout.


Apple Pay is a secure, contactless payment method that allows customers to pay using their Apple devices with Face ID/Touch ID authentication. Once Apple Pay is enabled and integrated, it appears on your Checkout page as a payment option, providing a frictionless checkout experience for international customers. Know more about

.

Feature Request

This is an on-demand feature. Please fill out the

to get this feature activated on your account.

Advantages

Integrating Apple Pay as a payment method on Checkout offers you the following advantages:

  • Higher Conversion Rates: Up to 58% improvement in checkout conversion rates for international customers.
  • Reduced Friction: Eliminate manual card entry with biometric authentication (Face ID/Touch ID).
  • Enhanced Security: Benefit from Apple's tokenisation and liability shift protection.
  • Faster Checkout: 45% reduction in checkout time for Apple device users.
  • Increased Average Order Value: Potential 12% increase in transaction value.
  • Global Reach: Accept payments from customers in 70+ countries.

Before enabling Apple Pay, ensure you have:

  • Razorpay Standard Checkout with international payments feature enabled.
  • HTTPS-enabled website with TLS 1.2 or higher.
  • Access to your web server to upload verification files.
  • Registered business entity (non-profit organisations are not eligible).
  • Display the Apple Pay on your website in the payment methods section. Follow to display the Apple Pay brand mark to indicate support before checkout.

Follow the steps given below:

Step 1: Domain Registration and Verification

To enable Apple Pay on your website, follow the steps given below:

  1. Download the verification file.

    • Razorpay will provide you with the apple-developer-merchantid-domain-association file.
  2. Host the file on your server.

    • Upload the file to this exact path on your website:
    /.well-known/apple-developer-merchantid-domain-association
    • For example, if your domain is https://www.yourstorename.com, the file must be accessible at:
    https://www.yourstorename.com/.well-known/apple-developer-merchantid-domain-association
  3. Ensure correct configuration.

    When setting up Apple Pay domain verification, follow these requirements:

    File Path and Response

    • The verification file must be accessible at the exact path, /.well-known/apple-developer-merchantid-domain-association.
    • The file must return a direct HTTP 200 status code and not a 301, 302 or any 3xx redirects.
    • Apple does not support HTTP URL redirects for the domain association file.

    Server Configuration

    • The file must be served via HTTPS 1.1 protocol.
    • The HTTP response must return the file as a binary object, not as HTML or plain text.
    • Set the Content-Type header to application/octet-stream to indicate this is a binary file download.

    Network Access

    • Ensure the file is not behind a firewall or access restrictions.
    • If using a firewall, configure it to allow Apple's .
  4. Verify each domain separately.

    • Repeat this process for all domains and subdomains from where checkout is initiated with an overlay iframe.
    • This includes:
      • Top-level domains (For example, yourdomain.com)
      • Subdomains (For example, shop.yourdomain.com, checkout.yourdomain.com, us.yourdomain.com, uk.yourdomain.com and so on).
  5. Confirm with Razorpay.

    • Once files are uploaded, notify your account manager or contact our .
    • Razorpay will verify the setup and activate Apple Pay on your account.

Watch Out!

  • The file path must be exactly as specified (case-sensitive).
  • Each domain requires its own verification.
  • Domain verification must be completed before Apple Pay is activated.
  • File hosting is required on websites where Razorpay Checkout loads as an overlay/iframe. This includes:
    • WooCommerce, Magento and other ecommerce platforms where Razorpay appears as an overlay. Any website where checkout.razorpay.com iframe is embedded.
  • No file hosting required on:
  • File hosting is required if you use both hosted checkouts and overlay iframe integration (a non-Shopify website where an iframe loads as an overlay and Payment Buttons) on your business id. Please do not activate Apple Pay if you have both these kinds of checkouts unless you have hosted the file at the exact path.

Step 2: Accept Terms and Conditions

If you have uploaded the file or have not requested to opt out of Apple Pay, we will assume you are okay with

.

Step 3: Configuration (Automatic)

Once domain verification is complete and terms are accepted:

  • Apple Pay will automatically appear on your checkout when accessed by eligible customers.
  • No code changes are required for Standard Checkout integration.
  • The payment button displays dynamically based on device compatibility.

Given below is the payment flow for Apple Pay at Razorpay Checkout:

  1. The customer selects Apple Pay at checkout.
    Apply Pay on Checkout
  2. Apple Pay displays their default card, billing address and the payment amount.
  3. They authenticate using Face ID, Touch ID or double-click the side button following the on-screen prompt Double Click to Pay.
    Double click to Pay
  4. Upon successful authentication, the payment processes instantly and the customer is returned to your website or app with a confirmation.

1. Why is Apple Pay button not appearing on my checkout page?

If the Apple Pay button is not appearing, check for these common issues:

  • Verify that your domain verification file is correctly hosted and accessible.
  • Ensure your website is using HTTPS with proper TLS configuration.
  • Confirm that international payments feature is enabled.
  • Check if the customer's device supports Apple Pay.

2. Why is my Apple Pay domain verification failing?

Domain verification failures typically occur due to the following reasons:

  • The verification file must return an HTTP 200 status code (not 301 or 302 redirects).
  • The file path must be exactly /.well-known/apple-developer-merchantid-domain-association.
  • The file must be accessible via HTTPS (not HTTP).
  • The file content must exactly match what Razorpay provided, with no modifications or extra characters.

3. Do I need to make any code changes to support Apple Pay on Standard Checkout?

No code changes are required for Standard Checkout integration. Once domain verification is complete and Apple Pay is enabled on your account, it will automatically appear as a payment option for eligible customers.

4. What is the additional cost for accepting Apple Pay?

There are no additional charges for Apple Pay transactions. Standard Razorpay payment processing rates apply, same as regular card transactions.

5. Can customers save their Apple Pay details for future purchases?

Apple Pay uses device-specific tokens that are automatically available for repeat purchases. Customers do not need to manually save payment details as their Apple Wallet handles this seamlessly.

6. How do I identify an Apple Pay transaction in my system?

Apple Pay transactions can be identified by checking the payment notes field in the API response or webhook payload:

"notes": {
"provider": "apple_pay"
}

This provider field will always contain apple_pay for Apple Pay transactions, making it easy to distinguish them from regular card payments.

7. What is the difference between Apple Pay and card payment webhooks?

There are structural differences between Apple Pay and standard card payment webhook events:
Apple Pay Payment:

"notes": {
"provider": "apple_pay"
}

Card Payment:

"notes": [],
"token_id": "token_RIa2YPNM92wfzv"

Key differences:

  • Apple Pay includes provider: "apple_pay" in the notes field.
  • Card payments may include a token_id for saved cards.

Was this page helpful?


apple pay
standard integration
international payments
card payments