diff --git a/app/Nova/Actions/CheckOnlinePayment.php b/app/Nova/Actions/CheckOnlinePayment.php index e1eb36d..3c75860 100644 --- a/app/Nova/Actions/CheckOnlinePayment.php +++ b/app/Nova/Actions/CheckOnlinePayment.php @@ -61,17 +61,9 @@ class CheckOnlinePayment extends Action 'password' => $password, ]); - $payment_status = $response['ErrorCode'] == '0'; - - if ($payment_status) { - return Action::modal('modal', [ - 'message' => 'Tölenen', - ]); - } - - return Action::modal('modal', [ - 'message' => 'Tölenmedik', - ]); + return $response['ErrorCode'] == '0' + ? ActionResponse::message('Tölenen') + : ActionResponse::danger('Tölenmedik'); } /**