From 6fe6da5fe00d0a388f58ba76188b46a17835f11b Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Thu, 13 Mar 2025 14:15:49 +0500 Subject: [PATCH] wip --- app/Nova/Actions/CheckOnlinePayment.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/app/Nova/Actions/CheckOnlinePayment.php b/app/Nova/Actions/CheckOnlinePayment.php index 0aad5fa..4290696 100644 --- a/app/Nova/Actions/CheckOnlinePayment.php +++ b/app/Nova/Actions/CheckOnlinePayment.php @@ -58,13 +58,6 @@ class CheckOnlinePayment extends Action ]); } - // $response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatus.do', [ - // 'language' => 'ru', - // 'orderId' => $onlinePaymentResource->orderId, - // 'userName' => $username, - // 'password' => $password, - // ]); - $response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatusExtended.do', [ 'language' => 'ru', 'orderId' => $onlinePaymentResource->orderId, @@ -94,14 +87,11 @@ class CheckOnlinePayment extends Action * * @param $response */ - public static function resultHTML($response) + public static function resultHTML(\Illuminate\Http\Client\Response $response) { $errorMessage = $response['ErrorMessage'] ?? ''; - $keyValueListHTML = $response->body(); - // $response->collect()->each(function ($item, $key) use (&$keyValueListHTML) { - // $keyValueListHTML .= "
  • {$key}: {$item}
  • "; - // }); + $keyValueListHTML = json_encode($response->json(), JSON_PRETTY_PRINT); return Blade::render(<<HALKBANK-dan gelen netije: