Subscriptions created prior to TaxJar being enabled would not use the TaxJar PTC when added after subscription creation. This PR resolves the issue by pulling the tax class directly from the product when possible.
Steps to Reproduce
Create a subscription using a product without a TaxJar PTC, and process a renewal. The TaxJar logs will show no PTC sent to the TaxJar API.
Change the product to use a TaxJar PTC.
Process another renewal order. The logs will still show no PTC was sent in the calculation request.
Expected Result
After applying the PR, in step 3 the logs will show the newly added PTC was used in the calculation request.
Subscriptions created prior to TaxJar being enabled would not use the TaxJar PTC when added after subscription creation. This PR resolves the issue by pulling the tax class directly from the product when possible.
Steps to Reproduce
Expected Result
After applying the PR, in step 3 the logs will show the newly added PTC was used in the calculation request.
Click-Test Versions
Specs Passing