Paypal IPN ipn_verify function issue with fsockopen function


Hello everyone,

I am sing paypal.class.php file for paypal.

I make a payment with a Sandbox account and It return some issue. After that, that’s what my ipn listener is returning:

HTTP/1.0 302

Found Location: https://www.sandbox.paypal.com

Server: BigIP

Connection: Keep-Alive

Content-Length: 0

In this issue payment make successfully but ipn_verify() function return unverified result.

I found the solution of this problem in Paypal.class.php

// open the connection to paypal change the line

$fp = fsockopen($url_parsed[host], “80”, $errNum, $errStr, 30);

with

$fp = fsockopen(‘ssl://’.$url_parsed[‘host’], “443”, $errNum, $errStr, 30);

For more help please use the following link:

https://www.x.com/developers/paypal/forums/instant-payment-notifications-ipn-payment-data-transfer-pdt/ipn-returning-html-page-instead-verified-or-invalid

4 responses to “Paypal IPN ipn_verify function issue with fsockopen function

  1. I am really loving the theme/design of your site. Do you ever run into any web browser compatibility problems? A couple of my blog readers have complained about my website not operating correctly in Explorer but looks great in Opera. Do you have any solutions to help fix this problem? I forgot to say marvelous article but you could write about different topics for example healthy living, Thank you!…

Leave a reply to eranuragjain Cancel reply