From 6100f9416b8328ae5964875119b9b3782b1a950b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 15 Jan 2023 17:40:11 +1100 Subject: [PATCH] Minor fixes for billingportal purchase --- app/Http/Livewire/BillingPortalPurchase.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Http/Livewire/BillingPortalPurchase.php b/app/Http/Livewire/BillingPortalPurchase.php index 404194f58531..496c241b79aa 100644 --- a/app/Http/Livewire/BillingPortalPurchase.php +++ b/app/Http/Livewire/BillingPortalPurchase.php @@ -202,6 +202,12 @@ class BillingPortalPurchase extends Component elseif(strlen($this->subscription->promo_code) == 0 && $this->subscription->promo_discount > 0){ $this->price = $this->subscription->promo_price; } + + /* Leave this here, otherwise a logged in user will need to reauth... painfully */ + if(Auth::guard('contact')->check()){ + return $this->getPaymentMethods(auth()->guard('contact')->user()); + } + } /**