/
Domain Verification for Apple Pay

Domain Verification for Apple Pay

To be able to accept payments through on Apple Pay on your site, merchants will need to upload this domain verification file (DVF).

Step 1

Download the DVF and upload it to your domain at this exact location:

https://{Your domain}/.well-known/apple-developer-merchantid-domain-association

Ensure that this page is publicly accessible.

Step 2

Send a request to register to your domain for Apple Pay through Blink using the request below:

Register Domain

POST /pay/v1/applepay/domains

Headers

Content-Type string
Content type.

Authorization string
Access token generated from create token request.

 

Attributes

domain_name string
The domain being registered. Should be in the following format:
https://{Your domain}

Request

POST https://secure.blinkpayment.co.uk/api/pay/v1/applepay/domains HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "domain_name": "https://demo.com" }

Response

HTTP/1.1 200 OK Content-Type: application/json { "success": "true", "message": "https://demo.com has been successfully registered with Apple Pay." }

Get registered domains

POST /pay/v1/applepay/domains

Headers

Content-Type string
Content type.

Authorization string
Access token generated from create token request.

Response

HTTP/1.1 200 OK Content-Type: application/json [ "demo.com" ]