diff options
author | Noah Silvera <noah@super.gd> | 2021-02-22 13:25:09 -0800 |
---|---|---|
committer | Nicholas Van Doorn <vandoorn.nick@gmail.com> | 2021-05-03 15:46:42 -0700 |
commit | dd87801b6dd64f8c0b523caebab8a5a397050366 (patch) | |
tree | 96a4ef6049fdbd2a8edd1247fa79423bab503a0f | |
parent | faeb71ec4cfd04e4a9ead2e7af90af9b41f2596b (diff) |
Provide helpful links for setting up Taxjar
To comply with the certification guidelines for Taxjar, we should
provide links to signup for Taxjar, and a link to a help article on
aquiring a Taxjar token.
-rw-r--r-- | app/views/spree/admin/taxjar_settings/show.html.erb | 3 | ||||
-rw-r--r-- | spec/features/spree/admin/taxjar_settings_spec.rb | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/spree/admin/taxjar_settings/show.html.erb b/app/views/spree/admin/taxjar_settings/show.html.erb index c66e646..87b97ce 100644 --- a/app/views/spree/admin/taxjar_settings/show.html.erb +++ b/app/views/spree/admin/taxjar_settings/show.html.erb @@ -8,5 +8,6 @@ <table> </table> <% else %> - <p>You must provide a TaxJar API token to configure the extension. Please see the extension readme for details.</p> + <p>You must provide a TaxJar API token to use this extension. You can sign up for TaxJar <%= link_to "here", "https://app.taxjar.com/api_sign_up", target: "_blank", rel: "noreferrer" %>. Please see the extension documentation for details on providing this token to the extension.</p> + <p><i>For more help in aquiring a TaxJar API token, see <%= link_to "How do I get a TaxJar sales tax API token?", "https://support.taxjar.com/article/160-how-do-i-get-a-sales-tax-api-token", target: "_blank", rel: "noreferrer" %></i></p> <% end %> diff --git a/spec/features/spree/admin/taxjar_settings_spec.rb b/spec/features/spree/admin/taxjar_settings_spec.rb index 7e7e106..df6dcff 100644 --- a/spec/features/spree/admin/taxjar_settings_spec.rb +++ b/spec/features/spree/admin/taxjar_settings_spec.rb @@ -39,6 +39,9 @@ RSpec.feature 'Admin TaxJar Settings', js: true do expect(page).to have_content("TaxJar Settings") click_on "TaxJar Settings" expect(page).to have_content "You must provide a TaxJar API token" + + expect(page).to have_link(href: "https://app.taxjar.com/api_sign_up") + expect(page).to have_link(href: "https://support.taxjar.com/article/160-how-do-i-get-a-sales-tax-api-token") end end end |