Kontrol edilen sayfaya POST veya GET ile hiç bir veri gelmiyor.

Böyle bir şey yazmışlar ben anlamadım, ne yapmam gerekiyor sizce?
5
●114

$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $this->payment_url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, $postData);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
$output = curl_exec($ch);
curl_close($ch);
$decode = json_decode($output, true);
return header('Refresh: 0; URL =' . $decode['paymentResult']['url']);Burası ödemeyi başlatmaya ait olan curl bölümü buraya mı header eklememiz gerekiyor? [COLOR=#D9DAE9][FONT=consolas]$ch = curl_init();[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] curl_setopt($ch,CURLOPT_URL, $this->payment_url);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] curl_setopt($ch,CURLOPT_HEADER, false);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] curl_setopt($ch, CURLOPT_POST, $postData);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);[/FONT][/COLOR]
curl_setopt($ch, CURLOPT_HTTP_VERSION , "CURL_HTTP_VERSION_1_1");
curl_setopt($ch, CURLOPT_HTTPHEADER , array( "Content-Type: application/x-www-form-urlencoded" ));
[COLOR=#D9DAE9][FONT=consolas] $output = curl_exec($ch);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] curl_close($ch);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] [/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] $decode = json_decode($output, true);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] [/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas] return header('Refresh: 0; URL =' . $decode['paymentResult']['url']);[/FONT][/COLOR]
[COLOR=#D9DAE9][FONT=consolas][/FONT][/COLOR]