Skip to content

Instantly share code, notes, and snippets.

@fastdivision
Created March 20, 2018 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fastdivision/306a011ba17e9ca30bac849f48291541 to your computer and use it in GitHub Desktop.
Save fastdivision/306a011ba17e9ca30bac849f48291541 to your computer and use it in GitHub Desktop.
TaxJar API Sandbox
<?php
$client->setApiConfig('headers', [
'X-TJ-Expected-Response' => 422
]);
<?php
require __DIR__ . '/vendor/autoload.php';
$client = TaxJar\Client::withApiKey($_ENV['TAXJAR_SANDBOX_API_KEY']);
$client->setApiConfig('api_url', TaxJar\Client::SANDBOX_API_URL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment