Apple Pay for Web
Apple Pay Controller
Clearent-provided API Key
Successfully obtained Apple Pay merchant details.
Failed to retrieve merchant details from Apple.
Authorization is invalid. Check your api-key.
GET //rest/v2/apple/merchants HTTP/1.1
Host: gateway-sb.clearent.net
Accept: */*
{
"domainNames": "['example.com', 'example.org']",
"encryptTo": "merchant.com.clearent.applepay-dev",
"merchantUrl": "example.com",
"partnerInternalMerchantIdentifier": "000000843334",
"partnerMerchantName": "Bob's Canoes"
}
Clearent-provided API Key
Successfully obtained merchant's registered domains.
Authorization is invalid. Check your api-key.
Failed to retrieve registered domains for merchant.
GET //rest/v2/apple/merchants/domains HTTP/1.1
Host: gateway-sb.clearent.net
Accept: */*
{
"merchant-domains": [
{
"domain": "example.com",
"isEnabled": true,
"merchantId": "000000843334"
}
],
"payloadType": "text"
}
Clearent-provided API Key
List of Merchant domains to register or de-register with Apple Pay
["example.com", "example.org"]
Successfully registered merchant domain(s).
Failed to register merchant domain(s).
Authorization is invalid. Check your api-key.
POST //rest/v2/apple/merchants/domains HTTP/1.1
Host: gateway-sb.clearent.net
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"domainNames": "[\"example.com\", \"example.org\"]"
}
{
"merchant-domains": [
{
"domain": "example.com",
"isEnabled": true,
"merchantId": "000000843334"
}
],
"payloadType": "text"
}
Clearent-provided API Key
List of Merchant domains to register or de-register with Apple Pay
["example.com", "example.org"]
Successfully registered merchant domain(s).
Failed to unregister merchant domain(s).
Authorization is invalid. Check your api-key.
DELETE //rest/v2/apple/merchants/domains HTTP/1.1
Host: gateway-sb.clearent.net
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"domainNames": "[\"example.com\", \"example.org\"]"
}
{
"merchant-domains": [
{
"domain": "example.com",
"isEnabled": true,
"merchantId": "000000843334"
}
],
"payloadType": "text"
}
Clearent-provided Public Key
Merchant domain that is already registered with Apple Pay
example.com
Apple Pay 'initiative' parameter that varies by platform
web
Apple Pay environment-dependent URL for acquiring a merchant Apple Pay for Web session
https://apple-pay-gateway.apple.com/paymentservices/startSession
Successfully obtained Apple Pay session from Apple.
Failed to get Apple Pay session from Apple.
Authorization is invalid. Check your public-key.
POST //rest/v2/apple/merchants/validation HTTP/1.1
Host: gateway-sb.clearent.net
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"domain": "example.com",
"initiatedFrom": "web",
"validationURL": "https://apple-pay-gateway.apple.com/paymentservices/startSession"
}
{
"merchantSession": "text",
"payloadType": "text"
}
Was this helpful?