If you are having trouble with PayPal IPN on Godaddy hosting and keep getting emails with "PayPal IPN: Invalid", then it is curl settings in the ipn.php file. I am using OSCMax 1.7. Below is part of the coding in ipn.php ....
function authenticate($domain) {
$paypal_response = '';
$curl_flag = function_exists('curl_exec');
if($curl_flag) {
$ch = @curl_init();
@curl_setopt($ch, CURLOPT_URL, "https://$domain/cgi-bin/webscr");
@curl_setopt($ch, CURLOPT_POST, true);
@curl_setopt($ch, CURLOPT_POSTFIELDSIZE, 0);
@curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_response_string);
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@curl_setopt($ch, CURLOPT_TIMEOUT, 120);
//BEGIN GODADDY FIX
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
//@curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
@curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
@curl_setopt($ch, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");
//END GODADDY FIX
$paypal_response = @curl_exec($ch);
@curl_close($ch);
if($paypal_response == '') $curl_flag = false;
}
Also, see See
Using CURL - Help Center—Knowledge Base and FAQ
Bookmarks