Files
wyczarujprezent.pl/modules/zakeke/classes/ZakekeConnectService.php
2024-10-28 22:14:22 +01:00

33 lines
884 B
PHP

<?php
/**
* Copyright (C) 2020 Futurenext srl
*
* This file is part of Zakeke.
*
* Zakeke Interactive Product Designer can not be copied and/or distributed
* without the express permission of Futurenext srl
*
* @author Futurenext srl <help@zakeke.com>
* @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);
}
}