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

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

Adyen
Adyen
Adyen embeds hosted payment components on merchant checkout pages. Scripts render card input fields, handle 3D Secure authentication flows, and process payment tokenization, enabling secure card-not-present transactions on e-commerce checkouts.
Dun & Bradstreet
Dun & Bradstreet
Dun & Bradstreet scripts run on B2B websites to identify company visitors using IP-to-company matching. Collected data enriches visitor records with firmographic attributes such as company name, industry, and revenue for lead scoring and intent analysis.
Infobip
Infobip
Infobip is a global communications platform for SMS, email, voice, and chat. While primarily a backend API for message delivery, it may embed web chat widgets on customer support pages enabling real-time visitor communication and support workflows.
AB Tasty
AB Tasty
A/B testing and personalization platform used by e-commerce and marketing teams to run conversion experiments. The AB Tasty script fetches experiment configurations on page load and injects CSS and DOM modifications to show test variants. Tracks user interactions and conversion events to determine which variants perform better.
Narvar
Narvar
Narvar embeds post-purchase experience interfaces on retailer websites. Scripts power order tracking pages, delivery status notifications, and return initiation flows, collecting shipment data and handling customer interactions after purchase.
Cvent
Cvent
Cvent embeds event registration forms, RSVP flows, and attendee management interfaces on event and corporate websites. Scripts collect registrant information, manage session selections, and process event payments for conferences and meetings.

Manage consent for Afterpay

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