@@ -53,6 +53,7 @@ |
||
53 | 53 | |
54 | 54 | $apiBody->add($order); |
55 | 55 | |
56 | -if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString())) |
|
56 | +if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString())) { |
|
57 | 57 | foreach ($dalliClient->getErrors() as $error) |
58 | 58 | echo $error; |
59 | +} |
@@ -10,6 +10,7 @@ |
||
10 | 10 | $token = '<ваш token>'; |
11 | 11 | $apiBody = new DalliApiBody(DalliApiMethod::BASKET_CLEAR, $token); |
12 | 12 | |
13 | -if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString())) |
|
13 | +if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString())) { |
|
14 | 14 | foreach ($dalliClient->getErrors() as $error) |
15 | 15 | echo $error; |
16 | +} |