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 ❌

Dependencies (0)


Dev Dependencies (0)


 

$ box install cftaxjar

No collaborators yet.
  • {{ getFullDate("Sep 25 2019 07:09 AM GMT") }}
  • {{ getFullDate("Sep 25 2019 07:09 AM GMT") }}
  • 912
  • 924
  • 0