Wednesday, October 28, 2009

Working Paypal Module for Prestashop

I just finished adding the Paypal payment option for our e-commerce site that uses Prestashop as the shopping cart application. I'm quite getting more comfortable configuring and editing the source code of Prestashop, but along with those modifications is the failure of the default Paypal payment module that came with the Prestashop code package to fail.

I was having the error "cart empty" when it redirects to the Paypal's site, I tried modifying the module files with no luck. I searched over the Prestashop forums on how to make the Paypal module work, or an alternative module for Paypal integration with Prestashop. Here are some solutions I tried:

  • Changed the permissions on the Paypal module directory (/prestashop/modules/paypal) to 777 - did not work

  • Code modifications to the Paypal module, and even the sources of the Prestashop installation - did not work either


Then I tried this modified Prestashop Paypal module here, and surprisingly it worked like a charm! Here were the steps I did to install the working Paypal module for prestashop:

  • Uninstalled the Paypal module from the Prestashop back office

  • Deleted the files inside the paypal module folder

  • Uploaded the modified module to the paypal folder

  • Installed the paypal module from the back office

  • Tried it out with some Paypal sandbox accounts

  • Done!


We were using PSBill before for our transactions, but now it doesn't allow Mastercard transactions anymore for businesses that do not have permits from Europe (not sure what country) so we had to use Paypal as a payment option.

Thanks to eCartService.net for the great Paypal module! And also to the Prestashop community! I love open source!

1 comment:

  1. Nice looking blog you have, but if anyone needs to get back on Paypal and you are blacklisted from selling, try the Paypal Stealth eBook and get back online today. If you are blacklisted, limited, or suspended from selling on Paypal, the Paypal Stealth eBook will help you get past all of that and start selling today. Try them out!

    ReplyDelete