Challenge
Founded in San Francisco in 2020, PostHog launched with free, self-hosted software that helps developers build successful products in one place. As the company began monetizing its product, it needed flexible payment and billing infrastructure that was easy to implement and could support a variety of payment methods and pricing models without requiring heavy engineering support.
In addition to offering a hosted payment page, PostHog wanted to build an in-platform checkout directly into its onboarding flow to streamline the experience and increase conversion from free to paid plans.
“We wanted to keep users in the onboarding flow because upgrades often happen during that process, which is a multistep, fairly complex process. Taking a user out of that mode wasn’t an ideal experience,” said Pawel Cebula, a product engineer for billing at PostHog.
With its monetization model becoming more sophisticated, the company also needed a billing and invoicing solution that would allow it to test and support a range of pricing models. As the business grew, PostHog wanted payment processing capabilities that would support expansion into multiple markets.
In addition, PostHog aimed to future-proof its business by making its platform fully accessible to AI agents, so it needed an API-first payment solution that would support agentic buying. The company was exploring headless commerce use cases, including white-labeled products and agentic buying—meaning it needed an API-first solution.
Solution
PostHog chose to build its payment and billing infrastructure on Stripe for its developer experience, flexibility, and commitment to innovation. The company initially implemented Stripe’s Optimized Checkout Suite, which includes embeddable UI elements through Stripe Checkout, local payment methods, and Link, a digital wallet built by Stripe that enables customers to check out faster with their preferred payment method. The suite’s built-in AI models customize each individual checkout to maximize conversion, while Adaptive Pricing automatically displays prices in the customer’s local currency.
In mid-2025, PostHog added an embedded checkout to increase conversion as developers upgraded from free to paid. It built the checkout using the payment element, a UI component for collecting payment details and displaying relevant payment methods. PostHog enabled payments by card, bank transfer, and digital wallets including Apple Pay, Google Pay, and Link.
PostHog also adopted Stripe’s Authorization Boost to recover revenue lost to false declines and expired cards. Authorization Boost combines Adaptive Acceptance, card account updater, and network tokens to improve acceptance for recurring and card-on-file payments.
The company used Stripe Billing to test as many as four concurrent pricing models, including usage-based, annual, monthly with add-ons, and seat-based, with 18 different subscription items. With Billing, PostHog offloads the complexity of midcycle updates, downgrades, and prorated calculations of unused time or tokens. PostHog also uses Stripe Invoicing for complex billing use cases and enterprise customers.
In 2026, PostHog became a launch partner for Stripe Projects to open access to new sales channels, including AI agents. Projects allows developers and their agents to provision services, generate and store credentials, and manage usage and billing from the command-line interface in just a few steps. Today, PostHog offers 12 services through Projects, including product analytics, session replay, and feature flags, all integrated with its existing payment and billing infrastructure.
Results
41% of PostHog’s revenue flows through in-platform checkout
By embedding checkout directly into its onboarding experience, PostHog created a more seamless upgrade path and captured more revenue from users moving to paid plans. A year after launching, 41% of PostHog’s revenue is processed through its in-product checkout built with the payment element.
With 99% of its customers paying through Stripe, PostHog has experienced rapid growth, reaching a recent valuation of $1.4 billion.
More than a third of PostHog customers choose Link
While PostHog customers use a variety of payment options, 36% of those customers use Link for its convenience and speed, helping PostHog maximize conversion and drive revenue. This streamlined checkout option in PostHog’s platform removes payment friction and makes it easy for users to upgrade.
PostHog recovers $600K in revenue with Authorization Boost
Since enabling Authorization Boost, PostHog has increased payment acceptance by 2.2%, helping recover revenue that otherwise would have been lost to false declines or expired cards. In the past 12 months alone, the company recovered 2,600 payments totaling over $600,000.
Subscription model testing supports pricing agility
Stripe Billing and Invoicing have saved PostHog time and allowed the team to focus engineering efforts on product development and revenue growth rather than billing infrastructure. The ability to experiment with different subscription models has also helped the company adapt to changes in LLM costs and identify profitable pricing strategies, while keeping headcount at just two billing engineers.
“Beyond the ease of getting started, we love the flexibility Stripe offers across different pricing models. That was the reason why we picked Stripe from day one,” said Cebula.
PostHog limits outstanding A/R, with a median invoice payment time of less than a day
With Stripe Invoicing, PostHog sends 50,000 invoices each month and enjoys a 98.22% invoice payment rate. The median payment time was 13.8 hours—effectively immediate—limiting its outstanding A/R and giving PostHog a healthy cash flow.
PostHog develops a new revenue stream with Projects
Offering services through Projects has opened up an entirely new revenue stream for PostHog. As developers use AI agents to design apps and websites, PostHog helps them take the next step and deploy it with analytics and other development tools.
“Stripe Projects makes it even easier for agents to set up with PostHog,” said Cebula. “Previously, you could install PostHog without visiting our website, but you still had to sign up and enter payment details manually. Projects removes that bottleneck, so now the entire experience can be headless.”
PostHog has witnessed over 200 headless sign-ups in the past few months, including agent-driven sign-ups.
Looking ahead, PostHog expects to continue using Stripe’s infrastructure to add international payment methods and expand into new forms of agentic commerce.
Stripe’s APIs and developer experience are exceptional, not just within billing and payments, but across the broader startup and technology ecosystem. PostHog operates in a complex domain, and Stripe makes it much easier to iterate.