diff --git a/README.md b/README.md index 7c31499..7c03f19 100644 --- a/README.md +++ b/README.md @@ -75,14 +75,10 @@ try { echo "CRM connection error: " . $e->getMessage(); } -if ($response->isSuccessful()) { - if (201 === $response->getStatusCode()) { - echo 'Order created successfully! Order ID in CRM = ' . $response->id; - // or $response['id']; - // or $response->getId(); - } else { - echo 'Order updated successfully!'; - } +if ($response->isSuccessful() && 201 === $response->getStatusCode()) { + echo 'Order created successfully! Order ID in CRM = ' . $response->id; + // or $response['id']; + // or $response->getId(); } else { echo sprintf( "Error of the order creating: [Code %s] %s",