From 5810b7c9a6f6e5ca1c0899ef72ae5fa74f539b92 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 15 Feb 2022 16:00:39 +1100 Subject: [PATCH] Minor fixes --- app/PaymentDrivers/Authorize/AuthorizeCustomer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/PaymentDrivers/Authorize/AuthorizeCustomer.php b/app/PaymentDrivers/Authorize/AuthorizeCustomer.php index 46317749c47d..a81522489465 100644 --- a/app/PaymentDrivers/Authorize/AuthorizeCustomer.php +++ b/app/PaymentDrivers/Authorize/AuthorizeCustomer.php @@ -124,8 +124,12 @@ class AuthorizeCustomer } else { nlog("creating client"); + $first_payment_profile = $profile['payment_profiles'][0]; + if(!$first_payment_profile) + continue; + $client = ClientFactory::create($company->id, $user->id); $billTo = $first_payment_profile->getBillTo(); $client->address1 = $billTo->getAddress();