I'm using Spark with Teams. My app has 3 plans : Free, Pro and Agency. When an user signs up, he is placed in a Trial mode for 30 days, on the Free plan.
Instead, I'd like to offer the Pro (paid) plan to my users during their trial period. After this period, IF they didn't sign up for a paid plan, I'd like them to "fallback" to the free plan.
Do you have any idea how to achieve this ?
The Free plan is added using Spark::freeTeamPlan()
The other ones with Spark::teamPlan()
@dsampaolo I'm thinking you'd log an expiration date to the user table when the trial expires... so trial_ends datetime on the user table.
Set that when they sign up to be like now()->addDays(15)
Have a scheduler job running that checks that daily and converts if they are past the expiration on their trial. Make sure to clear the value after they are converted and only check users that have an expiration date there.