From c81bd30d054889c113cbec55599eee63d974c85e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 25 Apr 2022 07:05:30 +1000 Subject: [PATCH 1/2] Fixes for auth.net --- .../Authorize/AuthorizePaymentMethod.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php index ef586ac8c348..4efad4605283 100644 --- a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php +++ b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php @@ -164,13 +164,13 @@ class AuthorizePaymentMethod if ($contact) { // Create the Bill To info for new payment type $billto = new CustomerAddressType(); - $billto->setFirstName(substr(0,50,$contact->present()->first_name())); - $billto->setLastName(substr(0,50,$contact->present()->last_name())); - $billto->setCompany(substr(0,50,$this->authorize->client->present()->name())); - $billto->setAddress(substr(0,60,$this->authorize->client->address1)); - $billto->setCity(substr(0,40,$this->authorize->client->city)); - $billto->setState(substr(0,40,$this->authorize->client->state)); - $billto->setZip(substr(0,20,$this->authorize->client->postal_code)); + $billto->setFirstName(substr($contact->present()->first_name(),0,50)); + $billto->setLastName(substr($contact->present()->last_name(),0,50)); + $billto->setCompany(substr($this->authorize->client->present()->name(),0,50)); + $billto->setAddress(substr($this->authorize->client->address1,0,60)); + $billto->setCity(substr($this->authorize->client->city,0,40)); + $billto->setState(substr($this->authorize->client->state,0,40)); + $billto->setZip(substr($this->authorize->client->postal_code,0,20)); if ($this->authorize->client->country_id) { $billto->setCountry($this->authorize->client->country->name); From 4568efc64773cd68713b32c296a3cb92c5466a16 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 25 Apr 2022 07:07:52 +1000 Subject: [PATCH 2/2] v5.3.83 --- VERSION.txt | 2 +- config/ninja.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index 12d56fd94bff..12e20d8de1dc 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.3.82 \ No newline at end of file +5.3.83 \ No newline at end of file diff --git a/config/ninja.php b/config/ninja.php index 10f6f4404b78..ff45b1ecad18 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.3.82', - 'app_tag' => '5.3.82', + 'app_version' => '5.3.83', + 'app_tag' => '5.3.83', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''),