Peter Li Posted October 15, 2020 Share Posted October 15, 2020 I got a issue with paypal payment. I set free shiping when order over $75.00. If the order under $75.00 and the payment via paypal very easy. But when the order over $75.00, when checkout, the page should below, Error in Paypal Should equal sum of (unit_amount * quantity) across all items for a given purchase_unit I checked the moudle of Paypal and got a log recorded as below, Error code: 0;Short message: Should equal sum of (unit_amount * quantity) across all items for a given purchase_unit; Anyone can help me for that? Thanks! Link to comment Share on other sites More sharing options...
joseantgv Posted October 15, 2020 Share Posted October 15, 2020 Have you contacted module developers? Link to comment Share on other sites More sharing options...
Peter Li Posted October 15, 2020 Author Share Posted October 15, 2020 Yes, I contact with the module developer and he replayed as below, “This problem is related to an override of Cart.php. This is an override of the getOrderTotal method, which we use to calculate the Cart Total to then send it to Prestashop. This override is done by a another module installed in your prestashop, once I deactivate this module, everything is fine and we have no errors.” I checked Cart.php but I don’t know where is wrong. Link to comment Share on other sites More sharing options...
joseantgv Posted October 16, 2020 Share Posted October 16, 2020 Then you need to contact to the module developers that install this override. Link to comment Share on other sites More sharing options...
Peter Li Posted October 19, 2020 Author Share Posted October 19, 2020 The module developer said the same words to me...They advise me to contact prestashop developer to fix the problem. Link to comment Share on other sites More sharing options...
joseantgv Posted October 19, 2020 Share Posted October 19, 2020 And which is the problem to contact them? 😅 Link to comment Share on other sites More sharing options...
Peter Li Posted October 19, 2020 Author Share Posted October 19, 2020 I have no idea now. The problem is, when I apply the tax to the product, PayPal will show the error. No faulty if there is no tax on the product. Link to comment Share on other sites More sharing options...
joseantgv Posted October 19, 2020 Share Posted October 19, 2020 But just contact to module developers and let them investigate the problem. Link to comment Share on other sites More sharing options...
[email protected] Posted March 29, 2021 Share Posted March 29, 2021 This is a pure paypal bug, when sending amount_breakdown as defined here https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown the error is thrown. The solution is to set all field to 0 except: `item_total` which should equal `amount` Link to comment Share on other sites More sharing options...
joseantgv Posted March 30, 2021 Share Posted March 30, 2021 (edited) hace 19 horas, [email protected] dijo: This is a pure paypal bug, when sending amount_breakdown as defined here https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown the error is thrown. The solution is to set all field to 0 except: `item_total` which should equal `amount` But this should be fixed by the module developers 🤷♂️ Edited March 30, 2021 by joseantgv (see edit history) 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