barrystein Posted March 18, 2016 Share Posted March 18, 2016 (edited) When a customer tries to use a coupon code or a cart rule or voucher, they get an error when trying to check out via paypal The error says: Unfortunately, an error occured while communicating with PayPal. Short Error Message: Transaction refused because of an invalid argument. See additional error messages for details. Detailed Error Message: The totals of the cart item amounts do not match order amounts. Error Code: 10413 Please contact our Customer service and mention this error code to get this issue resolved. I am using the module PayPal USA, Canada Developed by :PrestaShop| Version :1.3.9 I am running Prestashop 1.5.4.1 using PHP version: 5.2.17 MySQL version: 5.5.42-37.1-log Edited March 18, 2016 by barrystein (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted March 19, 2016 Share Posted March 19, 2016 See if this will help in the standard.tpl file located in modules/paypalusa/views/templates/hook edit the file and at lines 41 & 48 change the change the true to false as below. {assign var="paypal_usa_total_discounts" value=$cart->getOrderTotal(false, Cart::ONLY_DISCOUNTS)} Link to comment Share on other sites More sharing options...
shokinro Posted March 20, 2016 Share Posted March 20, 2016 @barrystein, fix provided by @tdr170 should fix the issue if it is caused by tax related calculation. but if the issue is caused by rounding of floating digits, it might be not work, check if the amount difference is very tiny (a few cents), if that is the case, then it might be complicated calculation. just in case, if you are still not able to resolve the issue, you may consider to try Agile Paypal Express Checkout module - it has additional features. Link to comment Share on other sites More sharing options...
barrystein Posted March 22, 2016 Author Share Posted March 22, 2016 See if this will help in the standard.tpl file located in modules/paypalusa/views/templates/hook edit the file and at lines 41 & 48 change the change the true to false as below. {assign var="paypal_usa_total_discounts" value=$cart->getOrderTotal(false, Cart::ONLY_DISCOUNTS)} No that didn't fix it.... Link to comment Share on other sites More sharing options...
shokinro Posted March 23, 2016 Share Posted March 23, 2016 you may try our agile paypal express checkout module. you can find details here Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2016 Share Posted March 23, 2016 Since this did not work you should use the module I posted here. https://www.prestashop.com/forums/topic/419632-paypal-no-order-in-bo-temp-fix-16/ It is the Euro version but works perfectly, I modified the PayPal payment logo to the US version. 1 Link to comment Share on other sites More sharing options...
barrystein Posted March 23, 2016 Author Share Posted March 23, 2016 Thank you.... your module fixed the problem perfectly..... do you recommend using the paypal log in option? Since this did not work you should use the module I posted here.https://www.prestashop.com/forums/topic/419632-paypal-no-order-in-bo-temp-fix-16/It is the Euro version but works perfectly, I modified the PayPal payment logo to the US version. Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2016 Share Posted March 23, 2016 Thank you.... your module fixed the problem perfectly..... do you recommend using the paypal log in option? Never used this myself. Link to comment Share on other sites More sharing options...
barrystein Posted March 23, 2016 Author Share Posted March 23, 2016 The paypal express checkout is showing on the product pages. how do I get it off the product pages and just in the check out pages Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2016 Share Posted March 23, 2016 Go to Modules, Positions scroll down the list and find displayFooterProduct and unhook PayPal from this position. Link to comment Share on other sites More sharing options...
barrystein Posted March 23, 2016 Author Share Posted March 23, 2016 thanks what about getting it on the first page of checkout - instead of just on the payment page Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2016 Share Posted March 23, 2016 Switch to one page check out then it will sow just below the cart, and you customers will be happier. Link to comment Share on other sites More sharing options...
barrystein Posted March 23, 2016 Author Share Posted March 23, 2016 thanks again for all the help much appreciated... Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2016 Share Posted March 23, 2016 All good now? Link to comment Share on other sites More sharing options...
barrystein Posted March 24, 2016 Author Share Posted March 24, 2016 yes all good Link to comment Share on other sites More sharing options...
barrystein Posted March 30, 2016 Author Share Posted March 30, 2016 for some reason There is no place to enter voucher codes in checkout. This just happened, I don't know why the place to enter vouchers disappeared. It was there a few days ago. Is it something I did above like displayFooterProduct and unhook PayPal from this position. Link to comment Share on other sites More sharing options...
tdr170 Posted March 30, 2016 Share Posted March 30, 2016 Unhooking PayPal from cart footer should not effect the voucher as they are completely different. Double check vouchers and make sure they are valid no expiration date for example. To test you could reset the PayPal module, once your sure this is not the issue you could always unhook from product footer again. (i do not think this is the issue) Can you post a link to your site. Link to comment Share on other sites More sharing options...
barrystein Posted March 30, 2016 Author Share Posted March 30, 2016 it appears to be a cache cookie issue. The voucher entry area shows up in private browsing, or on another computer going to the website fresh having not been there before www.homeschool-shelf.com 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