Code Monkey home page Code Monkey logo

php-taxcloud's Introduction

Latest Stable Version Total Downloads Build Status

At this point, most of the functionality needed to complete an order has been implemented. The only feature left to fully test and implement is exemptions.

A smoketest is provided that connects to the TaxCloud API using credentials stored in environment variables. It is intended for quick tests to ensure that the core of the library works, but it is not a thorough test. DO NOT RUN THE SMOKETEST WITH CREDENTIALS FOR A LIVE SITE. IT WILL CREATE TRANSACTIONS.

The smoketest also provides an excellent set of examples on how to use this library.

About

PHP library to facilitate the ability of your PHP web application to communicate with TaxCloud.

Compatibility

php-taxcloud is tested with PHP 5.3 and later.

Contributions

If you'd like to help with php-taxcloud, your efforts are appreciated!

However, your code should at least somewhat closely follow PSR-2 guidelines, and API changes should be accompanied by tests.

Getting Started

This library requires that you have API credentials for TaxCloud and USPS.

To obtain TaxCloud API keys, you will need to first sign up for an account with TaxCloud, verify your website, and then obtain your API ID and API KEY for your specific website.

To obtain a USPS Web Tools User ID, you will need to fill out the form here. You will receive an email with a Username and Password. All you need is the Username.

If you already have some sort of address verification in place, the USPS Web Tools User ID is optional. What is important is that you have accurate ZIP+4 codes for your addresses for taxation purposes.

Examples

The smoketest is a great resource for a working example that goes through the entire process in a basic and straightforward manner. The unit tests are a much better resource if you need to see how specific functionality works. The unit tests use stubs to mock the API, and these stubs can show you what sort of data to expect.

Testing

php-taxcloud includes thorough unit tests that do not require a live connection to the API. If you are contributing to php-taxcloud, please include unit tests for your contributions.

Travis-ci runs unit tests for the repository. However, you can run them locally with PHPUnit.

A smoketest is also included that connects to the API and is intended only for a very quick check that basic functionality has not been broken. To use the smoketest, you will need to set the following environment variables:

  • TaxCloud_apiLoginID
  • TaxCloud_apiKey
  • TaxCloud_uspsUserID

DO NOT RUN THE SMOKETEST WITH CREDENTIALS FOR A LIVE SITE. IT WILL CREATE TRANSACTIONS

php-taxcloud's People

Contributors

veggiemeat avatar

Watchers

Chirag Nirmal avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.