From 97d92cd12727f815fe2258c868afb960a777dd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 29 Mar 2021 12:25:29 +0200 Subject: [PATCH] wip --- app/Http/Livewire/BillingPortalPurchase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }