Billing

AuthGate includes a self-managed subscription billing engine that uses Stripe solely as a payment processor — not as a billing platform.

This means AuthGate owns the full subscription lifecycle: plan management, upgrades, downgrades, cancellations, proration, usage tracking, coupons, and invoicing. You get the reliability of Stripe's payment infrastructure without the 0.7% Stripe Billing fee on top of your Stripe transaction fees.


How it works

AuthGate's billing engine sits between your application and Stripe. When a user subscribes, AuthGate:

  1. Creates and manages the subscription record in its own database
  2. Instructs Stripe to collect payment via the appropriate payment method
  3. Tracks usage, applies coupons, and calculates proration internally
  4. Generates invoices and fires webhooks to your application on billing events

Stripe never sees your subscription logic — it only processes charges when AuthGate tells it to. This gives you full control over the billing experience without building a billing engine from scratch.


Features

FeatureDescription
Plans & pricesDefine products with recurring, metered, or tiered pricing
SubscriptionsFull lifecycle management: create, upgrade, downgrade, pause, cancel
Usage-based billingReport usage events server-side; AuthGate aggregates and bills at period end
Coupons & promo codesPercent or amount discounts with duration control and redemption limits
InvoicesAutomatic invoice generation with PDF download
EntitlementsGate features by plan or individual feature flags
WebhooksOutgoing events for all billing state changes
ProrationAutomatic mid-cycle proration when users change plans
Trial periodsConfigurable free trials on any plan

Guides

  • Billing Tutorial — Hands-on walkthrough: connect Stripe, create plans, add checkout, and gate features
  • Billing Setup — Connect your Stripe account and configure currency
  • Subscriptions — Create plans, manage subscription lifecycle, handle trials
  • Usage-Based Billing — Report usage events and query usage summaries
  • Coupons & Promo Codes — Create discounts, promotion codes, and bulk import
  • SDK Components — Drop-in React components for pricing, checkout, and subscription management
  • Entitlements — Gate features by plan or feature flag
  • Webhooks — Receive real-time billing events in your application
  • Billing API Endpoints — REST API reference for all billing proxy routes

Was this page helpful?