Apple Pay For Web
Validate a registered merchant domain and returns an Apple Pay merchant session for initiating Apple Pay web transactions.
A public API key issued to you by Xplor Pay.
The Apple Pay initiative value based on the platform.
webThe Apple Pay URL used to request a merchant validation session.
https://apple-pay-gateway.apple.com/paymentservices/startSessionThe merchant domain registered with Apple Pay.
example.comSuccessfully obtained Apple Pay session from Apple.
The merchant session returned by Apple to process an Apple Pay for Web transaction.
textThe type of payload returned in the response.
apple-merchant-sessionFailed to get Apple Pay session from Apple.
Authorization is invalid. Check your public-key.
POST /rest/v2/apple/merchants/validation HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"initiatedFrom": "web",
"validationURL": "https://apple-pay-gateway.apple.com/paymentservices/startSession",
"domain": "example.com"
}{
"merchantSession": "text",
"payloadType": "apple-merchant-session"
}Retrieve the list of domains currently registered and enabled for Apple Pay web transactions for the merchant.
An access API key issued to you by Xplor Pay.
Successfully obtained merchant's registered domains.
payload
The type of payload returned in the response.
merchant-domainsAuthorization is invalid. Check your api-key.
Failed to retrieve registered domains for merchant.
GET /rest/v2/apple/merchants/domains HTTP/1.1
Accept: */*
{
"merchant-domains": [
{
"merchantId": "000000843334",
"domain": "example.com",
"isEnabled": true
}
],
"payloadType": "merchant-domains"
}Register one or more merchant domains for Apple Pay web transactions.
An access API key issued to you by Xplor Pay.
Request Body
The list of merchant domains to register or deregister for Apple Pay web transactions.
["example.com","example.org"]Successfully registered merchant domain(s).
payload
The type of payload returned in the response.
merchant-domainsFailed to register merchant domain(s).
Authorization is invalid. Check your api-key.
POST /rest/v2/apple/merchants/domains HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"domainNames": [
"example.com",
"example.org"
]
}{
"merchant-domains": [
{
"merchantId": "000000843334",
"domain": "example.com",
"isEnabled": true
}
],
"payloadType": "merchant-domains"
}Remove or deregister one or more merchant domains from Apple Pay web transactions.
An access API key issued to you by Xplor Pay.
Request Body
The list of merchant domains to register or deregister for Apple Pay web transactions.
["example.com","example.org"]Successfully de-registered merchant domain(s).
payload
The type of payload returned in the response.
merchant-domainsFailed to unregister merchant domain(s).
Authorization is invalid. Check your api-key.
DELETE /rest/v2/apple/merchants/domains HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"domainNames": [
"example.com",
"example.org"
]
}{
"merchant-domains": [
{
"merchantId": "000000843334",
"domain": "example.com",
"isEnabled": true
}
],
"payloadType": "merchant-domains"
}Retrieve the details for merchants registered with Apple Pay for web-based transactions.
An access API key issued to you by Xplor Pay.
Successfully obtained Apple Pay merchant details.
Details returned for an Apple Pay merchant
The domain names registered for Apple Pay web transactions.
['example.com', 'example.org']The Apple Pay encryption destination identifier for the merchant.
merchant.com.clearent.applepay-devThe primary domain associated with the Apple Pay merchant.
example.comThe internal identifier assigned to the merchant.
000000843334The registered merchant name used for Apple Pay transactions.
Bob's CanoesFailed to retrieve merchant details from Apple.
Authorization is invalid. Check your api-key.
GET /rest/v2/apple/merchants HTTP/1.1
Accept: */*
{
"domainNames": "['example.com', 'example.org']",
"encryptTo": "merchant.com.clearent.applepay-dev",
"merchantUrl": "example.com",
"partnerInternalMerchantIdentifier": "000000843334",
"partnerMerchantName": "Bob's Canoes"
}Last updated
Was this helpful?

