Paypal Website Payment Pro Module (UK & US) – Free Prestashop Module

December 22nd, 2009

ADVERTISEMENTS

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

  1. Prestashop version 1.2.5 (older version need  to update the Tools.php class..)
  2. Signup Paypal Website Payment Pro account
  3. 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 (384)

 

Test cards

Centinel Integration Guide (151)

 

That’s it from us @ Quay Creative.

You might interested in all Related Posts

Categories: E-commerce, Prestashop | Tags: , , , , ,

62 Comments

  1. Daniel Lee

    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!

  2. Steve "DFW Products"

    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.

  3. Dave Sniper

    Thanks everyone for your positive feedbacks. Much appreciated.

    Hung

  4. Corey

    Hi Dave

    Just got to say a big thanks for this module and to keep up the good work……

  5. Tony

    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

  6. Dave Sniper

    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

  7. bob

    Nice1! You are the man!

    Much Love

    anon xxx

  8. Lou

    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

  9. Dave Sniper

    The easiest way to add the function getHttpHost() is to search for the line below in class/Tools.php class file.

    1
    
    static public function completeMetaTags($metaTags, $defaultValue)

    and add the following code above it

    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    static public function getHttpHost($http = false, $entities = false)
    	{
    		$host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST']);
    		if ($entities)
    			$host = htmlspecialchars($host, ENT_COMPAT, 'UTF-8');
    		if ($http)
    			$host = (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').$host;
    		return $host;
    	}

    Download the text version of this function here
    http://www.sailboatvn.com/wp-content/uploads/getHttpHost.txt

  10. Lou

    You Clearly Are A Legend,
    The code worked perfectly, thanks a million.
    Lou

  11. Dave Sniper

    Thanks for a positive feedback Lewis. All the bests :D

  12. Tanya

    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

  13. bob

    a few hints for further development

    http://www.onextrapixel.com/2010/01/19/put-your-ecommerce-checkout-on-a-diet-plan/

  14. Bris

    Hi
    How do i change the default currency from USD to EUR?
    Many thanks

  15. Lou

    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

  16. 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

  17. Dave Sniper

    @ 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.

  18. Lou

    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!

  19. Tanya

    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

  20. Dave Sniper

    @Tanya: Just use Paypal API

  21. Tanya

    thank ya kindly Dave :)

    heres that hug btw
    {{HUG}}
    ;)

  22. bob

    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?

  23. Dave Sniper

    @Bod: I’ve never tried it but I think it should.

  24. GIANNI

    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.

  25. GIANNI

    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!

  26. Dave Sniper

    @GIANNI: You would need to modify the code a bit for your country’s currency.

  27. Stig

    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!

  28. Mendel

    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!

  29. Dave Sniper

    @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)

  30. tanya

    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

  31. Martyn

    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

  32. Stig

    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?

  33. Stig

    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…..

  34. Dave Sniper

    @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

  35. Stig

    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.

  36. J. Duke

    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?

  37. Dave Sniper

    @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.

  38. bob

    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

  39. 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…..

  40. bob

    …meant to say ‘wouldn’t mind’. Oops!

  41. Dave Sniper

    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

  42. Peter

    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

  43. Anthony

    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

  44. bob

    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…

  45. Gerald

    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

  46. Dave Sniper

    @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.

  47. Laurynas

    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

  48. Ian

    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

  49. Anthony

    HA! – sorry totally misread

  50. Anthony

    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.

  51. Stig

    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.

  52. Dave Sniper

    @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.

  53. Stig

    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?

  54. Daniel

    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

  55. corey

    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….

  56. Dave Sniper

    @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.

  57. Daniel

    Thanks Dave, I’ll check to make sure that both the paypal api module and your Paypal WPP work together.

  58. Mark

    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.

  59. Corey

    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…..

  60. Anthony

    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

  61. Corey

    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…….

  62. Corey

    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…

Leave a comment