Affirm

Affirm

Affirm embeds buy-now-pay-later payment options on product and checkout pages. Scripts display monthly installment widgets, initiate financing applications, and integrate with merchant checkout flows to offer consumer lending at point of sale.

Overview

Affirm is a buy-now-pay-later (BNPL) financial services provider that integrates directly into e-commerce checkout flows. The platform allows consumers to split purchases into monthly installment payments, with credit decisions made in real time at the point of sale. Affirm's on-site presence includes promotional messaging widgets on product pages and a financing application flow embedded in the checkout process.

What This Script Does

Affirm's scripts load from cdn1.affirm.com and related domains. The SDK renders two primary components: promotional messaging widgets that display estimated monthly payment amounts on product and category pages (e.g., "as low as $X/mo with Affirm"), and the checkout integration that initiates the financing application when a customer selects Affirm as their payment method. Cookies set by the SDK include session identifiers for maintaining the financing application state, device fingerprinting tokens used for fraud prevention during credit decisions, and attribution cookies that track the customer's path from promotional messaging to checkout selection. The affirm_session cookie typically persists for the browsing session, while fraud prevention identifiers may persist for up to 90 days.

Checkout Flow

When a customer initiates an Affirm financing application, the scripts open a modal or redirect to Affirm's hosted application page where the credit decision is made. The integration communicates loan terms, approval status, and virtual card details back to the merchant's checkout system via API callbacks. This checkout-level integration is essential for completing purchases using Affirm financing.

Consent & Compliance

Affirm scripts are classified as functional. The promotional messaging widgets and checkout integration serve a direct transactional purpose — they are part of the payment options offered by the merchant. Under GDPR and the ePrivacy Directive, cookies that are strictly necessary for a payment service requested by the user are exempt from consent requirements. The session cookies and fraud prevention tokens used during the financing application qualify under this exemption. However, the promotional messaging widgets displayed before the customer has expressed intent to use Affirm operate in a gray area — they promote a financial product but are also informational about available payment options. Under CCPA/CPRA, the financial data processed during Affirm's credit application falls under GLBA exemptions for financial transactions.

Should You Block This Without Consent?

No. Affirm's scripts provide a payment method integration that is part of the merchant's checkout offering. Blocking Affirm would prevent customers from accessing an available payment option and completing purchases via installment financing. The cookies set during the financing flow are functionally necessary for the payment service. The promotional messaging widgets on product pages, while technically optional, are standard payment method disclosures similar to displaying accepted credit card logos.

Is Affirm GDPR compliant?

Affirm 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 Affirm 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 Affirm, not on Affirm itself.

Visit website

Consent Categories

Also Known As

Affirm BNPLAffirm financingAffirm installmentsAffirm checkoutbuy now pay later Affirm

Industries

Finance

Tracked Domains (2)

affirm.comFunctional

affirm.com is a functional domain operated by Affirm, used to run site features like chat, video, embeds, and preferences.

cdn1.affirm.comFunctional

cdn1.affirm.com is a functional domain operated by Affirm, used to run site features like chat, video, embeds, and preferences.

Cookies Affirm Sets (1)

affirm-checkout-token

Affirm checkout session token to resume an in-progress BNPL application.

Frequently Asked Questions

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.
Wise
Wise
Wise embeds international money transfer widgets and multi-currency payment flows on partner websites. Scripts load during send-money transactions and may collect payment intent data, exchange rate selections, and user session information.
ClickUp
ClickUp
ClickUp is a project management platform primarily used as a SaaS application. When embedded on external websites, scripts may load intake forms, task submission widgets, or project status portals for customer-facing workflows.
Ecwid
Ecwid
Ecwid embeds a shopping cart and checkout widget into existing websites. Scripts load product catalogs, manage cart state, and process checkout flows, enabling e-commerce functionality on non-native storefronts.
Drift
Drift
Conversational marketing platform that embeds an AI-powered live chat and chatbot widget. The Drift script loads a persistent chat bubble that identifies returning visitors, routes them to the right sales rep, and triggers automated conversation flows based on behavioral rules. Sets cookies to recognize known contacts across sessions.
PrestaShop
PrestaShop
PrestaShop powers open-source e-commerce storefronts. Scripts manage shopping cart state, checkout flows, and product catalog interactions on PrestaShop-hosted stores, while integrating third-party analytics and marketing tools.

Manage consent for Affirm

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