Monthly or yearly? Designing a pricing page with Stripe
· TenantForge team
Plans in TenantForge live in the plans table, seeded from config/billing.php. Each plan has a monthly and a yearly price, optional trial days, numeric limits and a list of extra features.
Connect Stripe
- Create one product per plan in the Stripe dashboard.
- Add a monthly and a yearly recurring price to each product.
- Paste the price IDs into your
.envfile, for exampleSTRIPE_PRICE_PRO_MONTHLY. - Add
STRIPE_KEY,STRIPE_SECRETandSTRIPE_WEBHOOK_SECRET, then runphp artisan db:seed --class=PlanSeeder.
Limits are just numbers
Limits such as projects, members and API requests are stored as numbers, with null meaning unlimited. The app checks them before creating records, so the pricing page and the product always agree.
Seats
Turn on per-seat billing for a plan and TenantForge keeps the Stripe quantity equal to the number of members whenever someone joins or leaves.