Apple Pay Push to Card
Implementing via Apple Pay API
-
Enable Apple Pay on your Coinflow account, which you can do one of two ways:
If you opt to go through Coinflow’s existing Apple Developer 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 that this file is accessible and you have been configured within our Apple Pay developer settings and your Coinflow merchant settings, Apple Pay will be enabled on your account.
If you opt to use your own Apple Developer Account: - Use this guide to Generate Apple Pay Certificates on your developer account.
- Once certificates have been generated, reach out to Coinflow with these certificates so that we can configure your Coinflow account to have access to interact with your Apple Pay merchant account.
- Request a site association file from Coinflow and make it publicly accessible at
-
You will then need to follow Apple Pay API implementation directly from the Apple Developer documentation, which you can find through this link.
-
For payouts through Apple Pay, after you have configured the SDK to display your Apple Pay button on your UI, you will specifically want to look through documentation on Apple Pay Disbursement API Requests . Here, Apple provides example source code for this specific request below:
-
In the above code, within the snippet of code that actually creates the Payment Request (under the comment “//Create PaymentRequest”), in place of
validateMerchant()you will call Coinflow’s Validate Apple Pay Merchant endpoint with your domain name and merchantID. -
Additionally, you will need to pass in the quote of the transaction into the Apple Pay SDK under paymentDetails as defined in the code above, with fees included from the Get Quote Coinflow endpoint.
-
-
You should receive an Apple Pay token object as a response from this code, which will look something like this:
- You will then use this token object, along with the collected billing data to create an Apple Pay disbursement transaction through Coinflow’s Create Transaction endpoint.

