Phase 14, part 2: the owner's Billing page

Settings → Billing shows the team's plan, trial, people, agents, storage
and next invoice. The owner subscribes through Stripe Checkout (monthly, or
yearly when there's a price) and pays or reads invoices in Stripe's
Customer Portal; admins see the plan only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 13:19:30 -07:00
co-authored by Claude Opus 5.5
parent a47990f9bf
commit 8fb79220e3
8 changed files with 498 additions and 2 deletions
+16
View File
@@ -3239,6 +3239,22 @@ Checkout; both are off until set.
Agents (Free 1, Paid 5), Market entries (Free 10) and the SEO audit
(Free 500 pages weekly, Paid 10,000 daily) follow the plan.
**Part 2 built 2026-11-26.**
- `billing.Stripe`: the platform's Stripe account, over its HTTP API (no
SDK): customers, Checkout sessions (a subscription to the paid plan's
price a month or, if set, a year; the people as the quantity; the team as
the reference and in the subscription's metadata; Stripe Tax when the
plans file asks), Customer Portal sessions, the upcoming invoice, and the
subscription's quantity (part 5).
- Settings → Billing (admins see it; only the owner acts): the plan (and
*trial*, *payment due*, *read-only*), the trial's end, people and agents
against the plan's, storage against its share, the crawl, and, for the
owner, the next invoice. *Subscribe with Stripe* (the team's Stripe
customer made the first time) goes to Checkout; *Open Stripe's billing
page* to the Customer Portal (the card, the address, the invoices,
cancelling). Admins see the plan without the payment details or the
buttons.
#### Order
```