From 32ebcbd672a54e7d605776530785719a2d604d60 Mon Sep 17 00:00:00 2001 From: Venelin Iliev Date: Wed, 14 Jul 2021 09:59:01 +0300 Subject: [PATCH] AD.CUST_BOR_ORDER_ID length fix --- src/SaleRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SaleRequest.php b/src/SaleRequest.php index 0924459..b3e1b93 100644 --- a/src/SaleRequest.php +++ b/src/SaleRequest.php @@ -352,7 +352,7 @@ private function generateAdCustBorOrderId() $orderString = str_ireplace(';', '', $orderString); return [ - 'AD.CUST_BOR_ORDER_ID' => mb_substr($orderString, 0, 16), + 'AD.CUST_BOR_ORDER_ID' => mb_substr($orderString, 0, 22), 'ADDENDUM' => 'AD,TD', ]; }