← Back to blog
Engineering

PSP integration patterns for AI billing systems

Ben Foster
By Ben Foster·Founder

Ben has built fintech products and scaled technology teams from an early stage through to unicorn. He was previously VP Engineering at TrueLayer and SVP Engineering at Checkout.com.

On this page

Integrating an AI usage-based billing platform with a PSP typically follows one of five integration patterns. These patterns vary by vendor and billing architecture: bring-your-own-Stripe, embedded Stripe, native multi-PSP connectors, fully managed and bundled, and modular hybrid. The right pattern depends less on architecture preference than on the PSP a team already operates and the billing guarantees the product needs. This article maps all five and shows how to choose.

How does PSP integration shape AI billing decisions?

PSP integration shapes AI billing decisions because teams typically arrive at the billing-platform question with a payment relationship already in place. The choice is rarely "which platform has the best metering"; it is "which integration pattern fits my Stripe, Adyen, or PayPal account and the billing guarantees my product needs."

Most articles on this topic assume the team is on Stripe and frame the rest as a build-vs-buy decision. In practice, teams come from all kinds of payment infrastructure. Some are already on Stripe and want to keep dashboard control. Others run on Adyen, Checkout.com, or GoCardless; sit behind a Merchant of Record; or have not picked a PSP yet.

The integration pattern they choose has real consequences for setup time, lock-in, and what they would have to migrate if they outgrow it.

The architecture lens matters before the pattern lens. Usage-based billing platforms split into two architectures: traditional invoice-based and real-time. Traditional invoice-based platforms (Orb, Lago, and pre-acquisition Metronome) capture usage events through a metering layer and reconcile them into an invoice at cycle end. Real-time billing platforms (Credyt, Stigg as an orchestration layer) collapse usage capture, pricing, and wallet debit into one atomic operation; balance is the source of truth, updated as events arrive.

Stripe Billing sits in a third adjacent category: subscription-first with metered add-ons. Flexprice is hybrid, with invoice-based primary and a wallet option. These categories matter because they determine what a platform can actually guarantee, not just what shows up on its feature page.

The architecture also defines the post-usage invoicing vs real-time billing trade-off that determines whether financial exposure lands inside or outside the billing cycle. AI inference consumes real compute per request, with costs that vary by model, context length, and task complexity; end-of-cycle reconciliation can leave the platform exposed when costs hit before invoicing settles. For a deeper walk-through of how Stripe Billing handles usage today, see the companion piece on how Stripe's usage-based billing actually works. The rest of this article assumes that mechanical context and turns to where each platform fits.

Five PSP integration patterns for AI billing

The five patterns are bring-your-own-Stripe, embedded Stripe, bring-your-own-PSP via native connectors, fully managed and tightly bundled, and modular hybrid. Each pattern names a different way an AI billing platform connects to the team's payment infrastructure, and each maps to specific vendors with specific billing architectures.

In our conversations with Q1 2026 AI teams, the most common architectural confusion is that all usage-based billing platforms sound interchangeable on a feature page. They are not. The integration pattern and the underlying billing architecture together determine what a platform can do for the team's actual stack. Each pattern below follows the same structure: explanation, who it fits, benefits, trade-offs, setup complexity, and the providers operating in that pattern.

Pattern 1: Bring your own Stripe account

You connect your existing Stripe account to the billing platform, typically by providing an API key or authorizing access via Stripe Connect. The billing platform handles metering, pricing logic, and invoicing; payment collection runs through your Stripe account directly.

Best fit: teams already on Stripe who want to keep full visibility into their Stripe dashboard and maintain direct control over the PSP relationship. Especially useful when existing Stripe configurations like webhooks, tax settings, and saved payment methods are not worth rebuilding.

Benefits include retained dashboard access, no card data passing through the billing vendor, and easier auditing because payment and billing records can be cross-referenced directly. Trade-offs: more integration work (webhooks, idempotency, sync), the PSP is locked to Stripe, and most platforms in this pattern are invoice-based. Setup complexity is medium: API key handoff, webhook configuration, and testing the payment-to-billing sync.

