diff --git a/Cron/OrderFraudStatus.php b/Cron/OrderFraudStatus.php index 14a03a1..8ca8312 100644 --- a/Cron/OrderFraudStatus.php +++ b/Cron/OrderFraudStatus.php @@ -160,7 +160,7 @@ public function updateOrdersFromNoFraudApiResult($orders, $storeId) $this->orderProcessor->updateOrderStatusFromNoFraudResult($newStatus, $order, $response); } } else { - $nofraudErrorDecision = $resultMap['http']['response']['body']['Errors'] ?? ""; + $nofraudErrorDecision = $response['http']['response']['body']['Errors'] ?? ""; $newStatus = $this->orderProcessor->getCustomOrderStatus($response['http']['response'], $storeId); if (isset($nofraudErrorDecision) && !empty($nofraudErrorDecision)) { if (empty($newStatus)) {