function getBankAccountInfo($accountNumber, $bankCode, $apiKey) { $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://shabanic.ir/api/v1/bank_account_info?account_number={$accountNumber}&bank_code={$bankCode}", 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_HTTPHEADER => array( "SHABANIC-API-KEY: $apiKey" ), )); $response = curl_exec($curl); curl_close($curl); return $response; }