MicahCarrick / PHP-PayPal-IPN

PHP 5 class to listen for and handle Instant Payment Notifications (IPN) from PayPal.
BSD 3-Clause "New" or "Revised" License
418 stars 252 forks source link

Concatenating to a variable that doesnt exist [yet] #4

Closed sjobe closed 12 years ago

sjobe commented 12 years ago

On lines 140 to 143 of ipnlistener.php, you have

    $header  .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
    $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
    $header .= "Content-Length: ".strlen($encoded_data)."\r\n";

but the $header variable isnt defined anywhere else, it was causing my code to fail. I changed the first line and now I have

    $header  = "POST /cgi-bin/webscr HTTP/1.0\r\n";
    $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
    $header .= "Content-Length: ".strlen($encoded_data)."\r\n";

It works.

MicahCarrick commented 12 years ago

This has been fixed.