Files
mytodos/config/plans.php
T
ecdown 2ca3860557
tests / ci (push) Canceled after 0s
added pricing, orgs
2026-10-04 20:34:19 -07:00

54 lines
1.6 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Subscription Type
|--------------------------------------------------------------------------
|
| Cashier stores subscriptions under a "type" key, which lets an
| organization hold more than one subscription over time. This
| application only needs one, so every plan shares this type.
|
*/
'subscription_type' => 'default',
/*
|--------------------------------------------------------------------------
| Free Trial
|--------------------------------------------------------------------------
|
| The number of trial days granted to new subscribers. Stripe requires a
| Checkout trial to be at least 48 hours, so anything below two is
| effectively ignored. Set to 0 to charge immediately on signup.
|
*/
'trial_days' => (int) env('BILLING_TRIAL_DAYS', 14),
/*
|--------------------------------------------------------------------------
| Plans
|--------------------------------------------------------------------------
|
| Each plan needs the Stripe price id of the product you created in the
| Stripe dashboard. Plans without a price are treated as unconfigured and
| are hidden from the pricing page, so a half-finished deployment shows
| nothing rather than a broken checkout.
|
| Supported: "name", "price" and "interval".
|
*/
'plans' => [
'pro' => [
'name' => 'Pro',
'price' => env('BILLING_PLAN_PRO_PRICE'),
'interval' => 'month',
],
],
];