From 37a94c1370cb21b6e67e2590b6dbc73b96f92531 Mon Sep 17 00:00:00 2001 From: Mohit Sharma Date: Wed, 9 Oct 2024 14:24:55 +0530 Subject: [PATCH] Fix CleanUpIncompleteSessions cron fails --- Cron/CleanUpIncompleteSessions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cron/CleanUpIncompleteSessions.php b/Cron/CleanUpIncompleteSessions.php index a2ef3890..d11ad0de 100644 --- a/Cron/CleanUpIncompleteSessions.php +++ b/Cron/CleanUpIncompleteSessions.php @@ -119,7 +119,7 @@ protected function processTransaction(array $transactionData) try { // Check current state of Amazon checkout session - $amazonSession = $this->amazonPayAdapter->getCheckoutSession(null, $checkoutSessionId); + $amazonSession = $this->amazonPayAdapter->getCheckoutSession($transactionData['store_id'], $checkoutSessionId); $state = $amazonSession['statusDetails']['state'] ?? false; switch ($state) { case self::SESSION_STATUS_STATE_CANCELED: