Closed greezlu closed 1 year ago
@greezlu Thank you for the detailed issue report! We will be sure to include a fix in the next release 👍
To anyone experiencing this issue, this error can be resolved by clearing the TaxJar sandbox API key value using the CLI command: bin/magento config:set tax/taxjar/sandbox_apikey ''
Edit: Will also require command bin/magento config:set tax/taxjar/sandbox 0
to ensure Sandbox mode is not enabled, because although removing sandbox API key will resolve UI error, sandbox mode enabled will prevent re-connecting to TaxJar later.
Prerequisites
Description
Steps to Reproduce
Expected Result
Successful disconnect with ability to connect.
Actual Result
Account is disconnected. But connect button is not visible.
Screenshot
Explanation
Problem appears here: Taxjar\SalesTax\Block\Adminhtml\Enabled::isConnected()
That method returns bool depending on this answer: Taxjar\SalesTax\Model\Configuration::getApiKey()
Method getApiKey() return sandbox key in case if Sandbox mode was enabled.
But Disconnect action is not removing Sandbox API key. So main problem is here: Taxjar\SalesTax\Controller\Adminhtml\Config\Disconnect::execute()
Because Disconnect action class is not clearing Sandbox API key and not disabling Sandbox mode. Please fix this. Thank you.
Versions