Paypal Website Payment Pro Module (UK & US) – Free Prestashop Module
December 22nd, 2009
This module is based on the beta version of Paypal Direct API which developed by Paul Campbell. We have improved and enhanced 3D Secure authentication… This is very important for UK’s user as from the 1st January 2010, 3D secure authentication must be implemented for customers who pay by Visa or Maestro card.
Introduction:
Paypal Website Payments Pro allows you to accept payment directly on your website or by phone, fax and mail. Customers can pay you with all major debit and credit cards as well as PayPal balance and bank transfers.
With this solution you get all the benefits of a merchant account and gateway in one solution. This package should also include PayPal Express Checkout which enables buyers to checkout in as little as three click, however, for this initial version v1.0.0 we have not included this on the checkout page.
In order to use this Paypal WPP Module for Prestashop, you need
- Prestashop version 1.2.5 (older version need to update the Tools.php class..)
- Signup Paypal Website Payment Pro account
- Signup Cardinal Centinel for 3D secure (note: Paypal use Cardinel Centinel to handle 3D secure authentication)
For testing purpose you can setup Paypal Sandbox and Cardinel Centinel sandbox account.
Paypal WPP Pro Module’s key features:
- Accept payment directly on your website
- 3D secure authentication implemented (Visa verified & Mastercard secure for UK)
- Accept payment in various currencies (Pounds, USD , Euro, Canadian Dollar, Yen etc..)
Demo
We installed this module on prestashop 1.208. You need to add a missing function getHttpHost() to get it working (Read this comment #comment-676) . Latest version 1.2.5 should be fine. See LIVE DEMO here…. Paypal Website Payment Pro UK
Screenshots
(the screenshots took from my live site.. you may see it differently on yours)
Feedback
Your feedback is really appreciated. We have spent a lot of time to create this module and distribute it to our Prestashop Community. ![]()
Download
Free Prestashop Payment Module - Paypal Website Payment Pro UK (1039)
Test cards
Centinel Integration Guide (469)
That’s it from us @ Quay Creative.
You might interested in all Related Posts
Categories: E-commerce, Prestashop | Tags: free module, free-prestashop-module, paypal, paypal wpp, Prestashop, prestashop modules






Awesome module!!! Thankyou so much for developing this. I was going to do it myself, but my php skills aren’t all that and it would have taken me forever!
I just found this MOD for prestashop, the Paypal WPP and it works GREAT! THANK YOU so much for finally bringing the problem to an end. I have heard and spoken to alot of people who love Prestashop and need the Paypal WPP to make it happen. Finally its come to pass, we can use prestashop with our WPP finally. THANKS GUYS and please keep up the great work.
Thanks everyone for your positive feedbacks. Much appreciated.
Hung
Hi Dave
Just got to say a big thanks for this module and to keep up the good work……
Hi,
I tumbled into this blog from the prestashop forum and wao, this module is exactly what I have been waiting for 6 months! Definitely will try and feedback. GREAT, GREAT!
Ah, would you consider to work on some small projects for our website? I will send you a private email about this.
Thanks for a great module for all the presta fans out there.
Cheers,
Tony
Re Tony: thks for the feedback. Much appreciated
With regards to your projects, please feel free drop me an email, we shall then take from there.
All the bests,
Hung
Nice1! You are the man!
Much Love
anon xxx
Hi Guys,
Any help please on this getHttpHost() line that needs to be added? Not sure where it goes but when I FTP the module to my site, the modules area in PrestaShop crashes.
Help would be very appreciated.
Many MANY thanks
The easiest way to add the function getHttpHost() is to search for the line below in class/Tools.php class file.
and add the following code above it
Download the text version of this function here
http://www.sailboatvn.com/wp-content/uploads/getHttpHost.txt
You Clearly Are A Legend,
The code worked perfectly, thanks a million.
Lou
Thanks for a positive feedback Lewis. All the bests
I am super excited about getting your mod installed, thank you so much for the FREE and great contribution to presta. I was at my whits end…then someone told me about your mod
Was wondering…any way to make it run with USD currency?
thnx again my friend
a few hints for further development
http://www.onextrapixel.com/2010/01/19/put-your-ecommerce-checkout-on-a-diet-plan/
Hi
How do i change the default currency from USD to EUR?
Many thanks
Hi All,
I have the module installed, My Pay Pal Pro API certificate details entered, my Cardinel Centinel details entered and once I try a test sale, I am directed to an error 500 screen?
Does this module require that you have SLL via your host?
And is so, does your site have to have a seperate IP address to work correctly with SLL.
Any thoughts would be appreciated as Ive now just slumped in my chair, out of ideas.
Thanks,
Lou
I managed to solve my problem and thought I’d share (although Im pretty sure most of you guys know this).
Hosting permissions were set incorrectly at 755. They should be set to 644.
The module is live and running.
Many thanks again
@ Bris: You can change the default currency via Back Office > Payment > Currencies restrictions and simply tick for desired currency.
@Lou: Which version of Prestashop are you using? You don’t need to have SSL for this module, however, it is recommended for all online store anyway.
Hi Dave,
Yes your right. I didnt need SSL and it works brilliantly! Its been advised though that I do set up SSL as Im taking cards, but cant rave enough about the module, awesome!
in regards to this post
http://www.prestashop.com/forums/viewthread/38359/#171104
i cannot see paypal pro as an option at Cardinal Centinel
i see
paypal api – soap/nvp
payflow SDK
unknown
so do i just selected the ‘unknown’?
thanks muchly
@Tanya: Just use Paypal API
thank ya kindly Dave
heres that hug btw
{{HUG}}
Just wondered if this can be used in conjunction with any of the one-page-checkout / guest check out mods out there? If so, any tips?
@Bod: I’ve never tried it but I think it should.
Hi all! Important question!
Since in the title there’s US&UK, my question is whether I can pay with this module in other countries (Slovakia).
Thank you.
Hi all!
I’m just trying to get this module working on my site, but before the setup, there’s one important question – in the title of this article there’s “US&UK” -does it mean only payments coming from these countries are enabled? What about others (e.g. Slovakia)??
Thanks for you help! Appreciated a lot!
@GIANNI: You would need to modify the code a bit for your country’s currency.
How do I know the module is working correctly on my site? I didn’t receive any documentation from Cardinal Centinel so I don’t have the numbers for any test credit or debit cards to run through my shop. I’ve run test credit cards using the card numbers from PayPal sandbox, and they go through, but the ‘verified by visa’ authentication never shows.
Are there some test credit /debit card numbers I can use that will work in Sandbox?
This is a great module, thanks!
Do I need a Cardinal Centinel account to get this module working in the US? How do I sign up for one (if it is required)? How much does it cost? Thanks!
@Stig: Cardinal Centinel document could be found via this link http://www.sailboatvn.com/download/Centinel.IntegrationGuide.PayerAuthentication.pdf . Test cards are in chapter 7.
@Mendel: Cardinal Centinel account is FREE. you need to sign up a Paypal account first and then signup for Paypal WPP (not free)
my client contacted Cardinal and in reply he got this…
Currently Prestashop has not integrated 3-D Secure into their platform. However, we do have a partnered called, Quay Creative, who built a certified module for 3-D Secure for Prestashop merchants.
i have sent them an email telling them we are not using a default prestashop module, rather one that was written by Dave Sniper, and gave this url as a reference for them. Fingers crossed
Do you have any plans, or is there anyway you can release code that is 100% stand-alone from presta shop?
I am using DoDirectPayment NVP, and need to integrate 3ds, but i am having issue, just wondered if your work can be use stand-alone?
thanks
During tests and also with live payments I don’t get to see the Cardinal Centinel redirect page for card enrolled in 3D secure. The payments are authorised and complete successfully. Am I missing something?
The module passes the field ‘id_product’ to PayPal (PayPal show this as ‘Item Number’). How can I change it so that it passes the product field ‘reference’ instead? It makes more sense to see the product reference alongside the product description instead of the database id (a number that has no real meaning unless you look it up in a table.
Many thanks…..
@Stig: Did you use the test cards in the Centinel integration guide for 3D secure transaction?
If you would like to change the product id to product reference, please get in touch with our company Quay Creative (info@quaycreative) for a free quote.
All the bests
In Test Mode: For test cards, yes, I used the test cards from the Centinel integration guide.
In Live Mode: I used a live working Visa card, enrolled in 3D secure.
In both cases the payment processed fine, but without the redirect page showing.
I am in the USA and I cannot find anything about how to register with centinel! I have paypal WPP and everything but I cannot configure the module without centinel credentials. How in the heck do I get centinel credentials?
@Stig: you need to view the activity record in Centinel and if your card required 3D secure then you need to get in touch with Cardinal Centinel company to resolve this matter.. ask them what is happening.
@J.Duke: Not too sure if 3D secure is required for US, you need to contact Paypal staff and ask them. They would definitely give you the best answer.
Just a lil’ security question.
When the customer enters their cc info and clicks ‘confirm order’, I’m assuming their cc details are kept in a cookie at least until the next page. Please can you confirm this? Please can you assure us there are no security risks with this plugin? Cheers,
Bob
One more Q. Will there be a paid version of this module with tech support? It handles the customers holy of holy’s, so would mind paying extra for peace of mind…..
…meant to say ‘wouldn’t mind’. Oops!
Hey Bob,
To answer your questions:
1. This Paypal WPP module does not store customer info / credit card detail in cookies or database. All information retrieved from the POST method passed straight on to Cardinal Centinel server.. Therefore no need to be worry.
2. Please get in touch with Quay Creative to get support http://www.quaycreative.com/contact/ or simple send email to me via info@quaycreative.com
Cheers
Hello.
Looks like a great module.
For us outside UK/US (Sweden) Can we use this module with some tweaking, or is it totally different systems between the different countries PayPal functions? I hope you understand my question, my English isn’t that great.
Thanks
Peter
I am getting the following emails from paypal regarding issues with the IPN, it appears others are also getting similar issues:
Please check your server that handles PayPal Instant Payment Notifications
(IPN). Instant Payment Notifications sent to the following URL(s) are
failing:
http://www.conceptcopters.com/store/modules/paypalapi/ipn.php
If you do not recognize this URL, you may be using a service provider that
is using IPN on your behalf. Please contact your service provider with the
above information. If this problem continues, IPNs may be disabled for your
account.
Thank you for your prompt attention to this issue.
Thanks, Anthony
The mastercard / visa secure code links on the payment screen take you to url’s on your own site. They appear to have been designed to open in a thickbox style box, but don’t. Have I broken something or is this a feature we need to implement ourselves? If so, any tips…
keep getting this error 1. Security header is not valid
What am I doing wrong need answer asap working on a live shopping cart site
@Anthony: PaypalAPI module is not our module. You need to ask this question in Prestashop forum so other could help.
@Bob: You’re absolutely right, you can change it to a normal hyper link.
@Security header is not valid is due to incorrect Paypal username or password. You need to double check all your details.
The module looks great. Thank you so much!
However, when trying to checkout after entered details for 3D secure I get this error in prestashop:
01. Transaction was marked as untrusted. Please use your different card
What does it mean? Is it supposed to be as I am testing in sandbox mode (both paypal and Centinel) Or it is some real error? I get the same error on your testing prastashop page.
Thanks
Hello,
Fantastic module, thanks a lot. Will certainly be donating at some point.
One issue I have, is that although I have the default currency set as Pound in my store, the default currency on the payment page on the drop down option is USD.
How can I change this?
Regards,
Ian
HA! – sorry totally misread
Please help… i have 2 big problems. 1st, when someone uses a discount code, it still charges the full amount, before the discount.
2nd, I have a product that when purchased, it is charging the wrong amount to the card (although displaying correct in prestashop). It almost appears to be the cost price of the item, but not quite right. When looking at the payment breakdown in paypal, it seems to have the correct amount of vat, according to the purchase.
URGENT: I also have the same BIG problem as Anthony – when someone uses a voucher, the order shows correctly in PrestaShop BUT the customer still gets charged the full amount before discount.
@Anthony + Stig: It looks like the discount code is not handled correctly. For all urgent matters, please get in touch with Quay Creative at info@quaycreative.com for commercial supports.
I have 49 orders processed with this module and 22 of them have not charged the full order amount to the card. This is the same problem as Anthony, and is in addition to the problem with discounts not being deducted.
I made contact with info@quaycreative.com and they are helping with the discount issue. Today I have found this new problem and have sent another email asking for help.
Does anyone else see this problem, and have you found a fix?
Hi Dave,
With regards to the express checkout button, I was using the Paypal API module aswel as your module, so that the customers could go direct to the Paypal website if they wished. I was wondering which notification url I should be using if I’m using both payment modules as you can only enter one notification url on the paypal website. I need to know because it says on the paypal website that paypal express must be there as an option and I don’t see that with your module. Any help would be really appreciated.
Daniel
Hi Dave
have been using you module now for about a month and have just noticed that it is not transfer correct amount to paypal… if my customer orders more than one of the same product it shows the correct price on the credit card page to be paid but paypal only charges for one item any help would be great to fix this….
@Corey: I could not replicate this issue from my end. Is there anything you done cause this?
@Daniel: Not too sure about the notification url, but it wouldn’t needed for paypal direct.. just use for the paypal module is fine.
Thanks Dave, I’ll check to make sure that both the paypal api module and your Paypal WPP work together.
I’m trying to use this module for a US based company. Has anyone been able to get it working? Because it is US and not UK there doesn’t seem to be a way to get signed up for Cardinal Centinel, nor does it seem to be required in the US but I don’t know how to make the module work without the Centinel information. Any help would be greatly appreciated. I’m on a time crunch and don’t know any other way to integrate PayPal payment into my site.
Hi Dave
no i have not done anything, looking back through my paypal it has happened from the day i installed it but never noticed.
it seems i have only had 5 orders where the customer order more than 1 item of the same product so have not lost to much money..
All other payment modules are working fine so this leads me to think its the paypal pro module…..
Corey – this may be the cause that I am seeing, as I only see it when two or more of the same item is purchased. I’d need to check back to see if it is just certain items, as at initial review, it was specific to two items, but thinking about it, this may be because these are the only items that people are buying in multiples… and it is actually mor wide spread than i initially thought
Anthony
Yes i only spotted it this weekend but going back through paypal account it seems when ever an order was taken when the buyer buys multiple of the same item it only charges for one… i have just taken another order and it has happened again….
i have now had to disable the module and gone back to using Nochex as Quay quoted me £100 to fix it…….
Have also noticed that when i get the paypal confirmation it normaly lists all the products that have been purchased in the order..
But when someone buys multiples of one product then the paypal confirmation does not list any products it just shows payment and postage details…
Hiya Dave, hope you are doing well.
I have the module installed and received the info from centinel but am having a hell of a time trying to test it. Nothing I do seems to work for me
I have tried contacting brad over at centinel and have emailed info@quaycreative.com but have not had any replies.
Any chance i can steal some of your time?
thanks kindly
Tanya
Hi Tanya, thanks for your comment. Just a quick update that i have just answered your email
sorry about the late response.
hey Dave
nice to hear from ya.
I have received your email and have replied
thank you for your help
Tanya
Dave, I am facing different problem here. Whatever amount I am passing is turning to decimal. Say I am submitting an amount of $36. Then post submission it is showing $.36. So basically it is dividing the amount by 100 always. Do you have any idea? Thanks for your help!
Sachin
Hello Dave, I also want to confirm that module has an issue when handling orders when multiple items of the same product are bought. Is anyone working on that? May be any solution?
Thanks.
Laurynas
Laurynas
see my post further up Dave wants £100 to fix this…..
Hi Dave.
I was wondering about this multiple products issue with this module. Is there any chance that you will release an update with this fixed. This is something that I feel alot of people really need. It’s a shame because a problem like that pretty much breaks this module and makes it unusable.
Thankyou for taking the time to make this module, but now it has been released and unfortunately is unusable. Would fixing a problem like this take a long time?
Hi everyone,
Thank you very much for taking your time to give me your thoughts about this module. Unfortunately, I am extremely busy this period and therefore have no intention of doing any work for this module till end of April.
All the bests,
Dave
Hello,
I am very interested in implementing this module on my web shop. However, I am slightly concerned with the problems that people are currently experiencing – has this project been abandoned or is support still available?
Many Thanks,
Melissa.
Dave, can you confirm that you will work on fixing this problem? It renders the module completely useless if it is never fixed unfortunately, and is a shame really. Luckily i can wait a few weeks so all i want is to know whether or not you will fix it. Thanks for your efforts so far!
It is not 100% guarantee that you will get an update of this module in the end of month. However, you can always seek for commercial supports from Quay Creative or other developers who could help you to overcome some issues.
I’m going to setup a Github account for this module, hopefully it would attract more developers or users to put some more efforts or contribution into this module.
Hi Dave,
I’m having trouble getting this to work properly. I keep getting transaction cannot be processed. It’s not paypals end because I used the Paypal API and that worked. It might be something to do with Cardinal. Do you have any idea where I might have went wrong?
I’m really having trouble getting this to work. Dave I’m very confused why I can’t get this to work in sandbox mode. I have a Websites payment pro account and also a Cardinal account yet Everytime I process an order the payments come back as transaction could not be processed.
Hi Dave. Where can we find this Github account?
Finally got this module working live. Couldn’t get it to work in sandbox though. Anyone know why not?
From looking through forum posts I’ve been able to cobble together something that (for me) seems to fix the multiple items problem and the double tax issue. This has not been robustly tested so use at your own discretion.
From the paypalcore folder I edited the paypalwpp.php file at like 527. My version now looks like:
[code]
paypalwpp.php file now looks as follows from line 527 (original lines commented out):
// $itemTotal += number_format($Product['total'],2,'.',''); //No convert
// $itemTotalConverted += number_format($Product['price'] * $this->selectedCurrency->conversion_rate,2, '.', '');
$itemTotalgross = number_format($cart->getOrderTotal(true, 4), 2, '.', '');
$itemTotal = $itemTotalgross-$taxTotal;
$itemTotalConverted = number_format($itemTotal * $this->selectedCurrency->conversion_rate,2, '.', '');
[/code]
The two commented lines are the original code, and what follows replaces those two lines.
Hope this helps.
Hi,
Bit of a major panic here, I copied the paypaldirect folder into out modules folder and now i cant get into either the cart or the admin page of our prestashop installation – i get a blank page both times… please help!
@Andy: Thanks for your post. Hope the module works well for you site.
@Gareth: Which version of prestashop are you using? Try to delete the module via FTP as well. It’s worth checking the log on your server and let me know what error message are you getting once installed this module.
Dave,
I’m not sure to check the version of prestashop without being able to get to the admin page sorry.
I have removed the module via ftp and also removed the function from the tool.php file. I cannot get to an admin page at all, it just shows a blank page with the admin page url in the address bar. The front shop, although it appears to be working will not let me ‘add to cart’ any product, if I try to do that it shows a blank page with the following url in the address bar.
http://www.ciberdirect.co.uk/cart.php?qty=1&id_product=991&token=5fc1f281e62f16ceeba93a333b0f6691&add
Gareth
Hi Gareth,
I can now see the blank page but can’t see any error message. If you can get the log (error message) from your server then I could have a look.
Cheers