* @copyright 2019 Futurenext srl * @license https://www.zakeke.com/privacy/#general_conditions */ class ZakekeConnectService { const ZAKEKE_URL = 'https://portal.zakeke.com'; /** * @param WebserviceKey $zakekeWebserviceKey * @return string */ public static function getConnectUrl($zakekeWebserviceKey) { $data = [ 'storeUrl' => Context::getContext()->shop->getBaseURL(true), 'apiKey' => $zakekeWebserviceKey->key ]; return ZakekeConnectService::ZAKEKE_URL . '/Admin/E-Commerce/Prestashop/Start?' . http_build_query($data); } }