diff --git a/app/Http/Livewire/BillingPortalPurchase.php b/app/Http/Livewire/BillingPortalPurchase.php index 1594f095dfd0..387528942cbb 100644 --- a/app/Http/Livewire/BillingPortalPurchase.php +++ b/app/Http/Livewire/BillingPortalPurchase.php @@ -217,6 +217,10 @@ class BillingPortalPurchase extends Component */ protected function getPaymentMethods(ClientContact $contact): self { + Auth::guard('contact')->login($contact); + + $this->contact = $contact; + if ($this->subscription->trial_enabled) { $this->heading_text = ctrans('texts.plan_trial'); $this->steps['show_start_trial'] = true; @@ -230,10 +234,6 @@ class BillingPortalPurchase extends Component $this->heading_text = ctrans('texts.payment_methods'); - Auth::guard('contact')->login($contact); - - $this->contact = $contact; - return $this; }