This commit is contained in:
2024-10-14 21:54:58 +05:00
parent 2f21e78bf3
commit 6a0b1ed714

View File

@@ -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');
}
/**