mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
feat(billing): let people try the product before handing over a card
The trial now starts inside the product, at email verification, and Stripe grants none at all: checkout creates a subscription that bills immediately. Verifying an address is what buys the seven days, which is also the cheapest abuse control there is. An unexpired trial is treated as an entitlement the account already holds, so a Stripe sync can add access but never retracts a trial that has not run out. That matters most for the abandoned checkout: the resulting incomplete subscription carries no trial_end, and writing it through would have erased the days the account still had and locked it out. Unpaid accounts are bounded by what they can cost us rather than by what they can do: one workspace, one project, 3 GiB of direct uploads. YouTube imports, share links, guests, comments and approvals stay unlimited, because those are the parts worth trying and they cost nothing. isPaidTier() is the new seam; hasBillingAccess() answers a different question now that access no longer implies a card. Signup CTAs, the pricing card, the comparison pages, the terms and the refund policy all said the trial converts to a paid plan by itself. It no longer does, so they say what happens instead. Settings and a banner name both dates that matter: when the trial ends, and the fifteen days after that during which nothing is deleted. /admin/growth compares the two funnels on signup to paid within a fixed 30 day window, not trial to paid. Dropping the card requirement multiplies trials, so the old ratio can fall while more people actually pay, and reading it that way would retire the change for the wrong reason.
This commit is contained in:
@@ -100,8 +100,9 @@ export class Seed {
|
||||
|
||||
/**
|
||||
* A user whose trial ran out and who has no subscription, so
|
||||
* hasBillingAccess() is false. `billingTrialConsumedAt` is set, which is what
|
||||
* makes /settings offer `Upgrade with Stripe` rather than `Start Free Trial`.
|
||||
* hasBillingAccess() is false and /settings offers `Upgrade with Stripe`.
|
||||
* `billingTrialConsumedAt` is set because the trial is once per account and
|
||||
* this one has had it.
|
||||
*/
|
||||
async expiredUser(): Promise<User> {
|
||||
const tag = uniqueTag();
|
||||
|
||||
Reference in New Issue
Block a user