Fixes for account plan
This commit is contained in:
parent
5266239341
commit
afa5f2338c
1 changed files with 8 additions and 6 deletions
|
|
@ -41,15 +41,17 @@ class RefundCancelledAccount implements ShouldQueue
|
|||
|
||||
$plan_details = $this->account->getPlanDetails();
|
||||
|
||||
/* Trial user cancelling early.... */
|
||||
if ($plan_details['trial_active']) {
|
||||
if(!$plan_details)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Is the plan Active? */
|
||||
if (! $plan_details['active']) {
|
||||
/* Trial user cancelling early.... */
|
||||
if ($plan_details['trial_plan'])
|
||||
return;
|
||||
}
|
||||
|
||||
/* Is the plan Active? */
|
||||
if (! $plan_details['active'])
|
||||
return;
|
||||
|
||||
|
||||
/* Refundable client! */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue