Overview
Afterpay (known as Clearpay in the UK and parts of Europe) is a buy-now-pay-later service owned by Block, Inc. (formerly Square). It allows consumers to split purchases into four interest-free installments. Afterpay's web integration surfaces installment messaging on product pages and provides a checkout flow for consumers to apply for and use Afterpay as a payment method, competing with services like Klarna, Affirm, and Zip.
What This Script Does
Afterpay's JavaScript library loads from js.afterpay.com (or js.squarecdn.com) and renders two primary components: an informational widget on product pages showing installment pricing (e.g., "4 payments of $25.00"), and the checkout integration that initiates the Afterpay payment flow.
The product page widget is lightweight — it reads the product price from the page and displays the installment breakdown. It does not set cookies or collect personal data. It makes requests to Afterpay's API to check merchant eligibility and retrieve configuration such as minimum and maximum order values.
When a customer selects Afterpay at checkout, the script initiates an authentication flow that opens an Afterpay-hosted popup or redirect. The customer logs into their Afterpay account, reviews the installment schedule, and confirms the payment. A session token cookie is set during this flow to maintain checkout state. Once approved, a payment token is returned to the merchant's page for order completion.
The checkout flow transmits order details (amount, currency, item descriptions) to Afterpay's servers. Consumer identity verification and credit assessment happen entirely within Afterpay's hosted environment, not on the merchant page.
Consent & Compliance
Afterpay is classified as functional. It provides a payment method option within the checkout process, serving the same role as credit card processing or PayPal integration.
Under GDPR and the ePrivacy Directive, the product page widget displaying installment pricing is informational and does not require consent. The checkout-phase cookies are strictly necessary for completing a payment transaction the user has initiated, falling under the consent exemption for essential service delivery.
Under CCPA/CPRA, Afterpay processes transaction data to fulfill its role as a payment provider. The data shared between the merchant and Afterpay for payment processing is a service provider relationship, not a "sale" of personal information. Standard privacy policy disclosure is required.
Should You Block This Without Consent?
No. Afterpay provides functional payment processing services. The product page widget is informational and non-tracking. The checkout integration is initiated by the customer and processes only transaction-related data. Blocking Afterpay would remove a payment option from the checkout experience.
Is Afterpay GDPR compliant?
Afterpay typically loads functional trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Afterpay can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Afterpay, not on Afterpay itself.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
afterpay.comFunctionalafterpay.com is a functional domain operated by Afterpay, used to run site features like chat, video, embeds, and preferences.
Cookies Afterpay Sets (1)
afterpay-trackingAfterpay visitor identifier for BNPL conversion attribution.
Frequently Asked Questions
Related Vendors
Manage consent for Afterpay
ConsentStack automatically detects and manages Afterpay trackers so your site stays compliant with global privacy regulations.