pbliss Posted March 27, 2012 Share Posted March 27, 2012 Hi, My website (www.paperbliss.com.au) has only been active for 6 days and I have experienced 3 cases of the following Paypal error: A client has encountered a problem with the module PayPalAPI, see the report: PayPal response: TIMESTAMP -> 2012-03-27T11:38:05Z L_ERRORCODE0 -> 10413 L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details. L_LONGMESSAGE0 -> The totals of the cart item amounts do not match order amounts. L_SEVERITYCODE0 -> Error I understand this has something to do with rounding to 2 decimal places. I am using Prestashop V 1.4.3 and Paypal module V2.4. Could someone please advise how I resolve this issue? Thanks in advance, Nadine Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 27, 2012 Share Posted March 27, 2012 Hi Nadine, What version of PrestaShop are you running, and what is the version number of your PayPal module? -Mike Link to comment Share on other sites More sharing options...
pbliss Posted March 27, 2012 Author Share Posted March 27, 2012 I am using Prestashop V 1.4.3 and Paypal module V2.4. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 27, 2012 Share Posted March 27, 2012 I am using Prestashop V 1.4.3 and Paypal module V2.4. That could explain it. The older versions of the PayPal module can have some rounding issues. Can you please try using this version instead and let me know if that works any better for you? paypal.zip -Mike Link to comment Share on other sites More sharing options...
pbliss Posted March 27, 2012 Author Share Posted March 27, 2012 Thanks Mike, How do I install this version? Sorry I am not a programmer. I will be out for the next 2 hours but I will give it a go when I return if you could give me some guidance? Many thanks Nadine Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 27, 2012 Share Posted March 27, 2012 Hi Nadine, In your Back Office, just go to the Modules tab, click "Uninstall" for your existing PayPal Module, and then use the "Add a module from my computer" option at the top of the page to upload the .zip file I attached above. Alternatively, you can also unzip that file and replace the old version it in your /modules directory via FTP. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
pbliss Posted March 27, 2012 Author Share Posted March 27, 2012 Brilliant, thanks Mike. I have installed the new version and I replicated the problem order and it worked without errors. Thanks for your great service! Cheers Nadine Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 28, 2012 Share Posted March 28, 2012 Great, I'm glad I could help! I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
edwiny Posted March 30, 2012 Share Posted March 30, 2012 I have encountered the same error. The shop has worked fine for weeks with no issue of processing orders, but just got this message recently and with customer complaint about inability to check out. A client has encountered a problem with the module PayPalAPI, see the report: PayPal response: TIMESTAMP -> 2012-03-30T03:47:28Z L_ERRORCODE0 -> 10413 L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details. L_LONGMESSAGE0 -> The totals of the cart item amounts do not match order amounts. L_SEVERITYCODE0 -> Error PayPal returned error I am using Prestashop 1.4.7.0 PayPal v2.8.6 What can I do? Link to comment Share on other sites More sharing options...
drroot Posted April 6, 2012 Share Posted April 6, 2012 exactly the same problem here. I also use Paypal v2.8.6 and Prestashop 1.4.7.0. Previously everything runs fine. But today, got the same error message. I have encountered the same error. The shop has worked fine for weeks with no issue of processing orders, but just got this message recently and with customer complaint about inability to check out. A client has encountered a problem with the module PayPalAPI, see the report: PayPal response: TIMESTAMP -> 2012-03-30T03:47:28Z L_ERRORCODE0 -> 10413 L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details. L_LONGMESSAGE0 -> The totals of the cart item amounts do not match order amounts. L_SEVERITYCODE0 -> Error PayPal returned error I am using Prestashop 1.4.7.0 PayPal v2.8.6 What can I do? Link to comment Share on other sites More sharing options...
w3bsolutions Posted November 5, 2012 Share Posted November 5, 2012 same error, running PS 1.4.5.1 and PayPal 2.8.2 Link to comment Share on other sites More sharing options...
Site Posted November 27, 2012 Share Posted November 27, 2012 Hi, We also have the same error here... PrestaShop™ 1.4.3 & Paypal version v2.4 All of a sudden its stopped working ? Is it best to install the new version of the module? Link to comment Share on other sites More sharing options...
need4speed Posted November 28, 2012 Share Posted November 28, 2012 (edited) Any news on how to fix this problem. Im running 1.4.1 and I still have the same problem. Edited November 28, 2012 by need4speed (see edit history) Link to comment Share on other sites More sharing options...
rkinfo Posted December 15, 2012 Share Posted December 15, 2012 Using 1.4.9 and same problem here Link to comment Share on other sites More sharing options...
rkinfo Posted December 15, 2012 Share Posted December 15, 2012 (edited) A fix to this is to not use the line items. Prestashop already sends the customer a receipt with the PayPal TRANSACTIONID so there's no confusion, but it is *definitely* better to have line items working because it obviously can be a cause of confusion for you and the customer. To do this you need to change if ($discounts == 0) { $products = $cart->getProducts(); $amt = 0; for ($i = 0; $i < sizeof($products); $i++) { $request .= '&L_NAME'.$i.'='.substr(urlencode($products[$i]['name'].(isset($products[$i]['attributes'])?' - '.$products[$i]['attributes']:'').(isset($products[$i]['instructions'])?' - '.$products[$i]['instructions']:'') ), 0, 127); $request .= '&L_AMT'.$i.'='.urlencode($this->PayPalRound($products[$i]['price'])); $request .= '&L_QTY'.$i.'='.urlencode($products[$i]['cart_quantity']); $amt += $this->PayPalRound($products[$i]['price'])*$products[$i]['cart_quantity']; } $shipping = $this->PayPalRound($cart->getOrderShippingCost($cart->id_carrier, false)); $request .= '&ITEMAMT='.urlencode($amt); $request .= '&SHIPPINGAMT='.urlencode($shipping); $request .= '&TAXAMT='.urlencode((float)max($this->PayPalRound($total - $amt - $shipping), 0)); } else { $products = $cart->getProducts(); $description = 0; for ($i = 0; $i < sizeof($products); $i++) $description .= ($description == ''?'':', ').$products[$i]['cart_quantity']." x ".$products[$i]['name'].(isset($products[$i]['attributes'])?' - '.$products[$i]['attributes']:'').(isset($products[$i]['instructions'])?' - '.$products[$i]['instructions']:'') ; $request .= '&ORDERDESCRIPTION='.urlencode(substr($description, 0, 120)); } to $products = $cart->getProducts(); $description = 0; for ($i = 0; $i < sizeof($products); $i++) $description .= ($description == ''?'':', ').$products[$i]['cart_quantity']." x ".$products[$i]['name'].(isset($products[$i]['attributes'])?' - '.$products[$i]['attributes']:'').(isset($products[$i]['instructions'])?' - '.$products[$i]['instructions']:'') ; $request .= '&ORDERDESCRIPTION='.urlencode(substr($description, 0, 120)); They probably differ from version to version, but essentially eliminate the whole if ($discounts == 0) block and only use the "else" block code instead. Edited December 15, 2012 by rkinfo (see edit history) Link to comment Share on other sites More sharing options...
bijouxbylola Posted December 26, 2012 Share Posted December 26, 2012 Bonjour, Tout fonctionnais bien depuis quelques mois et là d'un coup !! 10413 PayPal response: TIMESTAMP -> 2012-12-26T20:38:26Z L_ERRORCODE0 -> 10413 L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details. L_LONGMESSAGE0 -> The totals of the cart item amounts do not match order amounts. L_SEVERITYCODE0 -> Error PayPal a retourné une erreur Que faire je suis en version Paypal 2.8.7 et Presta 1.4.6.2 Merci de votre aide. Link to comment Share on other sites More sharing options...
jwldub Posted April 16, 2013 Share Posted April 16, 2013 The PayPal module that comes pre-installed on Prestashop is old and out of date. It will not work. You will have to delete this from the Modules section and also in the public_html/store/modules/PayPal area of the file manager. Then you will need to download the updated FREE PayPal module here: http://addons.prestashop.com/en/search?search_query=paypal Then go back to the Prestashop Back Office Modules and then click “Add New” then upload the PayPal module .zip file. This should solve the PayPal problem. 1 Link to comment Share on other sites More sharing options...
netechx Posted July 1, 2014 Share Posted July 1, 2014 Hi Nadine, In your Back Office, just go to the Modules tab, click "Uninstall" for your existing PayPal Module, and then use the "Add a module from my computer" option at the top of the page to upload the .zip file I attached above. Alternatively, you can also unzip that file and replace the old version it in your /modules directory via FTP. I hope this helps. -Mike Hello Mike, I'm having problems with paypal express checkout - Please help ! Domain: mkehome.com Thanks in advance. Mo Bility Link to comment Share on other sites More sharing options...
mma87 Posted September 15, 2014 Share Posted September 15, 2014 Hi, I had the same problem. The reason is because I do the test with a product with product's price under 1 € (0,01 €) when I change the product's price to 1 € the problem is solved Matteo Link to comment Share on other sites More sharing options...
DArnaez Posted November 28, 2014 Share Posted November 28, 2014 I have the same problem witn Prestashop 1.6.09 and module 1.3.8 . I already uninstall and re install everything but nothing. THe problem still there and the sales drop. No solution yet. Link to comment Share on other sites More sharing options...
DArnaez Posted December 22, 2014 Share Posted December 22, 2014 Very dissapointed. Today another client flew after claim for the same error. He used my promoted "Christmas Discount" but got error 10413 paying with Paypal. In my other site running Zencart it works like a chime. Link to comment Share on other sites More sharing options...
Forgiven1 Posted May 16, 2015 Share Posted May 16, 2015 Hi all,I have the newest version of Prestashop running 1.6 I belive? I am getting this same problem. Just wandering if in 2015 there is a fix yet?Thanks Link to comment Share on other sites More sharing options...
zagierurruty Posted July 2, 2015 Share Posted July 2, 2015 Hello. I have the same problem testing my new PrestaShop commerce. PayPal support team referred me to this forum but I see no solution. I will have to avoid giving discounts? Thank you if someone has any suggestion. Regards. Sergio Link to comment Share on other sites More sharing options...
Arnaudf Posted July 4, 2015 Share Posted July 4, 2015 Same problem here with Prestashop 1.6 and Paypal v3.9. 1 Link to comment Share on other sites More sharing options...
detailfanatics Posted November 6, 2015 Share Posted November 6, 2015 Did anyone find a solution? I'm close to launching my store but need to finalize payment processing. Link to comment Share on other sites More sharing options...
Guest locen Posted November 30, 2015 Share Posted November 30, 2015 Hi, I have 1.0.6.9 of prestashop and this form has always worked but today I received these emails whit this text: Error reporting from your PayPalAPI module A client has encountered a problem with the module PayPalAPI, see the report: PayPal response: TIMESTAMP -> 2015-11-30T08:24:23Z L_ERRORCODE0 -> 10401 L_ERRORCODE1 -> 10427 L_ERRORCODE2 -> 10413 L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details. L_SHORTMESSAGE1 -> Transaction refused because of an invalid argument. See additional error for details. L_SHORTMESSAGE2 -> Transaction refused because of an invalid argument. See additional error messages for details. L_LONGMESSAGE0 -> Order total is invalid. L_LONGMESSAGE1 -> Shipping total is invalid. L_LONGMESSAGE2 -> The totals of the cart item amounts do not match order amounts. L_SEVERITYCODE0 -> Error L_SEVERITYCODE1 -> Error L_SEVERITYCODE2 -> Error messages anyone can help me? Link to comment Share on other sites More sharing options...
ZioFranky Posted December 21, 2015 Share Posted December 21, 2015 Are you guys all using PayPal Pro or PayPal standard? It seems the problem is related only to PayPal Pro account users. And problems are just not there. For example the manual capture won't work with any PayPal Pro account. This was confirmed by the PayPal module developers, in one of our open ticket. Same thing for discounted carts. We had the same problem, the total paid doesn't match the total of the cart. The developer of another module we bought, during his tests, confirmed that all works fine with PayPal Standard, but won't work with a PayPal Pro account. Link to comment Share on other sites More sharing options...
bbgun91 Posted April 5, 2016 Share Posted April 5, 2016 Hi, I ran into the same problem with my Prestashop 1.6 using Paypal USA&Canada v1.3.9 and using the Express Checkout mode.I found the solution which fixed the issue : The totals of the cart item amounts do not match order amounts. Dh42 wrote the solution in another post thread: In the Paypal folder, open the file controllers/front/expresscheckout.php find line 120 and remove .$nvp_request from the line,It should be almost at the end of the line. Source: https://www.prestashop.com/forums/topic/445960-paypal-error-code-10413/?p=2074417 This fixed the issue for me. 2 Link to comment Share on other sites More sharing options...
bbgun91 Posted April 5, 2016 Share Posted April 5, 2016 Actually, related to my previous post, i have to say that i tested simultaneously 2 Paypal modules. - One was proposed by Prestashop 1.6 : it's "Paypal USA, Canada" in version 1.3.9. - The other one is "Paypal v.3.5.7" The second one, i don't know if it's older or not... it seems to be... because i used to use it on Prestashop 1.4.10, and actually the result on the website is actually almost the same. The difference is that on Paypal v3.5.7, when i arrive on the Paypal interface, i got the new Paypal interface and it displays the amount of the transaction (you have to click on the total of the order which is summed up in the top right of the left block of the Paypal Interface. With "Paypal USA, Canada" in version 1.3.9, i have 2 different interface according to if i use "Express checkout" or "Standard". If i use standard, i have the old Paypal interface, which doesn't detail properly the order according to if i use discounts or not, and also depends of the number of discounts. If i use over than 1 discount, the whole order details will be summed up into 1 amount "item amount". Which is very bad, because it includes the different items amount + the different discounts + shipping fees + tax. So i used the "Express checkout" mode, and i finally got the new Paypal interface. Though, i noticed that the order amount actually doesn't display at all !!! And it will create a new customer account on your Prestashop website if the name of the Paypal customer is different from the name used to proceed the purchase on the Prestashop website. So i don't recommand "Paypal USA, Canada" in version 1.3.9. I would recommand Paypal v3.5.7 which seems to work fine. Link to comment Share on other sites More sharing options...
musicmaster Posted March 12, 2017 Share Posted March 12, 2017 A customer of me had the "item total invalid" error and - inspired by forum posts that it has to do with rounding - I decided to replicate his order. And indeed: that gave me the same error. When I added a product of just 5 cent the error was gone. This had to with Paypal with Fee but such workarounds might work elsewhere too. Link to comment Share on other sites More sharing options...
disennior Posted March 15, 2017 Share Posted March 15, 2017 Hi,when I uploaded the zip file I got this error: [PrestaShop] Fatal error in module file :/home3/disennior/public_html/saludwellness.net/modules/paypal/paypal.php:Cannot make non static method ModuleCore::display() static in class PayPal Now, every time I go the the modules section I receive the same error. Somebody knows how to solve this?? Link to comment Share on other sites More sharing options...
disennior Posted March 15, 2017 Share Posted March 15, 2017 I found this solution in a post and it works for me. If you are using the latest version of the module and using express checkout try this, it should fix your issue. Goto Modules/paypalusa/controllers/front/expresscheckout.php find line 120 and remove this from the line, .$nvp_request It should be at the end of the line almost Link to comment Share on other sites More sharing options...
Lynda Posted December 25, 2019 Share Posted December 25, 2019 How to fix this issue with the latest version of the Paypal module ? The file "expresscheckout.php" doesn't exist in my version. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now