bennyww Posted July 15, 2014 Share Posted July 15, 2014 I'm using prestashop 1.6.0.6 with paypal usa, canada 1.3.4.Everything works fine but when it redirect back to my site it receives an error 404 page. Could anyone advise and help? Many thanks.root/order-confirmation.php?id_cart=20&id_module=68&key=f857f01d27723abd3f198862da26f91b Link to comment Share on other sites More sharing options...
bellini13 Posted July 15, 2014 Share Posted July 15, 2014 edit line 378 of paypalusa.php change from((int)version_compare(_PS_VERSION_, '1.4', '>')) ? change to((int)version_compare(_PS_VERSION_, '1.5', '<')) ? 1 Link to comment Share on other sites More sharing options...
bennyww Posted July 16, 2014 Author Share Posted July 16, 2014 Thanks alot, it works! It did redirect back to my order history page but the latest order did not show up on the list unless i refresh page. Is there any way I can make the latest order show up on the list the moment its redirected? Pls help, thanks again. Link to comment Share on other sites More sharing options...
bellini13 Posted July 16, 2014 Share Posted July 16, 2014 This tells me the Paypal IPN is not reaching your store quickly info. To prove this, do another test, make the paypal payment, but this time do not use the link to return to your store. Instead, open your back office orders page in a new browser tab and refresh this page until you see the new order is created. Once you see the new order, that means your store received the IPN. Now go back to your paypal page and click the return link and you should see that the new order appears properly in the order history page. 2 Link to comment Share on other sites More sharing options...
bennyww Posted July 16, 2014 Author Share Posted July 16, 2014 The page got redirected back to my shop in 10secs. But I think you might be right, so what should I do nxt? Thanks again. Link to comment Share on other sites More sharing options...
bellini13 Posted July 16, 2014 Share Posted July 16, 2014 The page got redirected back to my shop in 10secs I told you not to click the continue to store link. There are 2 of them. When you submit the payment from the paypal website, you click one link to return. Then you get a second page on paypal that tells you it is redirecting within 10 seconds, or you can click the link to return immediately. DO NOT CLICK EITHER LINK DURING THIS TEST.... just submit the payment and stop As for the slow IPN, there is not much you can do without a rewrite of the module. Link to comment Share on other sites More sharing options...
bennyww Posted July 17, 2014 Author Share Posted July 17, 2014 i think the problem is bcos i set auto return turn on in paypal setting. everything is ok now, thanks so much for help bellini13! Link to comment Share on other sites More sharing options...
bellini13 Posted July 17, 2014 Share Posted July 17, 2014 ah, makes sense now, paypal was auto redirecting too quickly and not giving your store enough time to process the IPN. disabling that was the right option. Link to comment Share on other sites More sharing options...
Recommended Posts