Ich habe eine Nachricht von PayPal, dass auf einer meiner Websites muss ich sicherstellen, dass HTTPS für die Verifizierung Postback verwendet wird. Eine andere Website mit identischem Code hat keine solche Nachricht erhalten und arbeitet mit Sandbox, was meiner Meinung nach bedeutete, dass die Überprüfung korrekt war.PayPal-IPN-Verifikationsupdate
Mein Code ist wie folgt. Muss ich es ändern?
$req = 'cmd=_notify-validate';
foreach ($_POST as $key => $value)
{
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}
// post back to PayPal system to validate
$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .="Host: www.paypal.com\r\n";
$header .="Connection: close\r\n\r\n";
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);