Fixes for account plan

This commit is contained in:
David Bomba 2020-10-30 07:59:47 +11:00
parent 5266239341
commit afa5f2338c

View File

@ -41,15 +41,17 @@ class RefundCancelledAccount implements ShouldQueue
$plan_details = $this->account->getPlanDetails(); $plan_details = $this->account->getPlanDetails();
/* Trial user cancelling early.... */ if(!$plan_details)
if ($plan_details['trial_active']) {
return; return;
}
/* Is the plan Active? */ /* Trial user cancelling early.... */
if (! $plan_details['active']) { if ($plan_details['trial_plan'])
return; return;
}
/* Is the plan Active? */
if (! $plan_details['active'])
return;
/* Refundable client! */ /* Refundable client! */