Disable generic trial once customer is subscribed
haszzam opened this issue · comments
Hi,
I'm trying to signup users with a free trial without payment upfront (Generic Trial).
But currently when a customer subscribe to a plan the generic trial is not disabled.
So $request->user()->onTrial();
and $request->user()->onGenericTrial();
still returns true
even after the user is subscribed to a plan.
This causes some issues when you try to perform certain actions when the user is on trial.
I checked the handleSubscriptionCreated
webhook handler and it's not doing anything to disable the generic trial, I think adding something like this $billable->update(['trial_ends_at' => null]);
to the handleSubscriptionCreated
handler should fix this issue.
Thanks!
Thanks! I've sent in a PR for this: #222