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-12 14:57:58 -0700 |
commit | d565f94d316fe5297f936a49a0346ea086ac3e73 (patch) | |
tree | 11ea3603ef0365370939afa733ac5cd721ec170b | |
parent | cb335e2577189ab8c285bf3e174d18c706c42dd2 (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 620b89b..ae2e101 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 |