From 9815ca8bec7b38e708cc498c15ea8b2a7a891e44 Mon Sep 17 00:00:00 2001 From: Jared Norman Date: Tue, 22 Jan 2019 12:23:41 -0800 Subject: Make API URL configurable --- lib/super_good/solidus_taxjar/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/super_good/solidus_taxjar/api.rb') 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 -- cgit v1.2.3