Overview
Apple Pay enables secure, tokenized payment processing directly within web browsers. It appears on e-commerce websites as an alternative checkout method, allowing customers to authorize purchases using Face ID, Touch ID, or device passcode without exposing their actual card numbers to the merchant. Apple Pay on the web is supported in Safari and other browsers that implement the Payment Request API with Apple Pay support.
What This Script Does
Apple Pay integration loads the Apple Pay JS SDK from apple-pay-gateway.apple.com and related Apple domains. The SDK renders the Apple Pay button (the distinctive black button with the Apple logo) and handles the entire payment sheet lifecycle.
When a user taps the Apple Pay button, the SDK invokes the browser's native payment sheet. This sheet runs in a secure, sandboxed context controlled by the operating system — the merchant's JavaScript cannot access the payment sheet contents. The flow works as follows:
- The merchant's script creates an
ApplePaySessionwith supported payment networks, merchant capabilities, and transaction details. - Apple's servers validate the merchant identity via a merchant validation URL.
- The user authenticates with Face ID, Touch ID, or passcode on their device.
- Apple returns a payment token containing a Device Account Number (DAN) and a dynamic security code — not the actual card number.
- The merchant forwards this token to their payment processor for settlement.
Apple Pay does not set tracking cookies. It does not collect browsing behavior, build user profiles, or share data with advertising networks. The only network requests are to Apple's payment gateway for merchant validation and token generation. Session data is ephemeral and scoped to the active payment transaction.
The apple-pay-gateway.apple.com and apple-pay-gateway-nc-pod*.apple.com domains are contacted during the merchant validation handshake. No persistent storage is written to the browser beyond what the merchant's own checkout flow requires.
Consent & Compliance
Apple Pay is classified as essential. It is a payment processing mechanism — a core website function that users explicitly invoke when they choose to pay.
Under the GDPR, payment processing has a clear legal basis: contract performance (Article 6(1)(b)). The user is initiating a purchase, and processing their payment data is necessary to fulfill that contract. No consent banner is required for the Apple Pay scripts themselves.
Under the ePrivacy Directive, Apple Pay qualifies for the strictly necessary exemption. The scripts and any transient storage are required to provide a service explicitly requested by the user (completing a payment). Article 5(3) does not require consent for such access.
Under CCPA/CPRA, Apple Pay does not sell or share personal information. Apple acts as a payment intermediary, and the tokenized transaction data is used solely for payment processing. Apple's privacy architecture specifically prevents merchants from receiving the user's actual card details.
Should You Block This Without Consent?
No. Apple Pay is a payment processing service that users explicitly invoke. Its scripts are strictly necessary for completing transactions and do not perform any tracking, profiling, or advertising. Blocking Apple Pay behind a consent wall would prevent customers from completing purchases, which is both a usability failure and unnecessary from a privacy standpoint.
Is Apple Pay GDPR compliant?
Apple Pay's trackers are classified as essential (strictly necessary), so they are generally exempt from prior consent under the GDPR. You should still list them in your cookie policy and privacy notice so visitors know they are there.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
apple-pay-gateway.apple.comEssentialapple-pay-gateway.apple.com is an essential domain operated by Apple Pay, used to keep the site working, including security, load balancing, and sessions.
apple-pay-gateway-cert.apple.comEssentialapple-pay-gateway-cert.apple.com is an essential domain operated by Apple Pay, used to keep the site working, including security, load balancing, and sessions.
Frequently Asked Questions
Other Apple Products
Related Vendors
Manage consent for Apple Pay
ConsentStack automatically detects and manages Apple Pay trackers so your site stays compliant with global privacy regulations.