* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ use PrestaShop\Module\PsAccounts\Handler\Error\Sentry; use PrestaShop\Module\PsAccounts\Service\ShopLinkAccountService; /** * Controller generate hmac and redirect on hmac's file. */ class AdminConfigureHmacPsAccountsController extends ModuleAdminController { /** * @var Ps_accounts */ public $module; /** * @return void * * @throws Throwable */ public function initContent() { try { /** @var ShopLinkAccountService $shopLinkAccountService */ $shopLinkAccountService = $this->module->getService(ShopLinkAccountService::class); Tools::redirect( $shopLinkAccountService->getVerifyAccountUrl( Tools::getAllValues(), _PS_ROOT_DIR_ ) ); } catch (Exception $e) { Sentry::captureAndRethrow($e); } } }