summaryrefslogtreecommitdiff
path: root/lib/super_good
diff options
context:
space:
mode:
authorNoah Silvera <noah@super.gd>2021-02-25 09:29:04 -0800
committerGitHub <noreply@github.com>2021-02-25 09:29:04 -0800
commit9f599f2c1c4953c328305b7736833f51df816cad (patch)
tree6435ea1d4f78d3b341df083dfba37fcb5b30be84 /lib/super_good
parent255cc8ba6d16cea2e16c63712d80a460cbb9a590 (diff)
parent755bce528c2ef41d7ccfe20db9e5ecfc491e9197 (diff)
Merge pull request #41 from nvandoorn/put-plugin-name-in-headers
Put plugin name in API request headers
Diffstat (limited to 'lib/super_good')
-rw-r--r--lib/super_good/solidus_taxjar/api.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb
index a1d1af5..5c6ab3e 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -6,7 +6,8 @@ module SuperGood
api_key: ENV.fetch("TAXJAR_API_KEY"),
api_url: ENV.fetch("TAXJAR_API_URL") { "https://api.taxjar.com" } # Sandbox URL: https://api.sandbox.taxjar.com
).set_api_config('headers', {
- 'x-api-version' => '2020-08-07'
+ 'x-api-version' => '2020-08-07',
+ 'plugin' => 'supergoodsolidustaxjar'
})
end