i have been making payment test using paypal sandbox with both merchant and buyer account and everything is ok until i get to the point where i received email in my buyer inbox that says:
Paypal payment notification refused: Connection to Paypal failed for the order B3Q7
Hello,
A Paypal notification was refused because the connection to the confirmation server failed.
i have been searching through the forum and they say that it could be the problem with my hosting site blocking outgoing connection. so i called them, but they say they do not block any connection. now i'm stuck and don't have any idea what to do since i don't even know where the problem is. i'm thinking either to my change my hosting site or try bypassing the checking ip mechanism but i'm not even sure if buying a new hosting would solve my problem and the problem is really not on the hika side. can you help me confirm the real problem? thanks
That problem happens when hikashop cannot establish a connection to paypal. It's either because your hosting company is blocking outgoing connections or because the fsockopen function of PHP is blocked in your PHP configuration (that's also something on your hosting company side). You can of course remove the check in the paypal plugin and keep the IP check. That should hopefully be enough security. However, each time you update hikashop you will have to reapply the modification to the paypal plugin.
Changing of hosting company should solve the problem as long as you dont go with another hosting company which blocks outgoing connections...
ok. thank you for your advice. another question though, if i decided to remove the paypal check and just make it automatically change the order status to 'confirmed', would you kindly tell me how to do it exactly so that i won't waste anymore time studying and keep testing it till i get how i want it.
by the way, i have already told all my fellow e-commerce friends that your system is one of the best in the market. it just need a very detail tutorial that will be so useful for beginners, especially those without any joomla or css background at all. hope u guys can continue updating it till it's perfect. keep up the good work.
You can edit the file plugins/hikashoppayment/paypal.php and remove the code from the line (included):
$fp = fsockopen ( $url, $url, $errno, $errstr, 30);
until the line (not included):
$completed = preg_match("#Completed#i", $vars);