From 161f99309977e2d39e547c8bc54ca255317d28be Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 9 Sep 2025 16:23:03 +0500 Subject: [PATCH] wip --- app/Helpers/helpers.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php index f36472b..ef5ed04 100644 --- a/app/Helpers/helpers.php +++ b/app/Helpers/helpers.php @@ -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' ], ]);