PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/youronlinestore.kerihosting.com/catalog/controller/module/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/youronlinestore.kerihosting.com/catalog/controller/module/amazon_checkout_layout.php

<?php
class ControllerModuleAmazonCheckoutLayout extends Controller {
	protected function index($setting) {
		if ($this->config->get('amazon_checkout_status') == 1 && $setting['status']) {
			$allowed_ips = $this->config->get('amazon_checkout_allowed_ips');

			if ((empty($allowed_ips) || in_array($this->request->server['REMOTE_ADDR'], $allowed_ips)) && $this->cart->hasProducts()
					&& (!isset($this->session->data['vouchers']) || empty($this->session->data['vouchers'])) && !$this->cart->hasRecurringProducts()) {

				if ($this->config->get('amazon_checkout_mode') == 'sandbox') {
					$amazon_payment_js = 'https://static-eu.payments-amazon.com/cba/js/gb/sandbox/PaymentWidgets.js';
				} elseif ($this->config->get('amazon_checkout_mode') == 'live') {
					$amazon_payment_js = 'https://static-eu.payments-amazon.com/cba/js/gb/PaymentWidgets.js';
				}

				$this->document->addScript($amazon_payment_js);

				$this->data['amazon_checkout'] = $this->url->link('payment/amazon_checkout/address', '', 'SSL');
				$this->data['amazon_checkout_status'] = true;
				$this->data['merchant_id'] = $this->config->get('amazon_checkout_merchant_id');
				$this->data['button_colour'] = $this->config->get('amazon_checkout_button_colour');
				$this->data['button_background'] = $this->config->get('amazon_checkout_button_background');
				$this->data['button_size'] = $this->config->get('amazon_checkout_button_size');

				$this->data['layout_id'] = $setting['layout_id'];
				$this->data['position'] = $setting['position'];

				if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/amazon_checkout_layout.tpl')) {
					$this->template = $this->config->get('config_template') . '/template/module/amazon_checkout_layout.tpl';
				} else {
					$this->template = 'default/template/module/amazon_checkout_layout.tpl';
				}

				$this->render();
			}
		}
	}
}
?>