Docs / Architecture / Billing
Billing sits behind a driver, so the gateway can change.
Laravel Cashier does the work behind a billing driver layer. The app talks to the layer, never to the gateway, so a local payment gateway can replace Stripe.
A subscription’s life
TrialStarts without a cardno card
ActiveMonthly or yearly, seats and coupons appliedpaying
Grace periodA payment failed; dunning emails go outdunning
Downgrade pathNobody paid: the workspace steps down instead of vanishingdowngraded
What the layer covers
- Monthly and yearly plans with feature flags and hard usage limits
- Proration on upgrade, seat-based pricing and coupons
- Downloadable PDF invoices with sales tax, VAT and reverse charge support
- Your company details and the customer tax ID on every invoice
- Idempotent webhook handling, because payment webhooks can arrive twice
The same webhook, delivered twicehandled once
invoice.paid · 1st deliveryProcessed
invoice.paid · 2nd deliveryDuplicate — skipped
Invoices marked paid1