PrestaShop Forums: PayPal 2.1 Beta 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 !


PayPal 2.1 Beta module


PayPal 2.1 Beta module

#1 Didier

    PrestaShop Newbie

  • 08 Feb 2009
  • Members
  • Pip
  • 3 posts

Posted 28 April 2009 - 03:02 PM

Hi All,

For the user of the Paypal module version 2.0 beta, i have make some bug correction and french language update.
This new version is the Paypal module version 2.1 beta and it works perfectly !

- Bug fix : Now the user get a email " Payment accepted" after PayPal validation
- French translation for the payment interface
- French translation for the paypal page link

You can find the Paypal version 2.1 beta in the zip file

Attached File(s)



#2 Philippe Sang

    PrestaShop Fanatic

  • 02 Nov 2007
  • Members
  • PipPipPipPip
  • 2136 posts
  • Location:Paris

Posted 28 April 2009 - 03:12 PM

Some security holes inside ;)
Philippe SangOpen-Source Developper | Développeur Open-Source
Help PrestaShop, make a donation !

#3 Didier

    PrestaShop Newbie

  • 08 Feb 2009
  • Members
  • Pip
  • 3 posts

Posted 28 April 2009 - 03:15 PM

less than in version 1.4 .. is not it?

#4 Philippe Sang

    PrestaShop Fanatic

  • 02 Nov 2007
  • Members
  • PipPipPipPip
  • 2136 posts
  • Location:Paris

Posted 28 April 2009 - 03:16 PM

No security hole in the module given by PrestaShop.
Philippe SangOpen-Source Developper | Développeur Open-Source
Help PrestaShop, make a donation !

#5 Didier

    PrestaShop Newbie

  • 08 Feb 2009
  • Members
  • Pip
  • 3 posts

Posted 28 April 2009 - 03:35 PM

Could you tell me which hole type and i will try to solve it ? Thank you

#6 Philippe Sang

    PrestaShop Fanatic

  • 02 Nov 2007
  • Members
  • PipPipPipPip
  • 2136 posts
  • Location:Paris

Posted 28 April 2009 - 03:36 PM

Vars coming from post (strval(), intval() are missing).
Philippe SangOpen-Source Developper | Développeur Open-Source
Help PrestaShop, make a donation !

#7 Didier

    PrestaShop Newbie

  • 08 Feb 2009
  • Members
  • Pip
  • 3 posts

Posted 29 April 2009 - 09:19 AM

HI

Version 2.1 beta 1 with security holes correction.

strval and intval added ! maybe too much ;-))

This modules is a evolution of the original module from http://www.ecartserv...ule-prestashop/

Attached File(s)



#8 pouet

    PrestaShop Newbie

  • 27 Mar 2009
  • Members
  • Pip
  • 18 posts

Posted 22 June 2009 - 11:53 AM

good job

#9 Guest__*

  • --
  • Guests

Posted 16 July 2009 - 05:38 AM

hi, could you have a English update version? thank you very much

#10 Paul C

    PrestaShop Fanatic

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

Posted 16 July 2009 - 09:31 AM

Great work by the way. It would be nice to modify the original on my site if that's ok to reflect these good modifications? I haven't had time to work on these myself for a while, so it's good to see that the community is still actively working on it. Full credit will be given, of course :)

From 1240928160:

No security hole in the module given by PrestaShop.


Wow now there's a bold claim :lol: I'm sure you didn't really mean to say that ;)

In validation.php the post variables are those returned by Paypal, and I don't personally see that they're a risk, given that they are generated by ourselves, posted by us to PayPal, returned by PayPal and then verified that they haven't been tampered with between PayPal and ourselves (via the IPN callback to PayPal in validation.php).

If PayPal returns invalid data, then there's an error in the transaction, so it could easily be viewed that forcing the type to an integer/string is actually bad practice, and better you would validate the values returned from PayPal to ensure that they are the correct type (e.g. numeric, non-zero) - if you really feel it's necessary at all - which it isn't in my opinion. The IPN mechanism is very hard to manipulate, unless you can modify the script as part of the exploit - in which case your intval() and strval() calls won't help you!

One of the problems with adding those intval() and strval() calls (certainly in the validation.php script) is that you're actually manipulating the data returned by PayPal and should there be a problem, you may well have lost valuable diagnostic data. I would certainly remove them from the debug entries, and log the actual POST variables at the very least.

Where this appears to still be open to manipulation is modification of the form posted to PayPal FROM the store, for example by changing the amount to pay (paypal.tpl) - the IPN return values should really be checked by the validation.php script to detect such manipulation. This isn;t as trivial as it seems, given that you potentially have to deal with currency conversions too.

As I said, good work and I'll have a look at the diffs to see what's changed and maybe see if there's anything else that could be added to make this even better :)

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

#11 Hoodgrown

    PrestaShop Apprentice

  • 14 Mar 2009
  • Members
  • PipPip
  • 370 posts

Posted 16 July 2009 - 02:38 PM

What does this module do differently... or does that 1.4 doesn't do?
Also, is there an English Translation or no?
PetsRight.com
http://www.petsright.com
http://www.twitter.com/petsright

My Interview In Practical Ecommerce Magazine
http://www.practical...ime-s-The-Charm

#12 Paul C

    PrestaShop Fanatic

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

Posted 16 July 2009 - 04:44 PM