PlatformArchitectureNotes
LagoInvoice-basedOpen source; can self-host or use cloud
OrbInvoice-based$25M Series B (2024); event-stream architecture
MetronomeInvoice-basedPre-acquisition supported PSP-agnostic deployment; post-January 2026 in the Stripe ecosystem (see Pattern 4)

Pattern 2: Embedded Stripe (billing platform manages the account)

The billing platform orchestrates a Stripe Connect account on your behalf. There are two meaningful sub-patterns.

In the transparent embedded model, the team's Stripe account remains the merchant of record. Dashboard access stays with the team, and transactions are visible in Stripe directly. In Stripe Connect terms, this typically maps to direct charges, where the connected account appears on the customer's bank statement (Stripe Connect charges documentation). The structural property is that account ownership stays with the team.

In the opaque embedded model, the platform uses Stripe under the hood but abstracts it entirely. You have no direct access to the underlying account. Stripe Connect destination charges are the canonical mechanism: the platform is visible on the customer's statement, and the connected account is invisible. This model is often used by platforms that monetize payment processing directly, and processing fees can run higher than Stripe's standard rates.

Best fit: teams who want the fastest path to live payments without managing a PSP relationship themselves. Transparent suits teams who want account ownership; opaque suits teams who want to hand off payment operations entirely and are less sensitive to processing costs. Benefits include rapid time-to-live and no separate Stripe account setup.

Trade-offs: tied to Stripe; opaque variants have limited visibility, potential markup on fees, and migration friction. Setup complexity is low.

