1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
This commit is contained in:
Benjamin Beganović 2021-03-13 14:51:01 +01:00
parent 908678cdc4
commit b9bea02b68

View File

@ -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