mirror of
https://github.com/hanzoai/commerce.git
synced 2026-11-23 05:38:11 +00:00
No plan opens in a trial and nothing opens one: - billing/trial (the store trial with its $20 credit) and its route POST /store/:storeid/trial are gone. - The card sale's trial branch and promo.TakeTrial are gone, along with the wallet and PayPal refusals of trial plans and the trial fields of the sale receipt and notice. - plan.Plan, the catalog decoder and the served plan carry no trialPeriodDays. - engine.StartSubscription always starts a subscription active. - A referral gift extends a paid plan the subject holds and opens none: a subject on no paid plan is refused. A trial opened before this runs to its end and ends there. engine.IsDue never answers due for a trialing row, card or no card, and engine.Over is true at its end. The renewal sweep lapses it, so it converts to nothing, charges nobody and arms no reload. The commerce admin paywall and store access unlock on any paid plan (billing.Unlocks): a rung on sale or a retired one its holder still pays for, active on a period that covers now and payment-backed, or a trial still open. A trial credit is no longer access. Store access reads both money stores, as the paywall does. Co-authored-by: Hanzo Dev <[email protected]>