PlatformArchitectureNotes
CredytReal-time billing; transparent embedded Stripe (team's Stripe account stays the merchant)Stripe Checkout flow routed through the team's connected Stripe account; non-Stripe PSP setups handled via the Adjustments API

Pattern 3: Bring your own PSP via native multi-PSP connectors

The billing platform has native integrations with a defined set of PSPs. You connect whichever supported provider you already use, and the platform handles data mapping and payment flow for that connector. The distinction from Pattern 5 is that the vendor has done the integration work, so the connection takes less setup work than building it yourself, but you are limited to the vendor's supported list.

Best fit: teams using a non-Stripe PSP that is on the platform's supported list, and multi-region teams running different PSPs in different markets, provided every provider is natively supported.

Benefits: no PSP migration if your provider is supported, plus the platform handles data mapping for you. Trade-offs: constrained to the supported list; adding a new PSP means waiting on the vendor; most platforms here are invoice-based. Setup complexity is low to medium.

PlatformArchitectureNative PSP support
LagoInvoice-basedStripe, Adyen, GoCardless natively; community connectors for Cashfree and Moneyhash; webhook-based custom support for Paddle, Razorpay, and Authorize.net (Lago payment providers documentation)
FlexpriceHybrid (invoice-based primary, wallet option)Stripe and Razorpay confirmed natively (Flexprice); webhook layer for additional providers

Pattern 4: Fully managed and tightly bundled

The billing platform and payment processing are a single product. You do not bring a PSP. The platform handles everything end to end.

Stripe Billing is the clearest example. Subscription-first with metered add-ons; billing logic and Stripe Payments are inseparable. You do not configure a PSP; you are inside one. Fortune reported Stripe Billing reached a $500M annual run-rate as of February 2025, the operational reality teams choosing this pattern are buying into.

Stripe completed its acquisition of Metronome in January 2026 (Stripe Newsroom). For teams choosing Pattern 4, this means Stripe now owns both subscription-first billing and a leading invoice-based UBB platform. What used to be two distinct vendor decisions is now one ecosystem commitment.

Merchant of Record platforms like Paddle and Lemon Squeezy sit adjacent to this pattern but are a distinct category. An MoR acts as the legal seller of record, handles tax filing, and takes a percentage of gross revenue. Most MoRs do not support usage-based billing natively, so teams on an MoR who need UBB end up looking at Pattern 3 or Pattern 5 instead. For example, teams using Paddle for subscriptions may operate a hybrid setup with Credyt handling usage-based billing on top.

Best fit: single-region teams whose entire stack is already on the bundled platform, and teams that want a single dashboard for billing and payments and are comfortable with the lock-in. Benefits: lowest setup complexity on day one, unified billing and payment data, no integration work between billing and PSP layers. Trade-offs: switching any part later means migrating everything; no PSP optionality; no real-time architecture available natively. Setup complexity is low initially, high if direction changes.

PlatformArchitectureNotes
Stripe BillingSubscription-first with metered add-ons$500M annual run-rate (Fortune, February 2025); fully bundled with Stripe Payments
MetronomeInvoice-basedIn Stripe ecosystem since January 14, 2026

Pattern 5: Modular or hybrid stack

You run two or more billing systems, each handling a different part of your billing model. A typical setup pairs Stripe Billing for traditional subscription revenue with a real-time billing platform for AI usage. Each system handles what it is built for; a lightweight integration layer keeps customer records and billing data aligned.

This is also the default path for teams whose PSP is not natively supported anywhere (Pattern 3 unavailable) and who do not want to migrate payments (Patterns 1 and 2 ruled out). In that case, the team owns the integration work to connect the PSP to the billing platform via webhooks and a push API, rather than relying on a pre-built connector. This is where the build-vs-buy billing system question becomes practical: not "build or buy the whole stack," but "buy the billing platform and own the PSP wiring."

Best fit: teams with existing subscription billing that works and do not want to migrate it, but need real-time usage billing on top. Common at seed to Series A, where a Stripe subscription is already live and the team is adding AI features with per-request costs. Also the right pattern for teams on PSPs without native connectors elsewhere.

Benefits: no migration of existing infrastructure; each system does what it is optimized for; real-time usage billing can be added without touching subscription logic; maximum PSP flexibility. Trade-offs: two systems to operate; some development to align customer identifiers; the team owns the PSP integration when no native connector exists. Setup complexity is low to medium when adding alongside; medium to high when also building the PSP connector.

PlatformArchitectureNotes
Credyt + Stripe BillingReal-time UBB + subscription-firstPrimary documented setup for this pattern
StiggReal-time orchestration; settles via the connected billing system (typically invoice-based)Sits above Stripe, Chargebee, or Zuora (Stigg)

How to choose the right PSP integration pattern

The right pattern depends on four questions, in this order. Answer each before evaluating any specific billing platform.

  1. Are you setting up payments from scratch, or do you have existing infrastructure you want to keep? Pre-launch teams have all five patterns open to them. Teams with existing infrastructure rule out Pattern 4 unless they are willing to consolidate everything onto a bundled stack.
  2. Is your PSP Stripe, or something else? If Stripe, all five patterns work. If Adyen, PayPal, Checkout.com, GoCardless, or another PSP, options narrow to Pattern 3 (when your provider is natively supported) or Pattern 5 (when you build the integration).
  3. Do you need to be live in hours or days, or do you have engineering bandwidth for a longer integration? Patterns 2 and 4 have the lowest setup complexity. Pattern 1 is medium. Pattern 5 ranges from medium to high. Pattern 3 sits in the middle.
  4. Is real-time billing a requirement, or is end-of-month invoicing acceptable? Real-time is required when per-request infrastructure costs are significant, when a single session can consume meaningful value, or when post-hoc invoicing creates unacceptable financial exposure. Invoice-based is the right choice for predictable B2B SaaS with monthly cycles. AI-native products almost always need real-time billing for AI products with variable per-request costs; B2B-with-AI-features can often live with invoice-based.

The synthesis is straightforward. The right question is not "Stripe or not Stripe." It is "which pattern matches the PSP I already have and the billing guarantees my product needs." The PSP integration pattern is the constraint; the billing platform is the choice that fits inside the constraint.

Pricing velocity sharpens the constraint. PricingSaaS Q1 2026 tracked 8,394 pricing and packaging events across 498 companies in 2025, with packaging events up 21% year-over-year and credit-model adoption up 126% year-over-year (PricingSaaS Q1 2026 Trends Report). ICONIQ's January 2026 panel of ~300 AI executives found 37% planning a monetization model change in the next 12 months (ICONIQ Growth: 2026 State of AI, January 2026). A pattern that requires migrating payment infrastructure every time billing logic changes is a direct constraint on iteration speed, not a back-office concern.

For teams who want to add real-time usage billing without rebuilding their existing stack, Pattern 5 is often the path of least resistance. See real-time billing without replacing your stack for a deeper treatment.

When the five-pattern framework does not apply

The five-pattern framework assumes the reader retains control of the customer payment relationship. Two structural exceptions break that assumption.

Merchant-of-Record-only stacks. MoR platforms like Paddle and Lemon Squeezy absorb the entire payment relationship: tax liability, compliance, chargebacks, refunds, all on behalf of the seller. This replaces the PSP relationship rather than selecting an integration pattern over it. An AI company using Paddle as its MoR has no PSP integration decision to make for its core payments because Paddle is the merchant of record.

Adding usage-based billing to an MoR-first stack typically pushes the team toward Pattern 5 anyway, but the framework is not the right starting point. Pick the MoR for the tax and compliance benefits first; treat the billing platform decision as a follow-on question.

Pre-launch teams over-thinking the choice. With zero revenue, the right move is the lowest-friction pattern that gets you shipping; iterate when the constraint is real. Picking the perfect pattern at zero revenue is premature optimization. Default to Pattern 2 if Stripe is fine, Pattern 1 if you want immediate Stripe dashboard control, and revisit when revenue and product constraints make the trade-offs concrete. The cost of being wrong is lower than the cost of taking another month to decide.

PSP integration patterns determine what billing your product can support

PSP integration patterns are not architecture trivia. They determine setup time, lock-in, and whether real-time billing is on the table at all. The reader's actual question is whether to migrate the existing payment setup, and the framework above gives five distinct answers depending on the PSP a team already has and the billing guarantees the product needs.

The choice deserves to be made before the billing platform evaluation, not after. Pattern selection narrows the platform shortlist more than feature comparison does. A team on Razorpay running a real-time AI workload should not be reading a Stripe Billing vs Metronome comparison. They should be looking at Pattern 3 vendors that natively support Razorpay, or accepting they will be in Pattern 5. Conversely, a team on Stripe with a predictable B2B SaaS product probably should not be over-engineering with Pattern 5 when Pattern 1 or Pattern 4 fits cleanly.

This is also why Stripe alternative for AI billing comparisons read so differently for different teams. The alternative is not Stripe Billing as such, but the pattern Stripe Billing represents and what swapping it costs given the team's actual PSP relationship.

Credyt fits Pattern 2 (transparent embedded Stripe with real-time billing) and Pattern 5 (real-time usage-based billing alongside an existing subscription stack). Other patterns are better fits for other reader profiles. Lago and Orb fit Pattern 1 for teams who want Stripe dashboard control with traditional invoice-based billing; Stripe Billing fits Pattern 4 for single-region teams comfortable with bundled lock-in. Stigg fits Pattern 5 when cycle-end settlement is acceptable and the value is in entitlement orchestration above an existing billing engine.

The systems that authorize usage in real time, manage wallet balances, and enforce policies before cost lands are no longer optional infrastructure for AI products with per-request costs. Credyt provides that layer for teams whose PSP integration pattern fits.

For teams comparing Credyt's Pattern 4 alternative head-to-head, see Credyt vs Stripe Billing. For teams landing on Pattern 5 and ready to wire it up, the companion how-to is connect a PSP to Credyt.

Don't let monetization slow you down.

Free to start. Live in hours. No engineering team required.