-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L_COST1 showing +$0.02 difference between cart item amounts and order amounts? #892
Comments
@robwatson-intechra I'm sorry for the delay getting back to you on this. Somehow I missed this. The details you've provided should help us track down what's causing this and get it resolved. We'll do that ASAP. Until then, if you disable the option to "Send Line Items to PayPal" in the PayFlow settings this error should go away. Please give that a try and let me know if it helps. This is something that creeps up every once in a while because of the way WC handles calculations and rounding. We eliminated this for the most part, but you've apparently found some combination of settings that caused it. Again, we'll get it resolved ASAP and get this updated released to fix it. |
Thank you! I appreciate you making this a high priority. I'm checking with the business owner on whether the workaround will be viable for a short time period, but that sounds reasonable until it gets fixed. |
@angelleye I am little bit confused about log file, Can you please ask to website URL for more troubleshot? |
@kcppdevelopers The website URL is https://intechrahealth.com |
@robwatson-intechra Would you be able to submit a ticket here and provide temporary login credentials so we can troubleshoot more directly if necessary? |
@iMansoorAliKhan Make sure to assign the ticket to @kcppdevelopers when you see it please, and update here to let him know it's ready. |
Ok, I think I might have missed this notification. I will take care of it for sure. |
I've submitted it as ticket #402257 |
@kcppdevelopers Looks like they've provided credentials for us in the ticket, so we need to get this worked out please. |
I have review website and found @robwatson-intechra using Version 1.4.6.1 of PayPal for WooCommerce plugin, current version is 1.4.6.4. I have test same scenario with 1.4.6.4 version and it's working fine on my demo server. |
I've updated the plugin now on the live site. So is this particular issue definitely and directly addressed in 1.4.6.4? Sorry if my not having updated the plugin caused more turmoil than necessary. |
@robwatson-intechra Woo does funky things with rounding in calculations at times, so this particular issue is something we've battled for quite some time. It used to be a lot worse than it is now, and we don't get many reports of this at all any more, but every once in a while it pops up again depending on somebody's unique configuration. We now have functions in our plugin specific to running all of these calculations and weeding out conflicts, and @kcppdevelopers tested the scenario you outlined in our latest version which is working just fine. So yes, based on our tests you should be fixed if you update. We're actually just about to release a 1.4.6.4 that resolves an issue with WC 3.2 that was just released, so you may want to wait until you see that and get both of them updated together. I'm going to close this issue, but feel free to respond again if you have more problems and we'll dig deeper. |
We had a customer who tried to apply a coupon code discount (15% off) to a $179.00 order that is comprised of 6 items at $29.83 each plus one free item at $0.00. That would have yielded an order amount of $152.15. But the PayPal processor claimed that the item amounts didn't match. The specific error from PayPal was:
PayFlow API call failed. Error Code: 7 Detailed Error Message: Field format error: 10413-The totals of the cart item amounts do not match order amounts.
Below are the full but privacy-edited error log entries. They show how the PayFlow Request array [AMT] has 152.15, an [L_COST0] of 29.83 (regular price), [L_QTY0] of 6 (number of items ordered) and [L_QTY1] of 1 (free item added) but an [L_COST1] of 0.02. The discount amount is reflected in [L_COST2] of -26.83
The Response array [AMT] value is 152.17. That L_COST1 apparently needs to be 0.00 for the transaction to process as 152.15. I can't even find any L_COST1 in this plugin's code, though.
I think it might have something to do with this line -->
paypal-woocommerce/classes/wc-gateway-paypal-advanced-angelleye.php
Line 561 in 91dfc4b
The text was updated successfully, but these errors were encountered: