This commit is contained in:
2025-03-13 13:47:17 +05:00
parent cf64c17690
commit 8337bbf19c
2 changed files with 22 additions and 10 deletions

View File

@@ -58,7 +58,14 @@ class CheckOnlinePayment extends Action
]); ]);
} }
$response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatus.do', [ // $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', 'language' => 'ru',
'orderId' => $onlinePaymentResource->orderId, 'orderId' => $onlinePaymentResource->orderId,
'userName' => $username, 'userName' => $username,

View File

@@ -17,15 +17,20 @@ trait HandlesBillingSyncing
CURLOPT_FOLLOWLOCATION => true, CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{ CURLOPT_POSTFIELDS => sprintf(
"ecomId" : "12345-12345-12345-12345", '{
"agentId" : "1304", "ecomId" : "%s",
"eposId" : "30401238", "agentId" : "%s",
"account" : "130420912769753", "eposId" : "30401238",
"rnn" : "110784016238", "account" : "130420912769753",
"amount" : 895.46, "rnn" : "110784016238",
"payPurpose" : "Mart 2025" "amount" : 895.46,
}', "payPurpose" : "Mart 2025"
}',
// $uuid,
// $bankCode,
),
CURLOPT_HTTPHEADER => [ CURLOPT_HTTPHEADER => [
'Authorization: Basic YWRtaW46UUFad3N4MTIz', 'Authorization: Basic YWRtaW46UUFad3N4MTIz',
'Content-Type: application/json', 'Content-Type: application/json',