From b5e57bccc8f371a810eb8be568b126ac4456bc24 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 9 Sep 2025 15:39:47 +0500 Subject: [PATCH] wip --- app/Nova/Actions/Sber/SyncWithSystem.php | 26 +++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/Nova/Actions/Sber/SyncWithSystem.php b/app/Nova/Actions/Sber/SyncWithSystem.php index f3d4e90..c3e433d 100644 --- a/app/Nova/Actions/Sber/SyncWithSystem.php +++ b/app/Nova/Actions/Sber/SyncWithSystem.php @@ -58,21 +58,23 @@ class SyncWithSystem extends Action pay_purpose: $sberPaymentOrder->created_at->translatedFormat('F').' '.$sberPaymentOrder->created_at->format('Y') ); - $success = $systemResponse['errCode'] == 0; + gettype($systemResponse); - if ($success) { - $orderItem->update([ - 'synced_with_system' => true, - ]); - } else { - $orderItem->update([ - 'synced_with_system' => false, - ]); - } + // $success = $systemResponse['errCode'] == 0; + + // if ($success) { + // $orderItem->update([ + // 'synced_with_system' => true, + // ]); + // } else { + // $orderItem->update([ + // 'synced_with_system' => false, + // ]); + // } return Action::modal('modal-response', [ - 'html' => $success ? "Success" : "Fail", - 'title' => $success ? "Success" : "Fail", + // 'html' => $success ? "Success" : "Fail", + // 'title' => $success ? "Success" : "Fail", ]); }