Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

Anchor
Register-Domain
Register-Domain
Register Domain

POST /pay/v1/applepay/domains

Headers

Content-Typestring
Content type.

Authorizationstring
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

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

Response

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

Anchor
get-domains
get-domains
Get registered domains

POST /pay/v1/applepay/domains

Headers

Content-Typestring
Content type.

Authorizationstring
Access token generated from create token request.

Response

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