Skip to content
Documentation navigation

Blocks

Billing

Billing workspaces for Constructive’s own platform billing and for tenant apps billing their customers: a customer view, an operator console, and the parts they are built from.

Platform and tenant billing

Both templates are one workspace over the same billing modules, so the scope is data, not a separate install.

  • Platform: Constructive bills its customers for databases, seats, and usage through the standard meter pools (compute, inference, storage, database, transfer, messaging).
  • Tenant: a database provisioned with the b2b:saas preset bills its own customers with its own catalog and its own provider account.
  • Payment providers are descriptors the host passes in: name and logo, what the provider can do, what it calls test mode, and whether it is the merchant of record. Stripe ships built in; one provider is active at a time and can be switched.

Building blocks

Every card, table, and dialog the templates use installs on its own with billing-kit.

Registry install
pnpm dlx shadcn@latest add @constructive/billing-kit