This commit is contained in:
2025-09-09 16:23:03 +05:00
parent d4a4c3d3f4
commit 161f993099

View File

@@ -454,22 +454,22 @@ function syncWithBankSystem(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 5,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => sprintf('{
"ecomId": "%s",
"agentId": "%s",
"eposId": "%s",
"account": "%s",
"rrn": "%s",
"amount": "%s",
"payPurpose": "%s"
}', $ecomId, $agentId, $eposId, $account, $rrn, $amount, $payPurpose),
CURLOPT_POSTFIELDS => '{
"ecomId": "'.$ecomId.'",
"agentId": "'.$agentId.'",
"eposId": "'.$eposId.'",
"account": "'.$account.'",
"rrn": "'.$rrn.'",
"amount": "'.$amount.'",
"payPurpose": "'.$payPurpose.'"
}',
CURLOPT_HTTPHEADER => [
'Authorization: Basic YWRtaW46UUFad3N4MTIz',
'Content-Type: application/json',
'Content-Type: application/json'
],
]);