Afterpay

Afterpay

Afterpay embeds buy-now-pay-later installment payment options on e-commerce product and checkout pages. Scripts display eligibility widgets, initiate payment plan flows, and integrate with merchant checkout to offer interest-free installment payments.

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.

Visit website

Consent Categories

Functional

Also Known As

Afterpay BNPLAfterpay installmentsSquare Afterpaybuy now pay laterAfterpay widget

Industries

Finance

Tracked Domains (1)

afterpay.comFunctional

Frequently 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

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for Afterpay

ConsentStack automatically detects and manages Afterpay trackers so your site stays compliant with global privacy regulations.