wip
This commit is contained in:
@@ -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', [
|
$response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatusExtended.do', [
|
||||||
'language' => 'ru',
|
'language' => 'ru',
|
||||||
'orderId' => $onlinePaymentResource->orderId,
|
'orderId' => $onlinePaymentResource->orderId,
|
||||||
@@ -94,14 +87,11 @@ class CheckOnlinePayment extends Action
|
|||||||
*
|
*
|
||||||
* @param $response
|
* @param $response
|
||||||
*/
|
*/
|
||||||
public static function resultHTML($response)
|
public static function resultHTML(\Illuminate\Http\Client\Response $response)
|
||||||
{
|
{
|
||||||
$errorMessage = $response['ErrorMessage'] ?? '';
|
$errorMessage = $response['ErrorMessage'] ?? '';
|
||||||
|
|
||||||
$keyValueListHTML = $response->body();
|
$keyValueListHTML = json_encode($response->json(), JSON_PRETTY_PRINT);
|
||||||
// $response->collect()->each(function ($item, $key) use (&$keyValueListHTML) {
|
|
||||||
// $keyValueListHTML .= "<li><span>{$key}:</span> <strong>{$item}</strong></li>";
|
|
||||||
// });
|
|
||||||
|
|
||||||
return Blade::render(<<<HTML
|
return Blade::render(<<<HTML
|
||||||
<span class="mb-2">HALKBANK-dan gelen netije:</span>
|
<span class="mb-2">HALKBANK-dan gelen netije:</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user