add new package to composer
This commit is contained in:
@@ -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),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user