* @copyright 1997-2016 Quadra Informatique * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ include(dirname(__FILE__).'/../../config/config.inc.php'); include(dirname(__FILE__).'/classes/Be2billApi.php'); require_once(_PS_MODULE_DIR_.'be2bill/be2bill.php'); $parameters = $_GET; /* Extract hash value */ $hash = $parameters['HASH']; unset($parameters['HASH']); $account = $parameters['EXTRADATA']; $account = explode('-', $account); $id_account = (int) $account[1]; /* Validate hash */ if ($hash == Be2billApi::buildHash($parameters, $id_account)) { $link = new Link(); Tools::redirectLink($link->getModuleLink('be2bill', 'validation', array_merge($_GET, array( 'content_only' => true)), true)); } else { die('bad hash.'); }