This was intended to get around lots of issues folks were having, by actually logging the responses from PayPal (other than just checking that the transaction was ok). It also creates an order BEFORE the IPN comes back - this has been an issue when PayPal have taken up to 15 hours to send an IPN to your store. The standard module will still show the products in the customer's cart, and no order in the front or back office until an IPN has been received.

The original is in english. I'm not sure if any new messages added are in english too, but I suspect that they are ;)

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

#13 Hoodgrown

    PrestaShop Apprentice

  • 14 Mar 2009
  • Members
  • PipPip
  • 370 posts

Posted 16 July 2009 - 05:01 PM

Sounds good... I wonder if the author can improve upon the Google CHeckout as well. I received my first order through Google and the order wasn't logged.
PetsRight.com
http://www.petsright.com
http://www.twitter.com/petsright

My Interview In Practical Ecommerce Magazine
http://www.practical...ime-s-The-Charm

#14 kingsnake

    PrestaShop Apprentice

  • 01 Aug 2009
  • Members
  • PipPip
  • 28 posts

Posted 25 August 2009 - 09:47 AM

doesn't work for me - I get server errors:

MAIN error_log:

[Tue Aug 25 04:42:44 2009] [error] [client 72.231.19.192] SoftException in Application.cpp:256: File "/home2/shoptoyl/public_html/modules/blockcart/blockcart-set-collapse.php" is writeable by group, referer: http://www.myshop.com/

[Tue Aug 25 04:42:44 2009] [error] [client 72.231.19.192] Premature end of script headers: blockcart-set-collapse.php, referer: http://www.myshop.com/

[Tue Aug 25 04:42:44 2009] [error] [client 72.231.19.192] File does not exist: /home2/shoptoyl/public_html/500.shtml, referer: http://www.myshop.com/

[Tue Aug 25 04:43:02 2009] [notice] mod_fcgid: process /usr/local/cpanel/cgi-sys/default.fcgi(28349) exit(idle timeout), get stop signal 15

[Tue Aug 25 04:43:06 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

The directories are all CHMOD to 777, IPN is also set up but no dice. Any ideas?

#15 Katmatcreations

    PrestaShop Apprentice

  • 22 Jan 2009
  • Members
  • PipPip
  • 326 posts
  • Location:Melbourne Australia

Posted 25 August 2009 - 06:22 PM

From 1247759072:

This was intended to get around lots of issues folks were having, by actually logging the responses from PayPal (other than just checking that the transaction was ok). It also creates an order BEFORE the IPN comes back - this has been an issue when PayPal have taken up to 15 hours to send an IPN to your store. The standard module will still show the products in the customer's cart, and no order in the front or back office until an IPN has been received.

The original is in english. I'm not sure if any new messages added are in english too, but I suspect that they are ;)

Paul


Wow 15 hours for IPN to arrive?

Has anyone raised that with paypal? That seems a little wierd, i know recently they did some upgrades and logging into the webserver was slow but 15 hours is a fairly long time!

#16 Neoasimov

    PrestaShop Newbie

  • 30 Sep 2009
  • Members
  • Pip
  • 1 posts

Posted 30 September 2009 - 10:17 PM

Hi here,


Quick question: is it normal that the only difference between this v2.1 and v2.0 is the new debug info in the validation.php file?

I am wondering is Paul or Didier did update the code on their side, which would then explain that there is no other differences between the files.


Otherwise, I don't see this fix "- Bug fix : Now the user get a email “ Payment accepted” after PayPal validation – French translation for the payment interface – French translation for the paypal page link" neither in the code, nor in action.


Thanks for helping me figuring out what is happening :)

#17 connexion

    PrestaShop Newbie

  • 29 Jan 2009
  • Members
  • Pip
  • 3 posts

Posted 01 October 2009 - 03:04 AM

I have been using the PayPal v2 beta from Paul for a couple months already. It works great. But one thing that I notice that when the customer click the PayPal link in the last step of the order, then the PayPal screen will appear.

If the customer pay straight away, the order is updated with 'Payment Accepted' status. That is as expected.

But if the customer decide to pay later, he/she closes the paypal screen. When the customer comes back to his/her order in the prestashop, the customer couldn't find the PayPal button in the order screen to pay.

At the moment, everytime such thing happen, I cancel the order and ask the customer to repeat the buying process again.

Is there anyway to make the PayPal button appear in the order screen if the order status is 'awaiting PayPal Payment'

Thanks.

I hope my explanation is clear enough.

#18 Xiao

    PrestaShop Apprentice

  • 10 Sep 2009
  • Members
  • PipPip
  • 46 posts
  • Location:London, UK

Posted 09 October 2009 - 08:17 AM

whats the difference between yours and ecartservices

#19 eknepfler

    PrestaShop Newbie

  • 12 Feb 2009
  • Members
  • Pip
  • 12 posts

Posted 26 March 2010 - 04:19 PM

Can anyone confirm that this module resolves the problem of orders not being saved into PrestaShop after clicking "return to site" from the Paypal screen, which results in the user being told they have not placed any orders, no orders in backoffice, and the order still in the cart, even though they just finished paying with PayPal?

Well I just tried it and got "order creation failed" as soon as the user clicks the pay with paypal button.

I guess Paypal is completely unfixable under Prestashop at the moment.

#20 AffordableFiberOptics

    PrestaShop Apprentice

  • 21 Dec 2009
  • Members
  • PipPip
  • 63 posts

Posted 30 March 2010 - 05:55 PM

Any ideas?


Hack attempt (OrderHistory -> id_order_state is empty)

Works okay on test server but I get that in production.

Thanks.
Patrick





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users