From 3a6a871c2ffe71127160a0027a1f006c7712be89 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 9 Sep 2025 16:51:30 +0500 Subject: [PATCH] wip --- app/Helpers/helpers.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php index 894ab23..d199476 100644 --- a/app/Helpers/helpers.php +++ b/app/Helpers/helpers.php @@ -454,15 +454,16 @@ function syncWithBankSystem( 'Content-Type' => 'application/json', 'Authorization' => 'Basic YWRtaW46UUFad3N4MTIz' ]; - $body = '{ - "ecomId": "'.$ecomId.'", - "agentId": "'.$agentId.'", - "eposId": "'.$eposId.'", - "account": "'.$account.'", - "rnn": "'.$rrn.'", - "amount": "'.$amount.'", - "payPurpose": "'.$payPurpose.'" - }'; + $body = sprintf('{ + "ecomId": "%s", + "agentId": "%s", + "eposId": "%s", + "account": "%s", + "rnn": "%s", + "amount": "%s", + "payPurpose": "%s" + }', $ecomId, $agentId, $eposId, $account, $rrn, $amount, $payPurpose); + $request = new GuzzleRequest('POST', 'http://10.3.158.102:8888/api/paytrn/new', $headers, $body); try {