From 013524507830dfe610e671e25f18c0706296f56b Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 20 Feb 2019 16:59:24 +0100 Subject: [PATCH] Cutting vat number to 32 characters to prevent api error --- app/code/community/Pay/Payment/Model/Paymentmethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Pay/Payment/Model/Paymentmethod.php b/app/code/community/Pay/Payment/Model/Paymentmethod.php index 8cd1d4a..4aa4651 100644 --- a/app/code/community/Pay/Payment/Model/Paymentmethod.php +++ b/app/code/community/Pay/Payment/Model/Paymentmethod.php @@ -330,7 +330,7 @@ protected static function getTransactionStartData(Mage_Sales_Model_Order $order) $arrCompany['name'] = $order->getBillingAddress()->getCompany(); } if ($order->getCustomerTaxvat()) { - $arrCompany['vatNumber'] = $order->getCustomerTaxvat(); + $arrCompany['vatNumber'] = substr($order->getCustomerTaxvat(),0,32); } $countryId = null;