rewuxiin Posted January 6, 2017 Share Posted January 6, 2017 (edited) payment error - warning £85 paid instead of £85 A stripe of pay if the module - all ok if pay Paypal module - error However, the operation is carried out in Paypal, after payment - get the Confirmed, the database status paypal confirmed as the same data module Where validation occurs after the payment? What could affect the occurrence of this error? Edited January 6, 2017 by rewuxiin (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted January 8, 2017 Share Posted January 8, 2017 From the warning message, the amount looks like the same, usually this error occurs only when the amount is different. Is it possible that the amount you passed to Paypal is different from the order amount because of floating points that you did not display on your store? For example in database it was €85.01 and €85.02, but you displayed as €85 because for your displaying format configuration? 1 Link to comment Share on other sites More sharing options...
rewuxiin Posted January 8, 2017 Author Share Posted January 8, 2017 On 1/8/2017 at 1:33 AM, shokinro said: For example in database it was €85.01 and €85.02, but you displayed as €85 because for your displaying format configuration? Yes I have off Decimals. Example this product price = 110.74 and cart rule = -30% Link to comment Share on other sites More sharing options...
bellini13 Posted January 8, 2017 Share Posted January 8, 2017 it is a defect in prestashop. if you turn off decimals, prestashop still stores the values in decimal in the database, but you are sending the non-decimal (rounded) value to paypal. so after payment is made, prestashop checks the payment amount against the database's decimal (non-rounded) value and they do not match, and you get an error since EUR has decimals, your best bet is to turn them back on 1 Link to comment Share on other sites More sharing options...
rewuxiin Posted January 8, 2017 Author Share Posted January 8, 2017 On 1/8/2017 at 12:47 PM, bellini13 said: it is a defect in prestashop. Thanks. I noticed that in the basket, when you upgrade discount occur strangeness + -1 Link to comment Share on other sites More sharing options...
shokinro Posted January 8, 2017 Share Posted January 8, 2017 yes, I agreed with @bellini13 I think the best solution is to change your configuration to have 2 decimals format. 1 Link to comment Share on other sites More sharing options...
Lemonhead Posted January 9, 2017 Share Posted January 9, 2017 Hello rewuxiin..Did you get rid of the problem?I have 2 decimals, but I still get paypal payment errors.Not everytime, but most of the time... Link to comment Share on other sites More sharing options...
shokinro Posted January 9, 2017 Share Posted January 9, 2017 If that is the case, I think it is the calculation related issues. I guess the details item list including price has been sent to Paypal, can paypal calculated the total amount, but there total amount is different from the total calculated by PrestaShop. It is caused by decimal rounding related issue. you may need to contact the author of the module to fix the issue. Link to comment Share on other sites More sharing options...
Lemonhead Posted January 9, 2017 Share Posted January 9, 2017 Thank you, shokinro.I will contact the author of the module. Link to comment Share on other sites More sharing options...
Lemonhead Posted January 10, 2017 Share Posted January 10, 2017 The author of the module is prestashop.So it is kind of a dead end at the moment, but I`m thinking about the Essential-Support. Link to comment Share on other sites More sharing options...
afshop Posted March 7, 2017 Share Posted March 7, 2017 On 1/10/2017 at 8:41 AM, Lemonhead said: The author of the module is prestashop. So it is kind of a dead end at the moment, but I`m thinking about the Essential-Support. Hi, I have me too the same problem with the last version of paypal 3.11.3 and PS. 1.6.1.11 I have some payment error for a difference of 0.01 euro. How did you solve it? thanks Angela Link to comment Share on other sites More sharing options...
rewuxiin Posted March 7, 2017 Author Share Posted March 7, 2017 (edited) On 3/7/2017 at 9:12 AM, afshop said: Hi, I have me too the same problem with the last version of paypal 3.11.3 and PS. 1.6.1.11 I have some payment error for a difference of 0.01 euro. How did you solve it? thanks Angela For a product without VAT, set the price with decimal not more than two. For example, without vds price == 15.702479 With VAT, it is displayed == 19.00 However, this is not the case - when recounting, it turns out that 15.702479 == 19.0004 and when the store rounds to a larger one, it turns out 19.01, although with payment indicated at 19.00 I decided this way - 15.702479 remove the extra = 15.7000 we see the price with VAT the same at 19.00, however, when recalculating, we get 18,9993543 and when rounding by the store when buying to the whole we get 19.00 Well, or as an option, if the version Prestashop > = 1.6.1 - set the rounding to the whole down, maybe it will work too. Edited March 7, 2017 by rewuxiin (see edit history) Link to comment Share on other sites More sharing options...
Lemonhead Posted March 14, 2017 Share Posted March 14, 2017 On 3/7/2017 at 9:12 AM, afshop said: Hi, I have me too the same problem with the last version of paypal 3.11.3 and PS. 1.6.1.11 I have some payment error for a difference of 0.01 euro. How did you solve it? thanks Angela Hi Angela... Still no solution. But I`ll check rewuxiin`s advice. Thanks & Best Whishes Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2017 Share Posted March 14, 2017 Try changing rounding to per item not per line. Seems to work Link to comment Share on other sites More sharing options...
Lemonhead Posted April 3, 2017 Share Posted April 3, 2017 Thank You, Ron.Your advice seems to be really great.I changed the rounding option almost 2 weeks ago. No errors since then. 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