From 290775040ea3a23f15770e4cbfda7de5bfbbf36c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 26 Apr 2022 07:42:41 +1000 Subject: [PATCH] Fix length of auth.net fields --- app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php index 4efad4605283..c9b810323fd1 100644 --- a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php +++ b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php @@ -176,7 +176,7 @@ class AuthorizePaymentMethod $billto->setCountry($this->authorize->client->country->name); } - $billto->setPhoneNumber($this->authorize->client->phone); + $billto->setPhoneNumber(substr($this->authorize->client->phone,0,20)); } // Create a new Customer Payment Profile object