config->isEnabled()) { return; } $order = $observer->getEvent()->getOrder(); if (!$order || !in_array((string)$order->getStatus(), $this->config->getEligibleStatuses(), true)) { return; } try { $this->repository->enqueue($order); } catch (\Throwable $exception) { $this->logger->error('Unable to enqueue Magento order for Lingxing.', [ 'order_id' => $order->getEntityId(), 'exception' => $exception, ]); } } }