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:
https\://yourDomain.com\/.well-known/apple-developer-merchantid-domain-association.txt.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: