PrestaShop Forums: [Module] Paypal Website Payment Pro UK - 3D secure implemented - FREE prestashop module - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[Module] Paypal Website Payment Pro UK - 3D secure implemented - FREE prestashop module


[Module] Paypal Website Payment Pro UK - 3D secure implemented - FREE prestashop module

#1 Dave Sniper

    PrestaShop Apprentice

  • 08 Nov 2008
  • Members
  • PipPip
  • 57 posts
  • Location:Birmingham, UK

Posted 22 December 2009 - 10:07 PM

Hi everyone,

We have rounded up this module and released for Prestashop Community.

This payment module allow you to accept credit and debit cards onsite - YES on your website.

More information and feedback please follow this link to my blog:


Paypal Website Payment Pro UK



Demo can be seen here:

http://www.quaycreat...prestashop1208/


That's it from us @ Quay Creative.


MERRY CHRISTMAS & HAPPY NEW YEAR


#2 thehandlestudio

    PrestaShop Apprentice

  • 25 Jan 2009
  • Members
  • PipPip
  • 250 posts
  • Location:Wales, United Kingdom

Posted 22 December 2009 - 10:33 PM

I think christmas has just come early this year.......

Thanks Dave for this module, this is fantastic news... do you know if the express checkout will be added?

Thanks again,

Mark.
The Handle Studio
http://www.thehandlestudio.co.uk
Bringing Quality Direct To Your Door

Top Quality Hosting & Support
Use presta8656 coupon code and get 10% extra off


#3 Artificial Colours

    PrestaShop Apprentice

  • 23 Nov 2009
  • Members
  • PipPip
  • 34 posts
  • Location:Sussex, UK

Posted 22 December 2009 - 11:03 PM

hi this looks like it could be a very nice module, does it require ssl?

and all when i upload it to my modules folder i get the error:
Fatal error: Call to undefined method Tools::gethttphost() in /user/htdocs/modules/paypaldirect/paypalcore/paypalwpp.php on line 105

im running with prestashop version 1.2.5

#4 Dave Sniper

    PrestaShop Apprentice

  • 08 Nov 2008
  • Members
  • PipPip
  • 57 posts
  • Location:Birmingham, UK

Posted 22 December 2009 - 11:58 PM

You need to add the function Tools::gethttphost() into your classes/Tools.php



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;
}



I think this function only appears in 1.2.5

#5 Dave Sniper

    PrestaShop Apprentice

  • 08 Nov 2008
  • Members
  • PipPip
  • 57 posts
  • Location:Birmingham, UK

Posted 23 December 2009 - 12:00 AM

From 1261517593:

I think christmas has just come early this year.......

Thanks Dave for this module, this is fantastic news... do you know if the express checkout will be added?

Thanks again,

Mark.


You're welcome Mark ;)

Not sure when express checkout is to include but I really love to get this done next year.

#6 bigstef

    PrestaShop Apprentice

  • 03 Oct 2008
  • Members
  • PipPip
  • 89 posts

Posted 23 December 2009 - 04:45 AM

I have managed to get this installed no problem after inserting the extra code.

For setting up Cardinal Centinel which details do you need to select.
For the section Custom Paypal Integration is it PaypalAPI or Payflow to be selected?
Is the development language php?

Looks a good module if everything works.

many thanks for sharing this.

#7 Dave Sniper

    PrestaShop Apprentice

  • 08 Nov 2008
  • Members
  • PipPip
  • 57 posts
  • Location:Birmingham, UK

Posted 23 December 2009 - 03:56 PM

From 1261539942:

I have managed to get this installed no problem after inserting the extra code.

For setting up Cardinal Centinel which details do you need to select.
For the section Custom Paypal Integration is it PaypalAPI or Payflow to be selected?
Is the development language php?

Looks a good module if everything works.

many thanks for sharing this.


In order to setup Cardinal Centinel you need a REAL paypal account. They will setup sandbox and live account for you once the application is approved. Normally it should take few hours.. Resubmit your application if you have not heard anything from them within a day (That's what I did :)

Follow this link to signup
http://paypal3dsregi...gistration.aspx


With regards to your second question.. it is Paypal Website Payment Pro

#8 chineseboy

    PrestaShop Apprentice

  • 07 Oct 2009
  • Members
  • PipPip
  • 109 posts

Posted 23 December 2009 - 10:43 PM

Hey, haven't been able to test this module yet, but I've installed it and it looks pretty good. Nice work!

#9 chineseboy

    PrestaShop Apprentice

  • 07 Oct 2009
  • Members
  • PipPip
  • 109 posts

Posted 23 December 2009 - 11:16 PM

Sorry, just noticed this, but isn't it part of the websites payments pro 'contract' that you have to have paypal's express checkout as a payment option?

#10 thehandlestudio

    PrestaShop Apprentice

  • 25 Jan 2009
  • Members
  • PipPip
  • 250 posts
  • Location:Wales, United Kingdom

Posted 27 December 2009 - 10:15 AM

Quote

You need to add the function Tools::gethttphost() into your classes/Tools.php


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;
}

I think this function only appears in 1.2.5



Would adding this piece of code work for using version 1.1 ?
The Handle Studio
http://www.thehandlestudio.co.uk
Bringing Quality Direct To Your Door

Top Quality Hosting & Support
Use presta8656 coupon code and get 10% extra off


#11 Dave Sniper

    PrestaShop Apprentice

  • 08 Nov 2008
  • Members
  • PipPip
  • 57 posts
  • Location:Birmingham, UK

Posted 27 December 2009 - 10:45 AM

From 1261905322:


Would adding this piece of code work for using version 1.1 ?



You need to add that function if getting the same error message after installation.

#12 thehandlestudio

    PrestaShop Apprentice

  • 25 Jan 2009
  • Members
  • PipPip
  • 250 posts
  • Location:Wales, United Kingdom

Posted 27 December 2009 - 11:11 AM

When i add the module to the folder and then click on the modules tab all of the modules have gone and left with a blank page, when i remove the paypal direct folder the modules come back with or without adding the piece of code in classes/tools.php.

Regards,

Mark.
The Handle Studio
http://www.thehandlestudio.co.uk
Bringing Quality Direct To Your Door

Top Quality Hosting & Support
Use presta8656 coupon code and get 10% extra off


#13 chineseboy

    PrestaShop Apprentice

  • 07 Oct 2009
  • Members
  • PipPip
  • 109 posts

Posted 28 December 2009 - 07:39 PM

Hey, it seems to be working great for me now. Disregard my previous post about paypal express. I was just being dumb. I realised I could just use the paypalapi module alongside this module and have that as the paypal payment option instead.

#14 DFW Products

    PrestaShop Apprentice

  • 19 Nov 2008
  • Members
  • PipPip
  • 99 posts

Posted 31 December 2009 - 06:40 PM

I found this module yesterday on a google search. All I can say is THANK YOU THANK YOU THANK YOU. It took some tweaking the code just a little to make it work for me. I have Paypal WPP US and it seems to work fine for me. I tested it and put through a test sale on a live site and it worked with no issues. The issue with it being made for the UK was it had a couple credit cards not used in the US, so I simply removed them from the list of cards, and changed the credit card logo on the payment page to reflect the four we use in the US.

You guys are great and have allowed me personally to take a deep breath and relax now that I have a WPP mod for Prestashop.

Also for those using the UPS mod it work fine with this WPP mod, no issues. I have this mod on two stores one is 1.2.5 the other is 1.2.1.0 and it seems to be working on both.

One warning about 1.2.5 for some stupid reason they took out the google base feed on the backend ???? I simply uploaded the one from my 1.2.1 ver and it works fine also.

Finally all seems to be working together :)

Thank You Guys for this MOD really! And I for one will be donating on your site. Please keep up the great work we all know how Prestashop loves to change things so as long as it working I am not upgrading again unless you guys update the mod to work with new releases of Prestashop.

#15 DFW Products

    PrestaShop Apprentice

  • 19 Nov 2008
  • Members
  • PipPip
  • 99 posts

Posted 31 December 2009 - 06:45 PM

From 1261908668:

When i add the module to the folder and then click on the modules tab all of the modules have gone and left with a blank page, when i remove the paypal direct folder the modules come back with or without adding the piece of code in classes/tools.php.

Regards,

Mark.


set your PHP to show errors and you will probably see the error on line 105. Thats the error you get when you dont add the code on 1.2.5. I simply commented out line 105. we cant use that 3D secure in the US anyway. I tried and it did not have an option for the US only the UK.

#16 Dave Sniper

    PrestaShop Apprentice

  • 08 Nov 2008
  • Members
  • PipPip
  • 57 posts
  • Location:Birmingham, UK

Posted 02 January 2010 - 12:02 PM

From 1262281224:

I found this module yesterday on a google search. All I can say is THANK YOU THANK YOU THANK YOU. It took some tweaking the code just a little to make it work for me. I have Paypal WPP US and it seems to work fine for me. I tested it and put through a test sale on a live site and it worked with no issues. The issue with it being made for the UK was it had a couple credit cards not used in the US, so I simply removed them from the list of cards, and changed the credit card logo on the payment page to reflect the four we use in the US.

You guys are great and have allowed me personally to take a deep breath and relax now that I have a WPP mod for Prestashop.

Also for those using the UPS mod it work fine with this WPP mod, no issues. I have this mod on two stores one is 1.2.5 the other is 1.2.1.0 and it seems to be working on both.

One warning about 1.2.5 for some stupid reason they took out the google base feed on the backend ???? I simply uploaded the one from my 1.2.1 ver and it works fine also.

Finally all seems to be working together :)

Thank You Guys for this MOD really! And I for one will be donating on your site. Please keep up the great work we all know how Prestashop loves to change things so as long as it working I am not upgrading again unless you guys update the mod to work with new releases of Prestashop.



Hey DFW,


It is really nice to hear a positive feedback from you and other people.. it is much appreciated. You're all more than welcome.

We are planing to develop another prestashop module "Prestashop Minify" which hopefully to improve the loading speed on your online store down to p....

By the way, if you can leave your feedback on my blog

http://www.sailboatv...stashop-module/

It would be fantastic.


Cheers and Happy new year to everyone. Hope all the bests in 2010.

#17 bigstef

    PrestaShop Apprentice

  • 03 Oct 2008
  • Members
  • PipPip
  • 89 posts

Posted 02 January 2010 - 12:44 PM

Hi
I have all the correct Paypal details and also registered with Centinel but have a problem

When I install the module and go through checkout, when I click on the pay with credit card on the pay options I get a 500 internal server error.

Any ideas where I could be going wrong. All permissions of the module have been 777 and also tried different setting but so far not getting past the 500 internal error.

#18 brisa

    PrestaShop Newbie

  • 06 Oct 2009
  • Members
  • Pip
  • 17 posts

Posted 02 January 2010 - 01:46 PM

Hi

I'm getting this error on both front and back store after adding that line of code suggested:

Parse error: syntax error, unexpected T_STATIC, expecting '{' in /usr/local/pem/vhosts/109861/webspace/httpdocs/boogtique/store/classes/Tools.php on line 18

#19 Paul C

    PrestaShop Fanatic

  • 02 Aug 2008
  • Members
  • PipPipPipPip
  • 1003 posts
  • Location:Dundee, Scotland, United Kingdom

Posted 02 January 2010 - 03:23 PM

Great work in taking this to a proper usable module Dave :)

Paul
Free Prestashop modules and developer resources

Latest Prestashop Developer articles:
* 1.4 Plugins Revisited – Part 1
* 1.4 Plugins Revisited – Part 2

Latest News:
Prestashop Module and Theme Developers can now Advertise on eCartService.net

#20 Dave Sniper

    PrestaShop Apprentice

  • 08 Nov 2008
  • Members
  • PipPip
  • 57 posts
  • Location:Birmingham, UK

Posted 02 January 2010 - 04:43 PM

From 1262436366:

Hi

I'm getting this error on both front and back store after adding that line of code suggested:

Parse error: syntax error, unexpected T_STATIC, expecting '{' in /usr/local/pem/vhosts/109861/webspace/httpdocs/boogtique/store/classes/Tools.php on line 18



it looks like you have broken the Tools.php class ;) You just need to add the extra function in between 2 existing one. Hope it has helped





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users