isample Posted December 5, 2015 Share Posted December 5, 2015 (edited) Hi, We're having a problem integrating Paypal Express on our shop, when we use a coupon code on our shop and try to use the paypal express checkout we're getting this error: 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: 10413Please contact our Customer service and mention this error code to get this issue resolved. I've been searching a lot how to fix this error, i tried to re-install our plugin, use the code that other members here offered but still i have no luck to fix this issue. I also tried to contact PayPal technical support and this is the reply from PayPal representative: In the prestashop platform, it is not passing the discount fee to Paypal to proceed the payment.(Missing the field like PAYMENTREQUEST_n_SHIPDISCAMT=22) That’s why Paypal will return the invalid argument error. Below is flow log extracted from Paypal and we can see the fields that were passed from Prestashop. And it seems a bug in Prestashop when you are using the discounts so far. SetExpressCheckoutRequest returnurl "http://URL/module/paypalusa/expresscheckout?pp_exp_checkout=1" cancelurl "http://URL/order" method "SetExpressCheckout" version "98" buttonsource "PrestashopUS_Cart" paymentrequest_0_currencycode "USD" paymentrequest_0_amt "213" paymentrequest_0_itemamt "220" paymentrequest_0_shippingamt "15" paymentrequest_0_paymentaction "Sale" paymentrequest_0_name "MR3148-KR3511" "Coupon" paymentrequest_0_number "1094" paymentrequest_0_qty "1" "1" This is the prestashop and Paypal module version that we're using: Prestashop v 1.6.0.1 PayPal USA, Canada 1.3.9 Thanks. Edited December 23, 2015 by isample (see edit history) Link to comment Share on other sites More sharing options...
isample Posted December 15, 2015 Author Share Posted December 15, 2015 Hello, Still looking for an answer. Thanks. Link to comment Share on other sites More sharing options...
Eolia Posted December 15, 2015 Share Posted December 15, 2015 Of course! This module is encoded with feet ... shipping costs are sent all taxes, so the total amount is wrong, your customer has paid too much and Prestashop can not validate the order (cool really ?) Link to comment Share on other sites More sharing options...
isample Posted December 16, 2015 Author Share Posted December 16, 2015 Hi Eolia, Thanks for responding to my question. The plugin works fine when the customer register on our shop and use the coupon code. Any work around how we will fix this issue? I'm more on frontend programming so i will really appreciate if someone can help me this fix this error. Thanks. Link to comment Share on other sites More sharing options...
doekia Posted December 16, 2015 Share Posted December 16, 2015 isample, Just fixed a paypalusa module 2 days ago on a Canada shop. Since it need some investigation on your settings, I propose you PM me so we can go a step further. Link to comment Share on other sites More sharing options...
karmacomposer Posted December 29, 2015 Share Posted December 29, 2015 I am also having this problem using the paypalusa module on the most current version of prestashop and I attempted to update the module. Still throws the same error as above. How do I fix this? Mike 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