summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-22 12:23:41 -0800
committerJared Norman <jared@super.gd>2019-01-22 12:23:41 -0800
commit9815ca8bec7b38e708cc498c15ea8b2a7a891e44 (patch)
tree2267aa2df869f5401fac0af39461488bd3f8d377 /lib
parent5bcab636fc05aab340a44cfdf4b59bcf77623c7d (diff)
Make API URL configurable
Diffstat (limited to 'lib')
-rw-r--r--lib/super_good/solidus_taxjar/api.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb
index 8c624d4..1ceb866 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -4,7 +4,7 @@ module SuperGood
def self.default_taxjar_client
::Taxjar::Client.new(
api_key: ENV.fetch("TAXJAR_API_KEY"),
- api_url: 'https://api.sandbox.taxjar.com'
+ api_url: ENV.fetch("TAXJAR_API_URL") { 'https://api.taxjar.com' } # Sandbox URL: https://api.sandbox.taxjar.com
)
end