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',
'orderId' => $onlinePaymentResource->orderId,
'userName' => $username,

View File

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