add new package to composer

This commit is contained in:
2024-11-22 20:06:36 +05:00
parent 7dd1f683cd
commit 16bb72509a
3 changed files with 59 additions and 7 deletions

View File

@@ -51,7 +51,10 @@ class CheckOnlinePayment extends Action
}
if ($username == '') {
return ActionResponse::danger('Ulanyjy ady bn acar sozuni gabat gelmedi');
return Action::modal('modal-response', [
'title' => 'HALKBANK API',
'body' => 'Ulanyjy ady bilen açar sözi gabat gelmedi',
]);
}
$response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatus.do', [
@@ -61,11 +64,10 @@ class CheckOnlinePayment extends Action
'password' => $password,
]);
info($response->body());
return $response['ErrorCode'] == '0'
? ActionResponse::message('Tölenen')
: ActionResponse::danger('Tölenmedik');
return Action::modal('modal-response', [
'title' => 'HALKBANK API',
'code' => json_encode($response->json(), JSON_PRETTY_PRINT),
]);
}
/**