Scenario: User registers, gets trial subscription upon registration and soon (after 1 minute or 1 day) pays and prolongs subscription.
The $subscription->renew() prolongs his ends_at but does not delete the trial_ends_at. And checking $user->subscription('main')->isOnTrial() returns true which in my opinion is erroneous.
Similarly, PlanSubscription::findEndingTrial(10)->get() returns this freshly renewed subscription which could cause problems when we'd like to send some reminding emails to the users on trials.
Scenario: User registers, gets trial subscription upon registration and soon (after 1 minute or 1 day) pays and prolongs subscription.
The
$subscription->renew()
prolongs hisends_at
but does not delete thetrial_ends_at
. And checking$user->subscription('main')->isOnTrial()
returnstrue
which in my opinion is erroneous.Similarly,
PlanSubscription::findEndingTrial(10)->get()
returns this freshly renewed subscription which could cause problems when we'd like to send some reminding emails to the users on trials.