Files
online.tbbank.gov.tm-larave…/app/Repos/Payment/Billing/HandlesBillingSyncing.php
2025-03-16 01:34:49 +05:00

50 lines
1.4 KiB
PHP

<?php
namespace App\Repos\Payment\Billing;
trait HandlesBillingSyncing
{
/**
* Sync with billing
*/
// public static function syncWithBilling(): bool|string
// {
// $curl = curl_init();
// 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 => sprintf(
// '{
// "ecomId" : "%s",
// "agentId" : "%s",
// "eposId" : "30401238",
// "account" : "130420912769753",
// "rnn" : "110784016238",
// "amount" : 895.46,
// "payPurpose" : "Mart 2025"
// }',
// // $uuid,
// // $bankCode,
// ),
// CURLOPT_HTTPHEADER => [
// 'Authorization: Basic YWRtaW46UUFad3N4MTIz',
// 'Content-Type: application/json',
// ],
// ]);
// $response = curl_exec($curl);
// curl_close($curl);
// return $response;
// }
}