Bug in woocommerce-services-new-order-taxjar-2.4.1.js during refund.

[ad_1]

When we try to execute a refund /woocommerce-services-new-order-taxjar-2.4.1.js is throwing the following error:

Uncaught SyntaxError: Expected ',' or '}' after property value in JSON at position 165 (line 1 column 166)
at JSON.parse ()
at HTMLDocument. (woocommerce-services-new-order-taxjar-2.4.1.js:1:1153)
...

When I view the string that we’re trying to parse into JSON it looks like we have double quotes that are improperly inserted/not properly being escaped.

{"action":"woocommerce_refund_line_items",...,"line_item_totals":"{"99046":0,"99047":0}","line_item_tax_totals":"{"99046":{"42":0},"99047":{"42":0}}", ...}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer