Contributor reported bug when disconnecting TJ extension if sandbox mode was enabled.
Description
This fix refactors our existing Disconnect::class.
Deletes sandbox enabled flag and sandbox api key values on disconnect to handle config error state that resulted in UI bug.
Adds new public method that provides a list of core config values that should be purged from all scopes upon disconnecting that can be reused across scopes and is made public for merchant extensibility.
Refactors nexus address and product tax category purge to use best-practice of collection factory injection instead of directly injecting collection resource model.
Performance
N/A - bug fix
Testing
Enable/connect to TaxJar
Enabled Sandbox mode with sandbox API key and save settings.
Context
Closes #337
Contributor reported bug when disconnecting TJ extension if sandbox mode was enabled.
Description
This fix refactors our existing
Disconnect::class
.Performance
N/A - bug fix
Testing
https://user-images.githubusercontent.com/47947793/188727073-f1047e47-fb3b-4af1-9337-eb8cecd1f6a0.mov
Versions