taxjar / taxjar-woocommerce-plugin

WooCommerce Sales Tax Plugin by TaxJar
http://www.taxjar.com/woocommerce-sales-tax-plugin/
GNU General Public License v2.0
28 stars 29 forks source link

Filter Invalid PTCs #210

Closed dallendalton closed 2 years ago

dallendalton commented 2 years ago

The TaxJar plugin parses PTCs (Product Tax Codes) from a given products tax class. These tax classes are natively functionality to WooCommerce which means that many invalid codes are sent to TaxJar when creating transactions. While this doesn't prevent the transaction from being created, it can create confusion for customers and potential confusion for filings.

This PR adds additional filtering to PTC parsing and ensures that only PTCs that are in a valid format are sent to TaxJar.

Click-Test Versions

Specs Passing