From 7617e08632e0dcb3dbe36c2d147fc483d1019ac9 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 9 Sep 2025 15:53:26 +0500 Subject: [PATCH] wip --- app/Nova/Actions/Sber/SyncWithSystem.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Nova/Actions/Sber/SyncWithSystem.php b/app/Nova/Actions/Sber/SyncWithSystem.php index 35a5a8c..df73e4a 100644 --- a/app/Nova/Actions/Sber/SyncWithSystem.php +++ b/app/Nova/Actions/Sber/SyncWithSystem.php @@ -48,6 +48,13 @@ class SyncWithSystem extends Action $response = checkOnlinePayment($onlinePaymentResource->orderId, $result['username'], $result['password']); + if ($response['errCode'] != 0) { + return Action::modal('modal-response', [ + 'title' => 'HALKBANK API', + 'body' => $response['errorMessage'], + ]); + } + $systemRawResponse = syncWithBankSystem( online_payment_order_uuid: $onlinePaymentResource->orderId, bank_unique_code: $sberPaymentOrder->branch->unique_code,