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.
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