Skip to content
← All articles

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

  1. Create one product per plan in the Stripe dashboard.
  2. Add a monthly and a yearly recurring price to each product.
  3. Paste the price IDs into your .env file, for example STRIPE_PRICE_PRO_MONTHLY.
  4. Add STRIPE_KEY, STRIPE_SECRET and STRIPE_WEBHOOK_SECRET, then run php 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.