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", ]); }