uawdijnntqw1x1x1
IP : 3.145.151.202
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
tyblue.6
/
..
/
catalog
/
controller
/
extension
/
module
/
pp_braintree_button.php
/
/
<?php class ControllerExtensionModulePPBraintreeButton extends Controller { private $gateway = null; public function index() { if ($this->config->get('payment_pp_braintree_status') == 1) { $this->initialise(); $status = true; if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout')) || (!$this->customer->isLogged() && ($this->cart->hasRecurringProducts() || $this->cart->hasDownload()))) { $status = false; } if ($status) { $this->load->model('checkout/order'); $this->load->model('extension/payment/pp_braintree'); $create_token = array(); $data['client_token'] = $this->model_extension_payment_pp_braintree->generateToken($this->gateway, $create_token); $data['payment_pp_braintree_settlement_immediate'] = $this->config->get('payment_pp_braintree_settlement_immediate'); $data['payment_pp_braintree_paypal_button_colour'] = $this->config->get('payment_pp_braintree_paypal_button_colour'); $data['payment_pp_braintree_paypal_button_size'] = $this->config->get('payment_pp_braintree_paypal_button_size'); $data['payment_pp_braintree_paypal_button_shape'] = $this->config->get('payment_pp_braintree_paypal_button_shape'); /* * The auth total is just a guess as to what the end total will be since the user has not * selected a shipping option yet. The user does not see this amount during checkout but the figure * may be too low if buying a low value item and shipping is more than 50% of the item value. */ $data['auth_total'] = $this->cart->getTotal() * 1.5; $data['currency_code'] = $this->session->data['currency']; $data['action'] = $this->url->link('extension/payment/pp_braintree/expressConfirm', '', true); return $this->load->view('extension/module/pp_braintree_button', $data); } } } private function initialise() { $this->load->model('extension/payment/pp_braintree'); if ($this->config->get('payment_pp_braintree_access_token') != '') { $this->gateway = $this->model_extension_payment_pp_braintree->setGateway($this->config->get('payment_pp_braintree_access_token')); } else { $this->model_extension_payment_pp_braintree->setCredentials(); } } }
/home/sudancam/.trash/tyblue.6/../catalog/controller/extension/module/pp_braintree_button.php