forked from PrestaShopCorp/hipay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathajax_websitetopic.php
executable file
·34 lines (29 loc) · 1.02 KB
/
ajax_websitetopic.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* HiPay
*
* NOTICE OF LICENSE
*
* This source file is subject to the Apache 2.0 License
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.apache.org/licenses/LICENSE-2.0
*
* @author HiPay <[email protected]>
* @copyright Copyright (c) 2016 - HiPay
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache 2.0 License
*/
/* Getting cookie or logout */
include(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php');
require_once(dirname(__FILE__).'/hipay.php');
if (Tools::substr(Tools::encrypt('hipay/websitetopic'),0,10) != Tools::getValue('token') || !Module::isInstalled('hipay'))
die('Bad token');
$params = array(
'params' => array(
'locale' => Tools::getValue('locale'),
'business_line' => Tools::getValue('business_line')
),
'method' => 'getWebtopic'
);
echo Hipay::getWsClient()->getWebtopic(Tools::getValue('locale'), Tools::getValue('business_line'));