phpstan 1

This commit is contained in:
2025-03-10 15:55:22 +05:00
parent 6712e63a91
commit e59edfaeb9
5 changed files with 21 additions and 22 deletions

View File

@@ -8,16 +8,16 @@ trait HandlesBillingSyncing
{
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://10.3.158.102:8888/api/paytrn/new',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
curl_setopt_array($curl, [
CURLOPT_URL => 'http://10.3.158.102:8888/api/paytrn/new',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
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",
@@ -26,15 +26,16 @@ curl_setopt_array($curl, array(
"amount" : 895.46,
"payPurpose" : "Mart 2025"
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Basic YWRtaW46UUFad3N4MTIz',
'Content-Type: application/json'
),
));
CURLOPT_HTTPHEADER => [
'Authorization: Basic YWRtaW46UUFad3N4MTIz',
'Content-Type: application/json',
],
]);
$response = curl_exec($curl);
$response = curl_exec($curl);
curl_close($curl);
return $response;
curl_close($curl);
return $response;
}
}

View File

@@ -13,9 +13,9 @@ use Laravel\Nova\Makeable;
class OnlinePaymentRepo
{
use HandlesBillingSyncing;
use HandlesSberPeyments;
use HandlesVisaMasterPayments;
use HandlesBillingSyncing;
use Makeable;
/**