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.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
afterpay.comFunctionalFrequently Asked Questions
Does Afterpay require consent before loading on a product or checkout page?
No. Afterpay provides functional payment processing services. The product page installment widget is informational and sets no cookies or personal data. The checkout-phase session token is strictly necessary for completing a payment transaction initiated by the customer and qualifies for the consent exemption under GDPR and ePrivacy.
What does the Afterpay script do on product and checkout pages?
Afterpay loads from js.afterpay.com and renders two components: a lightweight product page widget showing installment pricing that sets no cookies, and a checkout integration opening an Afterpay-hosted payment flow. A session token cookie is set only during customer-initiated checkout to maintain transaction state until completion.
How does ConsentStack treat Afterpay on an e-commerce site?
ConsentStack classifies Afterpay as functional and does not block it. The product page widget is non-tracking, while the checkout integration is strictly necessary for the payment service. ConsentStack ensures Afterpay loads freely so customers can access installment payment options without a consent barrier interrupting checkout.
Related Vendors
Manage consent for Afterpay
ConsentStack automatically detects and manages Afterpay trackers so your site stays compliant with global privacy regulations.