Title: Error during checkout
Last modified: July 15, 2022

---

# Error during checkout

 *  Resolved [kathleen36](https://wordpress.org/support/users/kathleen36/)
 * (@kathleen36)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-during-checkout-6/)
 * Hi,
 * I get following error on the cart page if I select products that are in sale:
 * UNPROCESSABLE_ENTITY – Should equal sum of (unit_amount * quantity) across all
   items for a given purchase_unit
 * I am using the free version.
 * Looking forward to your help.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [fluxka](https://wordpress.org/support/users/fluxka/)
 * (@fluxka)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-during-checkout-6/#post-15834305)
 * Hi,
    same error here… the error occurs when you add several quantities of a product
   whose price has a decimal place… such as 13.5 (instead of 13.50)… if you add 
   2 units, the total price is 27.00 (2 decimals are added). I think that the plugin
   understands that there is an inconsistency and gives error.
 * I hope it will soon be resolved.
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-during-checkout-6/#post-15834311)
 * Hi [@kathleen36](https://wordpress.org/support/users/kathleen36/),
 * Thank you for reaching out to us
 * Can you please let us know if you are using any third-party plugin on your site
   to add any extra fee items? If yes, then please mention which plugin you are 
   using and share the PayPal log file so that we can check it.
 *  Thread Starter [kathleen36](https://wordpress.org/support/users/kathleen36/)
 * (@kathleen36)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-during-checkout-6/#post-15834389)
 * Hi,
 * thank you for your reply and your amazing plugin!
 * In the setting of your plugin, I changed from smart button to express checkout.
   Since then there is no longer an error notification on my website.
 * Additionally, I do not use any plugins related with extra fees.
 *  [fluxka](https://wordpress.org/support/users/fluxka/)
 * (@fluxka)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-during-checkout-6/#post-15851309)
 * Hi [@webtoffee](https://wordpress.org/support/users/webtoffee/),
 * I still have the error in the orders, could you please try to solve it or give
   me some advice? Using express checkout is not a solution for me.
 * Thanks in advance.
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-during-checkout-6/#post-15859982)
 * Hi [@fluxka](https://wordpress.org/support/users/fluxka/) & [@kathleen36](https://wordpress.org/support/users/kathleen36/),
 * We have developed a code snippet to overcome the line item total mismatch error
   between the plugin and WooCommerce. Kindly use the code snippet from [here](https://gist.github.com/webtoffee-git/1ff6a51dc7e81f34d78194ca3775de10)
   and let us know how it goes.
 * PS: We have added this fix to the development backlog and will be implemented
   in the upcoming release.
 *  [fluxka](https://wordpress.org/support/users/fluxka/)
 * (@fluxka)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-during-checkout-6/#post-15877192)
 * Hi [@webtoffee](https://wordpress.org/support/users/webtoffee/),
 * thanks a lot for the code snippet. It seems to be working for me.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error during checkout’ is closed to new replies.

 * ![](https://ps.w.org/express-checkout-paypal-payment-gateway-for-woocommerce/
   assets/icon-256x256.gif?rev=3385064)
 * [Payment Gateway of PayPal for WooCommerce](https://wordpress.org/plugins/express-checkout-paypal-payment-gateway-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/express-checkout-paypal-payment-gateway-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/express-checkout-paypal-payment-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/express-checkout-paypal-payment-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/express-checkout-paypal-payment-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/express-checkout-paypal-payment-gateway-for-woocommerce/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [fluxka](https://wordpress.org/support/users/fluxka/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/error-during-checkout-6/#post-15877192)
 * Status: resolved