While working on a Paypal test with a customer we noticed that the module appears to have an error which requires users to enter the IPN return url in their paypal account settings. This obviously means that it isn’t possible to set up multiple stores using PrestaShop if you have a single paypal account.
The offending line (42) in paypal.tpl contains the form variable return_url. The post variable return_url doesn’t exist in the Paypal documentation, but the value being passed is correct for the IPN url. This line should likely be notify_url instead.
We’ll continue our testing to confirm that this solves the problem with IPN configuration for multiple stores using PrestaShop.
Update: Patched paypal.tpl file to address the above issue: Paypal.tpl updated
Comments
5 responses to “Possible bug in PrestaShop Paypal Module”
Hi, I am using the module and it seems to work well. It fixed the problem with the default paypal module that comes with prestashop. The only problem seems to be that even if a customer does not complete payment once on the Paypal website, they still get the email confirming they placed the order. Any ideas? Thanks!
Fixed in version 1.1 but you can fix it for 1.0.0.8 by downloading the replacement paypal.tpl file in the above post for now.
Bonjour,
Je rencontre exactement ce probleme. J’ai une boutique en ligne qui fonctionne sur un compte paypal et je souhaites utiliser ce même compte pour récolter les commandes d’un site que je suis en train de mettre en ligne sous prestashop.
N’a-t-on pas trouvé une réponse à ce problème, qui j’imagine doit être soulevé par nombreux utilisateurs ?
Thanks for that. Worked a treat, now awaiting customers orders.
Further testing has proved that the above fix does indeed remove the need to specify a return URL in your Paypal account. We’ll be feeding the fix into the PrestaShop along with a suggestion for setting the return method to allow automatic transfer of customers back to the correct page in your store.
Download of an updated paypal.tpl file (to replace the original in modules/paypal) has been added to the post above.