window.totOpts = window.totOpts || {}; window.totOpts['bigcommerceHost'] = window.totOpts['bigcommerceHost'] || 'bigcommerce.tokenoftrust.com'; window.totOpts['totHost'] = window.totOpts['totHost'] || 'app.tokenoftrust.com'; window.totOpts['exciseTaxProductId'] = window.totOpts['exciseTaxProductId'] || 11099; window.totOpts['appDomain'] = window.totOpts['appDomain'] || 'kangerwholesaleusa.com'; window.totOpts['apiKey'] = window.totOpts['apiKey'] || 'public_live_p0pZ6qn2shmyaRh7k5JJ'; window.totOpts['exciseTaxCollectionEnabled'] = window.totOpts['exciseTaxCollectionEnabled'] || false; window.totOpts['verificationEnabled'] = window.totOpts['verificationEnabled'] || false; window.totOpts['appEnv'] = window.totOpts['appEnv'] || 'production'; console.log("Valid ApiClient found."); console.log("BigCommerce Api Credentials found."); console.log("Excise tax collection not enabled on apikey."); console.log("Verification not enabled on apikey."); console.log("Excise tax product found."); checkExciseTaxEnabledOverride(); checkVerificationEnabledOverride(); function checkExciseTaxEnabledOverride(){ if (window.location.search.includes("totExciseTaxEnabled=1")){ window.totOpts['exciseTaxCollectionEnabled'] = true; console.log("TOT excise tax collection has been force enabled"); } } function checkVerificationEnabledOverride(){ if (window.location.search.includes("totVerificationEnabled=1")){ window.totOpts['verificationEnabled'] = true; window.totOpts['verificationForceEnabled'] = true; console.log("TOT verification has been force enabled"); } }