| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/system/overloads/JSCartExtenderComponent/ |
Upload File : |
<?php
/* --------------------------------------------------------------
JSAmazonAdvPayCart.inc.php 2014-07-09_1604 mabr
Gambio GmbH
http://www.gambio.de
Copyright (c) 2014 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
class JSAmazonAdvPayCart extends JSAmazonAdvPayCart_parent
{
public function proceed()
{
parent::proceed();
if($this->_amzadvpay_is_enabled())
{
$coo_aap = MainFactory::create_object('AmazonAdvancedPayment');
//$t_widgets_url = $coo_aap->get_widgets_url();
$t_seller_id = $coo_aap->seller_id;
$t_hidden_button = $coo_aap->hidden_button == true ? 'true' : 'false';
$cartContentType = $_SESSION['cart']->get_content_type();
include_once(get_usermod(DIR_FS_CATALOG . 'gm/javascript/AmazonAdvPayCart.js'));
}
}
protected function _amzadvpay_is_enabled()
{
$t_is_enabled = (defined('MODULE_PAYMENT_AMAZONADVPAY_STATUS') && MODULE_PAYMENT_AMAZONADVPAY_STATUS == 'True');
$t_is_enabled = $t_is_enabled && strpos(MODULE_PAYMENT_INSTALLED, 'amazonadvpay.php') !== false;
return $t_is_enabled;
}
}