FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

CFTaxjar

v0.2.1 Public

TaxJar API Integration

Use TaxJar for retrieving tax rates by county, state, country, etc.

Getting Started

ColdBox Setup

  1. Install cftaxjar - box install cfTaxjar
  2. Add a module setting to set the api key:
moduleSettings = {
    cfTaxjar: {
        APIToken: "MY_API_KEY"
    }
}
  1. Inject cftaxjar - property name="cftaxjar" inject="[email protected]";

Vanilla CFML Setup

  1. Install cftaxjar - `box install cfTaxjar
  2. Initialize the taxjar component- var cfTaxjar = new cftaxjar.models.taxjar()
  3. Set the API key - cfTaxjar.setAPIToken( 'MY_API_KEY' )

Docs

Load Integration & Set API Key

TaxJar = New taxjar.taxjar( application.apiKey );

Get Tax Rates

Right now there's only a single method to retrieve tax rates: getTaxRatesByLocation().

TaxJar.getTaxRatesByLocation( ... );

Get By Zip

TaxJar.getTaxRatesByLocation( myZipCode );

Get By Address

Please note that zip is still required.

TaxJar.getTaxRatesByLocation(
    street = "Pennsylvania Ave",
    city = "Washington",
    country = "US",
    zip = "20500"
);

TODO

  • Add ColdBox support ✅
  • Add DocBox-style documentation ❌
  • Write TestBox tests ❌

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
0.2.1 Sep 25 2019 07:29 AM Sep 25 2019 07:29 AM
Version History
0.2.0 Sep 25 2019 07:26 AM Sep 25 2019 07:26 AM

 

No collaborators yet.
  • Sep 25 2019 07:26 AM
  • Sep 25 2019 07:29 AM
  • 59
  • 38
  • 0