From b9bea02b688e05eaf52ef47ddd9e93df39c0eb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 13 Mar 2021 14:51:01 +0100 Subject: [PATCH] wip --- app/Http/Livewire/BillingPortalPurchase.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Http/Livewire/BillingPortalPurchase.php b/app/Http/Livewire/BillingPortalPurchase.php index ff3045288780..d7a5e1401ea9 100644 --- a/app/Http/Livewire/BillingPortalPurchase.php +++ b/app/Http/Livewire/BillingPortalPurchase.php @@ -57,9 +57,8 @@ class BillingPortalPurchase extends Component $this->steps['existing_user'] = false; - $this - ->createBlankClient() - ->getPaymentMethods(); + $contact = $this->createBlankClient(); + $this->getPaymentMethods($contact); } protected function createBlankClient() @@ -77,7 +76,7 @@ class BillingPortalPurchase extends Component // dd($response->toArray()); - return $this; + return ClientContact::where('email', $this->email)->first(); } protected function getPaymentMethods(ClientContact $contact): self