Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
21.03 KB
MD5: 3b5e38b842d7929f40ec90bd3d1b0f3f
SHA-1: bf2ad860dad0463461936d1b3f23ff955ccead07
SHA-256: f3adfcb4a6b3c845775cdd9e78b399405644265bcc44d4c401062326a06674ab
Download zip
30.23 KB
MD5: 58fc1312f8280590223779919a9771ba
SHA-1: f9e15c98650482dfe744263c9ebcf8972ec14511
SHA-256: 35254b8030b2a5dfb69be1d5e09965656e95034a828c90405eadd75497d96a1e
Release notes
Compatibility
- Requires Drupal 10.3 or later (including Drupal 11) and PHP 8.1 or later. Drupal 8 and 9 are no longer declared as supported.
- Works with Drupal Commerce 2.8+ and 3.x.
- Uses
EntityInterface::getOriginal()on Drupal 11.2+, avoiding the deprecatedoriginalproperty. The old property is still used on older core versions. - The TaxJar tax type now declares the
CommerceTaxTypeplugin attribute, while keeping the annotation for Commerce versions that don't know the attribute.
Bug fixes
- Updating a TaxJar transaction no longer overwrites the stored TaxJar order data (request,
plugin_id) with only the response; failures during updates are now recorded on the order. - Creating a transaction now stores the tax type's
plugin_idin the order data. - Applying tax no longer fails silently when TaxJar's response has no
rate; the tax is applied without a percentage, and a missing amount counts as zero. - Updating, deleting and refunding transactions now use the same transaction ID as creating one (the order number, or the order ID if the order has no number yet).
- Refunds and deletes for orders whose TaxJar data has no
plugin_idor whose tax type no longer exists no longer cause fatal errors. - The transaction line item description is now filled in for product variations without a parent product.
- Sandbox mode is now the explicit setting for the TaxJar sandbox API; unrecognized modes still use the sandbox.
Development
- Added GitLab CI with PHPUnit (unit and kernel), PHPStan, PHPCS and cspell, testing the previous and next minor core, the previous major and the highest supported PHP version.
- Added unit and kernel test coverage for the client factory, the tax type and the transaction subscriber.
- Fixed coding standards, PHPStan and cspell findings.