Products and prices
A product is one thing a buyer can check out: a plan, an add-on, a one-time pack. Add them in the dashboard under
Billing → Products. They live in the _billing_products collection.
| Field | What it holds |
|---|---|
key |
The name your code uses: pro, team, extra-seats. |
name, description |
What the dashboard shows. |
kind |
subscription (renews) or order (paid once). |
prices |
The price at each processor: {"stripe": "price_123", "paddle": "pri_01h..."}. |
grants |
What one unit grants: {"instances": 1}, {"seats": 5, "storage_gb": 100}. |
active |
Only active products can be checked out. Turning one off leaves existing buyers alone. |
The price itself (amount, currency, billing period, trial) is set at the processor. Billing stores only its id, so change a price at the processor and nothing changes in your app.
Check prices asks each processor whether every price exists and matches the product's kind: a subscription needs a recurring price, an order a one-time one.
Grants and quantity
A product's grants count per unit. Buy team ({"seats": 5}) with quantity 3 and the user's seats entitlement
goes up by 15. Entitlements from different products add up: pro plus an extra-seats add-on gives one total.
Gating features with entitlements shows how to read them.
One product, several processors
prices can name a price at each processor you install. The checkout processor (Billing → Settings) is the one new
checkouts use; the others' prices matter only when you switch. See Payment processors.
Questions and comments
Comments are a GitHub Discussions thread; sign in with GitHub to post.