diff --git a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php index 089af7f8..37f07d1f 100644 --- a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php +++ b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php @@ -472,7 +472,7 @@ class RetailCrmOrder $crmBasket = RCrmActions::apiMethod($api, 'cartGet', __METHOD__, $externalId, $site); $orderResponse = $client->createOrder($order, $site); - if ($orderResponse instanceof OrdersCreateResponse && $orderResponse->success !== true) { + if ($orderResponse instanceof OrdersCreateResponse && !$orderResponse->success) { Logger::getInstance()->write([ 'methodApi' => 'orderCreate',