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.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
apple-pay-gateway.apple.comEssentialapple-pay-gateway-cert.apple.comEssentialFrequently Asked Questions
Does Apple Pay require cookie consent?
No. Apple Pay is a payment service users explicitly invoke at checkout. GDPR Article 6(1)(b) covers payment processing under contract performance. No tracking cookies are set — all storage is transient and scoped to the active payment session. ePrivacy's strictly necessary exemption applies directly to payment transaction processing.
What does Apple Pay transmit during checkout?
The SDK contacts apple-pay-gateway.apple.com for merchant validation. Apple returns a payment token with a Device Account Number and dynamic security code — not the actual card number. The merchant never receives raw card data. No persistent cookies are written; session data clears after the transaction completes. No behavioral data is collected.
How does ConsentStack handle Apple Pay?
ConsentStack classifies Apple Pay as essential. Because it is a payment mechanism with no tracking or profiling functions, ConsentStack never blocks Apple Pay scripts regardless of consent state. The Apple Pay JS SDK loads from applepay.cdn-apple.com without restriction, keeping the checkout flow fully operational for all site visitors.
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.