Advantages
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.
Prerequisites
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 brand mark on your website in the payment methods section. Follow Apple’s official marketing guidelines to display the Apple Pay brand mark to indicate support before checkout.
Integrate Apple Pay on Standard Checkout
Follow the steps given below:Step 1: Domain Registration and Verification
Step 1: Domain Registration and Verification
Domain Verification Process:
- Download the verification file.
-
Host the file on your server.
- Upload the file to this exact path on your website:
- For example, if your domain is
https://www.yourstorename.com, the file must be accessible at:
-
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.
- The verification file must be accessible at the exact path,
- The file must be served via HTTPS 1.1 protocol.
- The file must have Content-Type: text/plain in the header.
- The file must be externally accessible (not behind authentication).
- The file must not be password protected.
- The file must not be behind a proxy or redirect.
- Ensure the file is not behind a firewall or access restrictions.
- If using a firewall, configure it to allow Apple’s IP addresses.
- Dashboard Configuration and Verification
- Log in to the Dashboard and navigate to Account & Settings → International payments (under Payment methods). Click Apple Pay.
- Log in to the Dashboard and navigate to Account & Settings → International payments (under Payment methods). Click Apple Pay.
- You will see a list of domains associated with your business account:
- Verified domains: Ready for Apple Pay.
- Unverified domains: Require file hosting and verification.
- Click Verify domains for any unverified domains.
- Domain status will change to “Verified” once file hosting is correctly configured.
Step 2: Accept Terms and Conditions
Step 2: Accept Terms and Conditions
Step 3: Configuration (Automatic)
Step 3: Configuration (Automatic)
- 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.
Payment Flow For Customers
Given below is the payment flow for Apple Pay at Razorpay Checkout:- The customer selects Apple Pay at checkout.
- Apple Pay displays their default card, billing address and the payment amount.
- They authenticate using Face ID, Touch ID or double-click the side button following the on-screen prompt Double Click to Pay.
- Upon successful authentication, the payment processes instantly and the customer is returned to your website or app with a confirmation.
- For shoppers on Safari 17 later: add the
allowattribute to the iframe to let the iframe communicate correctly with Apple Pay APIs:<iframe allow="payment"> </iframe> - Safari 17 is available on iOS 17 and later, and macOS 12 and later.
- For shoppers on Safari 16 or earlier: match the iframe origin and your top-level origin. The protocols, hosts (full domain name), and ports, when specified, must be the same for both pages.
Frequently Asked Questions
Why is my Apple Pay domain verification failing?
Why is my Apple Pay domain verification failing?
- 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.
Do I need to make any code changes to support Apple Pay on Standard Checkout?
Do I need to make any code changes to support Apple Pay on Standard Checkout?
What is the additional cost for accepting Apple Pay?
What is the additional cost for accepting Apple Pay?
Can customers save their Apple Pay details for future purchases?
Can customers save their Apple Pay details for future purchases?
How do I identify an Apple Pay transaction in my system?
How do I identify an Apple Pay transaction in my system?
notes field in the API response or webhook payload:provider field will always contain apple_pay for Apple Pay transactions, making it easy to distinguish them from regular card payments.What is the difference between Apple Pay and card payment webhooks?
What is the difference between Apple Pay and card payment webhooks?
Apple Pay Payment:
- Apple Pay includes
provider: "apple_pay"in thenotesfield. - Card payments may include a
token_idfor saved cards.
I am not able to verify my URL via the self-serve dashboard. What should I do?
I am not able to verify my URL via the self-serve dashboard. What should I do?
https://www.yourstorename.com/.well-known/apple-developer-merchantid-domain-association.Follow the Apple Pay documentation and ensure the file is publicly accessible.How do I check if Apple Pay is active on my checkout?
How do I check if Apple Pay is active on my checkout?
- Open Safari in incognito mode on an iPhone with Apple Pay configured.
- Visit your checkout page.
- Apple Pay should appear at the top of payment options and under the cards menu.
- Use Safari on macOS with Apple Pay configured.
- Ensure you are signed into your Apple account.
- Apple Pay will be visible if you have cards linked to your Apple account.
Will Apple Pay work in test mode?
Will Apple Pay work in test mode?
I cannot see Apple Pay on desktop. What should I do?
I cannot see Apple Pay on desktop. What should I do?
- Customer must have Apple Pay cards linked to their Apple account.
- User must be signed into their Apple account on their macOS device.
- If the transaction is initiated in a non-INR currency.