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_RETURNTRANSFER => true,
CURLOPT_ENCODING => '', CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10, CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 5, CURLOPT_TIMEOUT => 0,
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 => sprintf('{ CURLOPT_POSTFIELDS => '{
"ecomId": "%s", "ecomId": "'.$ecomId.'",
"agentId": "%s", "agentId": "'.$agentId.'",
"eposId": "%s", "eposId": "'.$eposId.'",
"account": "%s", "account": "'.$account.'",
"rrn": "%s", "rrn": "'.$rrn.'",
"amount": "%s", "amount": "'.$amount.'",
"payPurpose": "%s" "payPurpose": "'.$payPurpose.'"
}', $ecomId, $agentId, $eposId, $account, $rrn, $amount, $payPurpose), }',
CURLOPT_HTTPHEADER => [ CURLOPT_HTTPHEADER => [
'Authorization: Basic YWRtaW46UUFad3N4MTIz', 'Authorization: Basic YWRtaW46UUFad3N4MTIz',
'Content-Type: application/json', 'Content-Type: application/json'
], ],
]); ]);