VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: RobertG on July 06, 2014, 11:23:34 AM

Title: PayPal and customer addresses with quote
Post by: RobertG on July 06, 2014, 11:23:34 AM
Hello,

I have a problem on two site hosted on the same hoster: as soon as customer address includes a quote (in French it's frequent as "rue de l'aubépine" and PayPal payment "Let buyers override their PayPal addresses?" set to "Yes", we got an error
QuoteERROR Validation IPN invalide
How to solve that?

Thanks for help!
Robert

Edit: sorry, I omitted precisions: VM version is 2.6.6, and orders stay "pending", not "confirmed" although PayPal payment is accepted
Title: Re: PayPal and customer addresses with quote
Post by: RobertG on July 07, 2014, 12:21:53 PM
No response? :(

I tested a new site with VM 2.9.8 version, Joomla! 3.3.1 and PayPal Sandbox: no error with quotes in addresses or names

I tried to upgrade sites clones 2.6.6 to 2.9.8: impossible to validate cart, checkout remains on the same cart page.
Title: Re: PayPal and customer addresses with quote
Post by: alatak on July 12, 2014, 16:43:26 PM
Salut Robert

It is strange, because the fix i gave you via skype for 2.6.6 is included in the version 2.9.8

The fix is :
in function plgVmOnPaymentNotification in the file plugins/vmpayment/paypal/paypal.php
replace
      $paypal_data = vRequest::getPost();

by

                $paypal_data = $_POST;
   

If this does not work, please contact me via skype, i will have a look. Thanks.
Title: Re: PayPal and customer addresses with quote
Post by: RobertG on July 13, 2014, 10:43:03 AM
Merci Valérie !

This message was posted before we talked on Skype .

My request was for the same site, that is using VM 2.6.6 (not 2.9.8 where checkout don't work, il I update 2.6.6), and your suggestion
Quote$paypal_data = $_POST;
works fine on 2.6.6.

Robert