phpBBHS Update - Important PayPal Fix
Posted: 23 Sep 2012, 20:31
PayPal is doing a change to IPN taking affect February 1, 2013 which affects phpBBHS
We have updated phpBBHS with the fix and include included a hotfix for ipn forum upgrade system.
Hotfix
Open hs/ipn.php
Find around line 72
Replace with
We have updated phpBBHS with the fix and include included a hotfix for ipn forum upgrade system.
Hotfix
Open hs/ipn.php
Find around line 72
Code: Select all
$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Host: www.paypal.com\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .= "Connection: close\r\n\r\n";
Code: Select all
$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
if ($adFreeSettings['sandbox'] == 0)
$header .= "Host: www.paypal.com\r\n";
else
$header .= "Host: www.sandbox.paypal.com\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .= "Connection: close\r\n\r\n";