diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index 9899e94f2259..04e2541df9be 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -121,7 +121,10 @@ class SubscriptionService //execute any webhooks $this->triggerWebhook($context); - $this->handleRedirect('/client/invoices/'.$this->encodePrimaryKey($payment_hash->fee_invoice_id)); + /* 06-04-2022 */ + /* We may not be in a state where the user is present */ + if(auth()->guard('contact')) + $this->handleRedirect('/client/invoices/'.$this->encodePrimaryKey($payment_hash->fee_invoice_id)); } }