diff --git a/app/Jobs/Ninja/RefundCancelledAccount.php b/app/Jobs/Ninja/RefundCancelledAccount.php index b57b57b266b1..9bc2e40ea74c 100644 --- a/app/Jobs/Ninja/RefundCancelledAccount.php +++ b/app/Jobs/Ninja/RefundCancelledAccount.php @@ -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! */