PHPackages                             craftcms/commerce-taxjar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. craftcms/commerce-taxjar

ActiveCraft-plugin

craftcms/commerce-taxjar
========================

TaxJar Integration for Craft Commerce

3.0.0(2y ago)34.1k↓100%8[5 issues](https://github.com/craftcms/commerce-taxjar/issues)[2 PRs](https://github.com/craftcms/commerce-taxjar/pulls)MITPHPPHP ^8.2.0CI passing

Since Apr 2Pushed 1y ago5 watchersCompare

[ Source](https://github.com/craftcms/commerce-taxjar)[ Packagist](https://packagist.org/packages/craftcms/commerce-taxjar)[ RSS](/packages/craftcms-commerce-taxjar/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (10)Used By (0)

[![TaxJar icon](./src/icon.svg)](./src/icon.svg)

TaxJar for Craft Commerce
=========================

[](#taxjar-for-craft-commerce)

This plugin provides a tax integration between [Craft Commerce](https://craftcms.com/commerce) and [TaxJar](https://www.taxjar.com/).

It replaces Craft Commerce’s built-in tax engine, offloading the work of managing tax rates, tax zones, and tax categories to TaxJar.

Requirements
------------

[](#requirements)

This plugin requires either Craft Commerce 5.0 or later.

Installation
------------

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “TaxJar”. Then click on the “Install” button in its modal window.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require craftcms/commerce-taxjar

# tell Craft to install the plugin
php craft install/plugin commerce-taxjar
```

Configuration &amp; Setup
-------------------------

[](#configuration--setup)

### Step 1: Configure the plugin

[](#step-1-configure-the-plugin)

The plugin has two TaxJar API connection settings. To set them, follow these steps:

1. Define new `TAXJAR_API_KEY` and `TAXJAR_SANDBOX` environment variables in your `.env` file (or wherever you manage your environment variables).

    ```
    # Set to your TaxJar API key
    TAXJAR_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    # Set to 0 or 1 depending on whether the sandbox API endpoint should be used
    TAXJAR_SANDBOX="1"

    ```
2. Create a `config/commerce-taxjar.php` file with `apiKey` and `useSandbox` settings, which pull in the environment variables.

    ```
