Error Code: 10413 when discount is applied with WooCommerce coupon
-
When customer places order that grants them an automatic coupon using WooCommerce (using WooCommerce Extended Coupon Features plugin for coupon), then submits the order using “Pay with Invoice,” the order submits just fine; however, the customer is not able to pay with PayPal from the invoice. When the “Pay with PayPal” button is pressed, the Pay this Invoice->Pay Now box pops up as usual. When “Pay Now” is pressed, the site goes to a page that says, “Error Code 10413 The totals of the cart item amounts do not match order amounts.” Then going into the invoice from the back end of WordPress, the invoice shows the discounted rate in the Item-> Rate($), instead of the original price and separating the discount out into another line item. I believe this is why PayPal is showing the error code. ((For example, if an item is $10 and there is a coupon code that is buy 10 of the item, get $20 off. The back end invoice is showing the price of the item as $8, instead of $10 [math: (10*10-20)/10=8].))
This is also a big problem because I am unable to add discounts or add fees after the customer has submitted the order via the “Pay with Invoice” checkout method. Adding discounts or adding fees both seem to create the same error code. There also seems to be somewhat of a disconnect between the order details of WooCommerce and the details of the associated invoices, which might be contributing to the error code as well.
Please let me know what I can do to fix this or work around it. Thank you in advance for your superb support.
- The topic ‘Error Code: 10413 when discount is applied with WooCommerce coupon’ is closed to new replies.