Stripe Billing

Stripe Billing

Stripe Billing is Stripe's subscription and recurring revenue management module. Scripts embedded in checkout and account pages handle subscription lifecycle events, billing cycles, proration calculations, and payment retry logic. Stores session data and payment method tokens to support subscription management flows.

Overview

Stripe Billing manages the subscription and recurring payment lifecycle for SaaS businesses, membership sites, and any service with recurring charges. It handles subscription creation, billing cycle management, proration, usage-based metering, invoicing, and dunning (failed payment retry logic). Stripe Billing scripts appear on customer-facing pages where users manage their subscriptions, update payment methods, or view billing history.

What This Script Does

Stripe Billing integrates through the core Stripe.js library and Stripe's hosted billing portal.

  • Scripts loaded: js.stripe.com/v3/ — handles payment method tokenization, subscription checkout sessions, and the customer billing portal
  • Billing Portal: Stripe's hosted billing portal (billing.stripe.com) can be embedded or linked, allowing subscribers to update payment methods, switch plans, cancel subscriptions, and view invoice history without the merchant building a custom interface
  • Checkout Sessions: For new subscriptions, Stripe Billing can redirect to a Stripe-hosted checkout page that collects payment details, applies trial periods, and initiates the billing cycle
  • Cookies set:
    • __stripe_mid — First-party cookie (1-year expiry). Machine identifier for fraud detection.
    • __stripe_sid — First-party cookie (30-minute expiry). Session identifier for the current billing interaction.
  • Data transmitted: Subscription plan details, payment method tokens, billing cycle events, and customer identifiers are transmitted to Stripe's servers. Invoice and receipt data flows back to the merchant's application.
  • Webhooks: While not client-side, Stripe Billing sends server-to-server webhook events for subscription lifecycle changes (created, updated, canceled, payment failed), which the merchant's backend processes.

Consent & Compliance

Stripe Billing falls under the essential consent category.

Under GDPR and ePrivacy, Stripe Billing is strictly necessary for managing recurring payment relationships. The cookies serve fraud prevention and session management for payment interactions explicitly initiated by the subscriber. This falls under the ePrivacy Directive's exemption for cookies required by a service the user has requested. GDPR legal basis is Article 6(1)(b) — contract performance for the subscription agreement.

Under CCPA/CPRA, subscription and payment data processed by Stripe Billing is necessary for delivering the purchased service. Stripe acts as a service provider, and this processing does not constitute a "sale" or "sharing" of personal information.

Should You Block This Without Consent?

No. Stripe Billing is essential infrastructure for managing subscriptions and recurring payments. Blocking it would prevent subscribers from managing their accounts, updating payment methods, or completing subscription purchases. All cookies serve payment security, not advertising or analytics.

Visit website

Consent Categories

Essential

Also Known As

stripe billingstripe subscriptionsstripe recurringstripe invoicingstripe checkout billing

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Tracked Domains (1)

invoicestripe.comEssential

Frequently Asked Questions

Do I need consent to use Stripe Billing?

No. Stripe Billing is essential infrastructure for managing subscriptions and recurring payments. Its cookies serve payment security and session management for transactions explicitly initiated by subscribers, qualifying for the ePrivacy strictly necessary exemption. GDPR legal basis is contract performance for the subscription agreement.

What data does Stripe Billing collect?

Stripe Billing transmits subscription plan details, payment method tokens, billing cycle events, and customer identifiers to Stripe's servers. It sets __stripe_mid (1 year) and __stripe_sid (30 minutes) on stripe.com for fraud prevention. Billing portal functionality loads from billing.stripe.com.

How does ConsentStack manage Stripe Billing consent?

ConsentStack classifies Stripe Billing as essential and does not apply a consent gate. It is detected through js.stripe.com/v3/ and billing.stripe.com script loads. Blocking it would prevent subscribers from managing accounts or completing purchases, so ConsentStack allows it unconditionally.

Other Stripe Products

Related Vendors

Firebase
Firebase
Firebase is Google's mobile and web application development platform offering authentication, real-time database, cloud functions, and analytics. Web SDK scripts initialize Firebase services and may track app events via Firebase Analytics, which is powered by Google Analytics 4. Widely used in single-page apps and PWAs for backend infrastructure and usage tracking.
Google Fonts
Google Fonts
Google Fonts is a free font hosting service that serves hundreds of typeface families via a global CDN. Stylesheets and font files load from fonts.googleapis.com and fonts.gstatic.com to deliver web fonts to visitors. No advertising or tracking functionality is included.
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.
Google Tag Manager
Google Tag Manager
Google Tag Manager is a tag management system that lets marketers deploy and update analytics and marketing scripts without code changes. The GTM container script loads synchronously in the page head and injects configured tags, triggers, and variables on behalf of other vendors. No data collection of its own — acts as a loader for other scripts.
reCAPTCHA
reCAPTCHA
Google reCAPTCHA is a bot detection and spam prevention service protecting web forms, login pages, and checkout flows. Scripts analyze user behavior, mouse movements, and browser fingerprints to distinguish humans from bots. The invisible reCAPTCHA v3 scores interactions without requiring user challenges.
Sign in with Google
Sign in with Google
Sign in with Google is an OAuth-based authentication service that enables users to log into websites using their Google account credentials. Scripts load the Google Identity Services library, display sign-in buttons, and handle token exchange for secure authentication. Stores session tokens and authentication cookies to maintain login state across page visits.

Manage consent for Stripe Billing

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