How To: Implement Apple Pay
Overview
Apple Pay is a mobile payment service by Apple Inc. that enables users to make payments in person, within iOS apps, and on the web. For users on iOS versions below 18, Apple Pay is supported on iPhone, iPad, and Mac. However, starting from iOS 18+, Apple Pay is supported across all browsers.
Apple Pay is seamlessly integrated into the CoinflowPurchase component, so there’s no separate setup required if you’re using Coinflow’s pre-built UI. For merchants implementing checkout via API, you can skip to the Implementation section below to learn how to add Apple Pay to your application.
🚧 Apple Pay Via Coinflow works only on Safari >v17 which was released with IOS 17 and MacOS v14 (Sonoma).
Implementation
-
Please upgrade
@coinflowlabs/reactv2.6.0 or higher -
To enable Apple Pay on your Coinflow account: Request a site association file from Coinflow and make it publicly accessible at
https\://yourDomain.com\/.well-known/apple-developer-merchantid-domain-association.txt -
Once verified by the Coinflow team, Apple Pay will be enabled on your account. In the prebuilt UI, Apple Pay will automatically appear in the purchase options.
-
The following component will render the Apple Pay button. Please follow this recipe to learn how to add a dynamic height handler:
Payers with walletsPayers without wallets🚧 Apple Pay is not available for the following types of businesses:
- Tobacco, marijuana, or vaping products
- Firearms, weapons, or ammunition
- Illegal drugs or non-legally prescribed controlled substances
- Pornography
- Personal fundraising or collections of non-profit donations unless approved by Apple
Testing Apple Pay
When testing Apple Pay on sandbox, you will need to use a real credit card. Coinflow will NOT charge your card.
Troubleshooting
- Why is the Apple pay button not showing on safari?
- Get confirmation from the Coinflow team that your domain has been verified on apple.
- If you’ve added the Coinflow checkout modal to an iframe, add an allow attribute. This specifies a payment permissions policy for the iframe.
- Why am i getting the error
mywebsite.com is not registered for apple pay- Ensure you’ve added the provided site association file from Coinflow and have received confirmation that your domain has been verified. If you aren’t sure what this means, please contact Coinflow’s support.
- If you are passing the
originsfield with multiple urls, the last item in the array must be the top level domain name.

