Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php ///-build_id: 2018022022.2756 /// This source file is subject to the Software Lice..
Decoded Output download
<?php
///-build_id: 2018022022.2756
/// This source file is subject to the Software License Agreement that is bundled with this
/// package in the file license.txt, or you can get it here
/// http://addons-modules.com/en/content/3-terms-and-conditions-of-use
///
/// @copyright 2009-2016 Addons-Modules.com
/// If you need open code to customize or merge code with othe modules, please contact us.
if (!defined('_PS_VERSION_'))
exit;
use PrestaShop\PrestaShop\Core\Payment\PaymentOption;
class AgilePayByGoogleWallet extends PaymentModule
{
public static $PaymentCollectionMode = array(
1 => true ,2 => false ,3 => true );
private $_html = '';
private $_postErrors = array();
public $googlewalletName;
public $address;
public $extra_mail_vars;
public function __construct() { $this->agile_configs = Configuration::getMultiple($this->getConfigKeys()); $this->agile_newfiles = array(); $this->agile_dependencies = array('agilemultipleseller' => '3.7.0.4', 'agilekernel'=>'1.7.1.0'); $this->name = 'agilepaybygooglewallet'; $this->isAgileKernelCompatible = true; $this->tab = 'payments_gateways'; $this->version = '2.7.0.2'; $this->author = 'addons-modules.com'; $this->ps_versions_compliancy = array('min' => '1.7', 'max' => '1.8'); $this->dependencies = array('agilemultipleseller','agilekernel'); $this->is_eu_compatible = 1; $this->currencies = true; $this->currencies_mode = 'radio'; if (isset($this->agile_configs['AGILE_GOOGLEWALLET_NAME'])) $this->googlewalletName = $this->agile_configs['AGILE_GOOGLEWALLET_NAME']; if (isset($this->agile_configs['AGILE_GOOGLEWALLET_ADDRESS'])) $this->address = $this->agile_configs['AGILE_GOOGLEWALLET_ADDRESS']; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Pay by GoogleWallet'); $this->description = $this->l('Module for accepting payments by GoogleWallet.'); $this->confirmUninstall = $this->l('Are you sure you want to delete your details ?'); if (!isset($this->googlewalletName) OR !isset($this->address)) $this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.'); if (!sizeof(Currency::checkPaymentCurrencies($this->id))) $this->warning = $this->l('No currency set for this module'); } private function getConfigKeys() { return array('AGILE_GOOGLEWALLET_NAME', 'AGILE_GOOGLEWALLET_ADDRESS'); } public function install() { if(!Module::isInstalled('agilekernel')) { $this->_errors[] = $this->l('You have to install Agile Kernel module before installing this module. The download link of this module should have been included your download email for your order. If you can not find it, please request by email to [email protected] with your order #.'); return false; } if(!$this->AgilePreinstall())return false; if (parent::install() == false ) { $this->_errors[] = $this->l('Install error - call parent::install()'); return false; } if (!$this->registerHook('actionAgilePaymentModuleIntegrate') || !$this->registerHook('paymentOptions') || !$this->registerHook('displayPaymentReturn')) return false; Db::getInstance()->Execute("UPDATE " . _DB_PREFIX_ . "order_state SET module_name='agilepaybygooglewallet' WHERE module_name='googlewallet"); Autoload::getInstance()->generateIndex(); return true; } public function uninstall() { Db::getInstance()->Execute("UPDATE " . _DB_PREFIX_ . "order_state SET module_name='googlewallet WHERE module_name='agilepaybygooglewallet'"); if (!parent::uninstall()) return false; return true; } private function _postValidation() { if (Tools::isSubmit('btnSubmit')) { if (!Tools::getValue('name')) $this->_postErrors[] = $this->l('\'To the order of\' field is required.'); elseif (!Tools::getValue('address')) $this->_postErrors[] = $this->l('Address is required.'); } } private function _postProcess() { if (Tools::isSubmit('btnSubmit')) { Configuration::updateValue('AGILE_GOOGLEWALLET_NAME', Tools::getValue('name')); Configuration::updateValue('AGILE_GOOGLEWALLET_ADDRESS', Tools::getValue('address')); } $this->_html .= $this->displayConfirmation($this->l('Settings updated')); } private function _displayCheque() { $this->_html .= '<img src="../modules/agilepaybygooglewallet/agilepaybygooglewallet.jpg" style="float:left; margin-right:15px;"><b>'.$this->l('This module allows you to accept payments by GoogleWallet.').'</b><br /><br /> '.$this->l('If the client chooses this payment mode, the order status will change to \'Waiting for payment\'.').'<br /> '.$this->l('Therefore, you will need to manually confirm the order as soon as you receive a check.').'<br /><br /><br />'; } private function _displayForm() { $RD05A28496998D5D330106BBAE629B948 = array( 'form' => array( 'legend' => array( 'title' => $this->l('Contact details'), 'icon' => 'icon-envelope' ), 'description' => $this->l('Please specify the name and address to which customers must send their payment.'), 'input' => array( array( 'type' => 'text', 'label' => $this->l('To the order of'), 'name' => 'name', ), array( 'type' => 'textarea', 'label' => $this->l('Address'), 'name' => 'address', ), ), 'submit' => array( 'title' => $this->l('Update settings'), ) ), ); $R3A1E73211A105E82A8C89F8C8E3C8264 = new HelperForm(); $R3A1E73211A105E82A8C89F8C8E3C8264->show_toolbar = false; $R3A1E73211A105E82A8C89F8C8E3C8264->table = $this->table; $R51C716B9664B3F4E109066C05B9B1A86 = new Language((int)Configuration::get('PS_LANG_DEFAULT')); $R3A1E73211A105E82A8C89F8C8E3C8264->default_form_language = $R51C716B9664B3F4E109066C05B9B1A86->id; $R3A1E73211A105E82A8C89F8C8E3C8264->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; $this->fields_form = array(); $R3A1E73211A105E82A8C89F8C8E3C8264->id = (int)Tools::getValue('id_carrier'); $R3A1E73211A105E82A8C89F8C8E3C8264->identifier = $this->identifier; $R3A1E73211A105E82A8C89F8C8E3C8264->submit_action = 'btnSubmit'; $R3A1E73211A105E82A8C89F8C8E3C8264->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; $R3A1E73211A105E82A8C89F8C8E3C8264->token = Tools::getAdminTokenLite('AdminModules'); $R3A1E73211A105E82A8C89F8C8E3C8264->tpl_vars = array( 'fields_value' => $this->getConfigFieldsValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id ); $this->_html .= $R3A1E73211A105E82A8C89F8C8E3C8264->generateForm(array($RD05A28496998D5D330106BBAE629B948)); } public function getConfigFieldsValues() { $RBAAA917A11E347C49C3462A9383AE5BD = Configuration::getMultiple($this->getConfigKeys()); return array( 'name' => htmlentities(Tools::getValue('name', array_key_exists('AGILE_GOOGLEWALLET_NAME', $RBAAA917A11E347C49C3462A9383AE5BD) ? $RBAAA917A11E347C49C3462A9383AE5BD['AGILE_GOOGLEWALLET_NAME'] : ''), ENT_COMPAT, 'UTF-8'), 'address' => htmlentities(Tools::getValue('address', array_key_exists('AGILE_GOOGLEWALLET_ADDRESS', $RBAAA917A11E347C49C3462A9383AE5BD) ? $RBAAA917A11E347C49C3462A9383AE5BD['AGILE_GOOGLEWALLET_ADDRESS'] : ''), ENT_COMPAT, 'UTF-8'), ); } public function getContent() { $this->_html = '<h2>'.$this->displayName.'</h2>'; if (Tools::isSubmit('btnSubmit')) { $this->_postValidation(); if (!sizeof($this->_postErrors)) $this->_postProcess(); else foreach ($this->_postErrors AS $R1B33F70F787A1698E61F040B7ED037E5) $this->_html .= '<div class="alert alert-danger">'.$R1B33F70F787A1698E61F040B7ED037E5.'</div>'; } else $this->_html .= '<br />'; $this->_displayCheque(); $this->_displayForm(); return $this->_html; } public function hookPaymentOptions($RC2D2567438B1F39DD71F78195B5F3DED) { if (!$this->active) return; if (!$this->checkCurrency($RC2D2567438B1F39DD71F78195B5F3DED['cart'])) return; if(Module::isInstalled('agilemultipleseller')) { $RFA34F5AA68FB175F39407BC4D03FA3DD = (int)Configuration::get('AGILE_MS_PAYMENT_MODE'); if(!self::$PaymentCollectionMode[$RFA34F5AA68FB175F39407BC4D03FA3DD])return false; $RF8AB79CB3F4E21B6B6CB6A743C481B21 = AgileSellerManager::seller_payment_uses($RC2D2567438B1F39DD71F78195B5F3DED['cart']->id, $this->name); if($RFA34F5AA68FB175F39407BC4D03FA3DD != 3 && $RF8AB79CB3F4E21B6B6CB6A743C481B21 == 0)return false; } Context::getContext()->controller->addCSS($this->_path.'css/agilepaybygooglewallet.css', 'all'); $this->smarty->assign(array( 'this_path' => $this->_path, 'this_path_googlewallet' => $this->_path, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); $RE3D22EFC113F90A206DF71495BF5CCAF = new PaymentOption(); $RE3D22EFC113F90A206DF71495BF5CCAF->setCallToActionText($this->trans('Pay by GoogleWallet', array(), 'Modules.AgilePayByGoogleWallet.Shop')) ->setAction($this->context->link->getModuleLink($this->name, 'payment', array(), true)) ->setAdditionalInformation($this->fetch('module:agilepaybygooglewallet/views/templates/hook/payment.tpl')); $R938977A33ABE8FD2318B4D1938916FA0 = [ $RE3D22EFC113F90A206DF71495BF5CCAF, ]; return $R938977A33ABE8FD2318B4D1938916FA0; } public function execPayment($cart) { if (!$this->active) return ; if (!$this->checkCurrency($cart)) Tools::redirectLink(__PS_BASE_URI__.'order.php'); $R2B20C14B87742CC56217124348C775F2=$this->getSellerChequeInfo($cart->id); $this->googlewalletName = $R2B20C14B87742CC56217124348C775F2['{googlewallet_name}']; $this->address = $R2B20C14B87742CC56217124348C775F2['{googlewallet_address}']; $this->context->smarty->assign(array( 'id_subcart' => Tools::getValue("id_subcart",0), 'nbProducts' => $cart->nbProducts(), 'cust_currency' => $cart->id_currency, 'currencies' => $this->getCurrency((int)$cart->id_currency), 'total' => $cart->getOrderTotal(true, Cart::BOTH), 'isoCode' => Language::getIsoById((int)($this->context->cookie->id_lang)), 'googlewalletName' => $this->googlewalletName, 'googlewalletAddress' => ((version_compare(_PS_VERSION_,'1.5', '>='))?Tools::nl2br($this->address) : nl2br2($this->address)), 'this_path' => $this->_path, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); } public function prepareExecutePayment($RC2D2567438B1F39DD71F78195B5F3DED) { if (!$this->active) return ; if (!$this->checkCurrency($RC2D2567438B1F39DD71F78195B5F3DED['cart'])) return ; $RFA34F5AA68FB175F39407BC4D03FA3DD = (int)Configuration::get('AGILE_MS_PAYMENT_MODE'); if(Module::isInstalled('agilemultipleseller') && !self::$PaymentCollectionMode[$RFA34F5AA68FB175F39407BC4D03FA3DD])return false; $R982D82AB19D549185E77D69EDC88590C = new Currency($RC2D2567438B1F39DD71F78195B5F3DED['cart']->id_currency); $RF8AB79CB3F4E21B6B6CB6A743C481B21 = 0; if(Module::isInstalled('agilemultipleseller')) { if (intval(Configuration::get('AGILE_MS_PAYMENT_MODE')) == AgileMultipleSeller::PAYMENT_MODE_BOTH) return ; $RF8AB79CB3F4E21B6B6CB6A743C481B21 = AgileSellerManager::seller_payment_uses($RC2D2567438B1F39DD71F78195B5F3DED['cart']->id, 'agilepaybygooglewallet'); if($RF8AB79CB3F4E21B6B6CB6A743C481B21 == 0)return; else if($RF8AB79CB3F4E21B6B6CB6A743C481B21 == 2 || $RF8AB79CB3F4E21B6B6CB6A743C481B21 == 1) { $R48978A3132DDD2F387E15E0262ED77BA = Context::getContext()->link->getModuleLink('agilepaybygooglewallet', 'validation', array(), true); $RE2F5E4D2DBB05B236BBA35CE7E2EBCC0 = 0; if(Module::isInstalled('agilemultipleseller')) { include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php"); if (intval(Configuration::get('AGILE_MS_PAYMENT_MODE')) == AgileMultipleSeller::PAYMENT_MODE_BOTH) return ; include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php"); $RE2F5E4D2DBB05B236BBA35CE7E2EBCC0 = (intval(Configuration::get('AGILE_MS_PAYMENT_MODE')) == AgileMultipleSeller::PAYMENT_MODE_SELLER?1:0); $RB16631D04944C192C205E97F33891868 = new AgileMultipleSeller(); $R120E2B50C7DE2ABA5F77EF4696095D1F = $RB16631D04944C192C205E97F33891868->hookSubcartPaymentInfo($this->name,'agilepaybygooglewalletform', ($RF8AB79CB3F4E21B6B6CB6A743C481B21 == 1)); $RCFCF08233F07816361BB0314160921C1 = '<form id="agilepaybygooglewalletform" action="' . $R48978A3132DDD2F387E15E0262ED77BA . '" method="post">' . $R120E2B50C7DE2ABA5F77EF4696095D1F . '</form>'; } Context::getContext()->controller->addCSS($this->_path.'css/agilepaybygooglewallet.css', 'all'); $this->context->smarty->assign(array( 'ps_version_14' =>( _PS_VERSION_ > '1.5'?0:1), 'seller_collects_payment' => $RE2F5E4D2DBB05B236BBA35CE7E2EBCC0, 'this_path' => $this->_path, 'HOOK_SUBCARTP_PAYMENTINFO_AGILEPAYBYGOOGLEWALLET' => (isset($RCFCF08233F07816361BB0314160921C1)?$RCFCF08233F07816361BB0314160921C1:""), 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/', 'agilepaybygooglewallet_payment_url' => $R48978A3132DDD2F387E15E0262ED77BA, )); } } Context::getContext()->controller->addCSS($this->_path.'css/agilepaybygooglewallet.css', 'all'); $this->context->smarty->assign(array( 'is_agilepaypalgooglewallet_parallel' => (!Module::isInstalled('agilemultipleseller') || $RF8AB79CB3F4E21B6B6CB6A743C481B21 == 1 || (int)(Configuration::get('AGILE_MS_PAYMENT_MODE')) == 3), 'this_path_googlewallet' => $this->_path, 'agilepaybygooglewallet_currency' => $R982D82AB19D549185E77D69EDC88590C->id, 'this_path_googlewallet_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); return $this->display(__FILE__, 'payment.tpl'); } public function hookDisplayPaymentReturn($RC2D2567438B1F39DD71F78195B5F3DED) { if (!$this->active) return ; $R56EA904D533235F889591E04DE8C6B68 = $RC2D2567438B1F39DD71F78195B5F3DED['order']; $R2B20C14B87742CC56217124348C775F2=$this->getSellerChequeInfo($R56EA904D533235F889591E04DE8C6B68->id_cart); $this->googlewalletName = $R2B20C14B87742CC56217124348C775F2['{googlewallet_name}']; $this->address = $R2B20C14B87742CC56217124348C775F2['{googlewallet_address}']; $R901A6B96DBC8033F4D411C6E0FB53113 = $RC2D2567438B1F39DD71F78195B5F3DED['order']->getCurrentState(); if ($R901A6B96DBC8033F4D411C6E0FB53113 == Configuration::get('PS_OS_GOOGLEWALLET') OR $R901A6B96DBC8033F4D411C6E0FB53113 == Configuration::get('PS_OS_OUTOFSTOCK')) $this->context->smarty->assign(array( 'total_to_pay' => Tools::displayPrice($RC2D2567438B1F39DD71F78195B5F3DED['total_to_pay'], $RC2D2567438B1F39DD71F78195B5F3DED['currencyObj'], false), 'googlewalletName' => $this->googlewalletName, 'googlewalletAddress' => ((version_compare(_PS_VERSION_,'1.5', '>='))?Tools::nl2br($this->address) : nl2br2($this->address)), 'status' => 'ok', 'id_order' => $RC2D2567438B1F39DD71F78195B5F3DED['order']->id )); else $this->context->smarty->assign('status', 'failed'); return $this->display(__FILE__, 'payment_return.tpl'); } public function checkCurrency($cart) { $R982D82AB19D549185E77D69EDC88590C = new Currency($cart->id_currency); $R06D95919188F5EE900C9D2FDDA6C2D27 = $this->getCurrency($cart->id_currency); if (is_array($R06D95919188F5EE900C9D2FDDA6C2D27)) { foreach ($R06D95919188F5EE900C9D2FDDA6C2D27 as $RF9F42DF316FBD92CB7F35D539398F40A) { if ($R982D82AB19D549185E77D69EDC88590C->id == $RF9F42DF316FBD92CB7F35D539398F40A['id_currency']) { return true; } } } if(Validate::isLoadedObject($R06D95919188F5EE900C9D2FDDA6C2D27)) { return $R982D82AB19D549185E77D69EDC88590C->id == $R06D95919188F5EE900C9D2FDDA6C2D27->id; } return false; } public function getL($RF413F06AEBBCEF5E1C8B1019DEE6FE6B) { $R64D53A42404E0084D759965821B9824E = array( 'Cheque information not found' => $this->l('Cheque information not found') ); return $R64D53A42404E0084D759965821B9824E[$RF413F06AEBBCEF5E1C8B1019DEE6FE6B]; } public function getExtraMailVAars($R95909C49377A2B4F24C79D29C629AF65) { return $this->getSellerChequeInfoBySellerID($R95909C49377A2B4F24C79D29C629AF65); } public function getSellerChequeInfoBySellerID($R95909C49377A2B4F24C79D29C629AF65) { if(intval($R95909C49377A2B4F24C79D29C629AF65)<=0) return array( '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("
", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')), '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("
", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')) ); $R130D64A4AD653C91E0FD80DE8FEADC3A = 'SELECT * FROM `'._DB_PREFIX_.'agile_seller_paymentinfo` WHERE module_name=\'' . $this->name .'\' AND id_seller=' . intval($R95909C49377A2B4F24C79D29C629AF65); $RB60574D852CEEC26638BCD30B5ED74D6 = Db::getInstance()->getRow($R130D64A4AD653C91E0FD80DE8FEADC3A); if(!isset($RB60574D852CEEC26638BCD30B5ED74D6['id_agile_seller_paymentinfo']) OR intval($RB60574D852CEEC26638BCD30B5ED74D6['id_agile_seller_paymentinfo'])<=0) return array(); return array( '{googlewallet_name}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info1']), '{googlewallet_address}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info2']), '{googlewallet_address_html}' => str_replace("
", '<br />', $RB60574D852CEEC26638BCD30B5ED74D6['info2']), '{googlewallet_name}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info1']), '{googlewallet_address}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info2']), '{googlewallet_address_html}' => str_replace("
", '<br />', $RB60574D852CEEC26638BCD30B5ED74D6['info2']) ); } public function getSellerChequeInfo($RF50CDD3F2AACFD3098534F1C052C25BE) { $R86C5E73076D1B0DC2D90B56184F342F0 = new Cart($RF50CDD3F2AACFD3098534F1C052C25BE); $RC4203A5498CA75797A54F21FF9584DDD = array( '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("
", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')), '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("
", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')) ); if(!Module::isInstalled('agilemultipleseller') OR intval(Configuration::get('AGILE_MS_PAYMENT_MODE'))!=1) return $RC4203A5498CA75797A54F21FF9584DDD; $R743CE00DE0F4FEA746D03BBAE2968D01 = $R86C5E73076D1B0DC2D90B56184F342F0->getProducts(); if(empty($R743CE00DE0F4FEA746D03BBAE2968D01)) return array(); $RB3F07F8C3658A835940E88288B58F707 = $R743CE00DE0F4FEA746D03BBAE2968D01[0]; $R130D64A4AD653C91E0FD80DE8FEADC3A = 'SELECT id_owner FROM `'._DB_PREFIX_.'product_owner` WHERE id_product=' . $RB3F07F8C3658A835940E88288B58F707['id_product']; $R05A7FD59CA6FB50AC648A5447FEADD4A = (int)Db::getInstance()->getValue($R130D64A4AD653C91E0FD80DE8FEADC3A); return $this->getSellerChequeInfoBySellerID($R05A7FD59CA6FB50AC648A5447FEADD4A); } public function getAdditionalInfo($R95909C49377A2B4F24C79D29C629AF65) { $R9064F5F2E50522D4A4419AF4D6D76216 = array(); if((int)$R95909C49377A2B4F24C79D29C629AF65 <= 0) { $R9064F5F2E50522D4A4419AF4D6D76216 = array('info1' =>Configuration::get('AGILE_GOOGLEWALLET_NAME') , 'info2'=> nl2br(Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'))); } else { $R130D64A4AD653C91E0FD80DE8FEADC3A = 'SELECT * FROM `'._DB_PREFIX_.'agile_seller_paymentinfo` WHERE module_name=\'' . $this->name .'\' AND id_seller=' . (int)$R95909C49377A2B4F24C79D29C629AF65; $R9064F5F2E50522D4A4419AF4D6D76216 = Db::getInstance()->getRow($R130D64A4AD653C91E0FD80DE8FEADC3A); } if(empty($R9064F5F2E50522D4A4419AF4D6D76216))return ""; $this->context->smarty->assign(array( 'agilepaybygooglewallet_paymentinfo' => $R9064F5F2E50522D4A4419AF4D6D76216 )); return $this->display(__FILE__, 'additional_info.tpl'); } public function hookActionAgilePaymentModuleIntegrate($RC2D2567438B1F39DD71F78195B5F3DED) { return array( 'name' => $this->name, 'desc' => $this->displayName, 'mode' => self::$PaymentCollectionMode, 'elinks' => array(), 'info1' => array('label' => $this->l('Pay To Name'), 'is_unique'=>0), 'info2' => array('label' => $this->l('Pay To Address'),'is_unique'=>0), 'info3' => array('label' => 'N/A','is_unique'=>0), 'info4' => array('label' => 'N/A','is_unique'=>0), 'info5' => array('label' => 'N/A','is_unique'=>0), 'info6' => array('label' => 'N/A','is_unique'=>0), 'info7' => array('label' => 'N/A','is_unique'=>0), 'info8' => array('label' => 'N/A','is_unique'=>0), ); } } ?>
Did this file decode correctly?
Original Code
<?php
///-build_id: 2018022022.2756
/// This source file is subject to the Software License Agreement that is bundled with this
/// package in the file license.txt, or you can get it here
/// http://addons-modules.com/en/content/3-terms-and-conditions-of-use
///
/// @copyright 2009-2016 Addons-Modules.com
/// If you need open code to customize or merge code with othe modules, please contact us.
if (!defined('_PS_VERSION_'))
exit;
use PrestaShop\PrestaShop\Core\Payment\PaymentOption;
class AgilePayByGoogleWallet extends PaymentModule
{
public static $PaymentCollectionMode = array(
1 => true ,2 => false ,3 => true );
private $_html = '';
private $_postErrors = array();
public $googlewalletName;
public $address;
public $extra_mail_vars;
public function __construct() { $this->agile_configs = Configuration::getMultiple($this->getConfigKeys()); $this->agile_newfiles = array(); $this->agile_dependencies = array('agilemultipleseller' => '3.7.0.4', 'agilekernel'=>'1.7.1.0'); $this->name = 'agilepaybygooglewallet'; $this->isAgileKernelCompatible = true; $this->tab = 'payments_gateways'; $this->version = '2.7.0.2'; $this->author = 'addons-modules.com'; $this->ps_versions_compliancy = array('min' => '1.7', 'max' => '1.8'); $this->dependencies = array('agilemultipleseller','agilekernel'); $this->is_eu_compatible = 1; $this->currencies = true; $this->currencies_mode = 'radio'; if (isset($this->agile_configs['AGILE_GOOGLEWALLET_NAME'])) $this->googlewalletName = $this->agile_configs['AGILE_GOOGLEWALLET_NAME']; if (isset($this->agile_configs['AGILE_GOOGLEWALLET_ADDRESS'])) $this->address = $this->agile_configs['AGILE_GOOGLEWALLET_ADDRESS']; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Pay by GoogleWallet'); $this->description = $this->l('Module for accepting payments by GoogleWallet.'); $this->confirmUninstall = $this->l('Are you sure you want to delete your details ?'); if (!isset($this->googlewalletName) OR !isset($this->address)) $this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.'); if (!sizeof(Currency::checkPaymentCurrencies($this->id))) $this->warning = $this->l('No currency set for this module'); } private function getConfigKeys() { return array('AGILE_GOOGLEWALLET_NAME', 'AGILE_GOOGLEWALLET_ADDRESS'); } public function install() { if(!Module::isInstalled('agilekernel')) { $this->_errors[] = $this->l('You have to install Agile Kernel module before installing this module. The download link of this module should have been included your download email for your order. If you can not find it, please request by email to [email protected] with your order #.'); return false; } if(!$this->AgilePreinstall())return false; if (parent::install() == false ) { $this->_errors[] = $this->l('Install error - call parent::install()'); return false; } if (!$this->registerHook('actionAgilePaymentModuleIntegrate') || !$this->registerHook('paymentOptions') || !$this->registerHook('displayPaymentReturn')) return false; Db::getInstance()->Execute("UPDATE " . _DB_PREFIX_ . "order_state SET module_name='agilepaybygooglewallet' WHERE module_name='googlewallet"); Autoload::getInstance()->generateIndex(); return true; } public function uninstall() { Db::getInstance()->Execute("UPDATE " . _DB_PREFIX_ . "order_state SET module_name='googlewallet WHERE module_name='agilepaybygooglewallet'"); if (!parent::uninstall()) return false; return true; } private function _postValidation() { if (Tools::isSubmit('btnSubmit')) { if (!Tools::getValue('name')) $this->_postErrors[] = $this->l('\'To the order of\' field is required.'); elseif (!Tools::getValue('address')) $this->_postErrors[] = $this->l('Address is required.'); } } private function _postProcess() { if (Tools::isSubmit('btnSubmit')) { Configuration::updateValue('AGILE_GOOGLEWALLET_NAME', Tools::getValue('name')); Configuration::updateValue('AGILE_GOOGLEWALLET_ADDRESS', Tools::getValue('address')); } $this->_html .= $this->displayConfirmation($this->l('Settings updated')); } private function _displayCheque() { $this->_html .= '<img src="../modules/agilepaybygooglewallet/agilepaybygooglewallet.jpg" style="float:left; margin-right:15px;"><b>'.$this->l('This module allows you to accept payments by GoogleWallet.').'</b><br /><br /> '.$this->l('If the client chooses this payment mode, the order status will change to \'Waiting for payment\'.').'<br /> '.$this->l('Therefore, you will need to manually confirm the order as soon as you receive a check.').'<br /><br /><br />'; } private function _displayForm() { $RD05A28496998D5D330106BBAE629B948 = array( 'form' => array( 'legend' => array( 'title' => $this->l('Contact details'), 'icon' => 'icon-envelope' ), 'description' => $this->l('Please specify the name and address to which customers must send their payment.'), 'input' => array( array( 'type' => 'text', 'label' => $this->l('To the order of'), 'name' => 'name', ), array( 'type' => 'textarea', 'label' => $this->l('Address'), 'name' => 'address', ), ), 'submit' => array( 'title' => $this->l('Update settings'), ) ), ); $R3A1E73211A105E82A8C89F8C8E3C8264 = new HelperForm(); $R3A1E73211A105E82A8C89F8C8E3C8264->show_toolbar = false; $R3A1E73211A105E82A8C89F8C8E3C8264->table = $this->table; $R51C716B9664B3F4E109066C05B9B1A86 = new Language((int)Configuration::get('PS_LANG_DEFAULT')); $R3A1E73211A105E82A8C89F8C8E3C8264->default_form_language = $R51C716B9664B3F4E109066C05B9B1A86->id; $R3A1E73211A105E82A8C89F8C8E3C8264->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; $this->fields_form = array(); $R3A1E73211A105E82A8C89F8C8E3C8264->id = (int)Tools::getValue('id_carrier'); $R3A1E73211A105E82A8C89F8C8E3C8264->identifier = $this->identifier; $R3A1E73211A105E82A8C89F8C8E3C8264->submit_action = 'btnSubmit'; $R3A1E73211A105E82A8C89F8C8E3C8264->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; $R3A1E73211A105E82A8C89F8C8E3C8264->token = Tools::getAdminTokenLite('AdminModules'); $R3A1E73211A105E82A8C89F8C8E3C8264->tpl_vars = array( 'fields_value' => $this->getConfigFieldsValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id ); $this->_html .= $R3A1E73211A105E82A8C89F8C8E3C8264->generateForm(array($RD05A28496998D5D330106BBAE629B948)); } public function getConfigFieldsValues() { $RBAAA917A11E347C49C3462A9383AE5BD = Configuration::getMultiple($this->getConfigKeys()); return array( 'name' => htmlentities(Tools::getValue('name', array_key_exists('AGILE_GOOGLEWALLET_NAME', $RBAAA917A11E347C49C3462A9383AE5BD) ? $RBAAA917A11E347C49C3462A9383AE5BD['AGILE_GOOGLEWALLET_NAME'] : ''), ENT_COMPAT, 'UTF-8'), 'address' => htmlentities(Tools::getValue('address', array_key_exists('AGILE_GOOGLEWALLET_ADDRESS', $RBAAA917A11E347C49C3462A9383AE5BD) ? $RBAAA917A11E347C49C3462A9383AE5BD['AGILE_GOOGLEWALLET_ADDRESS'] : ''), ENT_COMPAT, 'UTF-8'), ); } public function getContent() { $this->_html = '<h2>'.$this->displayName.'</h2>'; if (Tools::isSubmit('btnSubmit')) { $this->_postValidation(); if (!sizeof($this->_postErrors)) $this->_postProcess(); else foreach ($this->_postErrors AS $R1B33F70F787A1698E61F040B7ED037E5) $this->_html .= '<div class="alert alert-danger">'.$R1B33F70F787A1698E61F040B7ED037E5.'</div>'; } else $this->_html .= '<br />'; $this->_displayCheque(); $this->_displayForm(); return $this->_html; } public function hookPaymentOptions($RC2D2567438B1F39DD71F78195B5F3DED) { if (!$this->active) return; if (!$this->checkCurrency($RC2D2567438B1F39DD71F78195B5F3DED['cart'])) return; if(Module::isInstalled('agilemultipleseller')) { $RFA34F5AA68FB175F39407BC4D03FA3DD = (int)Configuration::get('AGILE_MS_PAYMENT_MODE'); if(!self::$PaymentCollectionMode[$RFA34F5AA68FB175F39407BC4D03FA3DD])return false; $RF8AB79CB3F4E21B6B6CB6A743C481B21 = AgileSellerManager::seller_payment_uses($RC2D2567438B1F39DD71F78195B5F3DED['cart']->id, $this->name); if($RFA34F5AA68FB175F39407BC4D03FA3DD != 3 && $RF8AB79CB3F4E21B6B6CB6A743C481B21 == 0)return false; } Context::getContext()->controller->addCSS($this->_path.'css/agilepaybygooglewallet.css', 'all'); $this->smarty->assign(array( 'this_path' => $this->_path, 'this_path_googlewallet' => $this->_path, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); $RE3D22EFC113F90A206DF71495BF5CCAF = new PaymentOption(); $RE3D22EFC113F90A206DF71495BF5CCAF->setCallToActionText($this->trans('Pay by GoogleWallet', array(), 'Modules.AgilePayByGoogleWallet.Shop')) ->setAction($this->context->link->getModuleLink($this->name, 'payment', array(), true)) ->setAdditionalInformation($this->fetch('module:agilepaybygooglewallet/views/templates/hook/payment.tpl')); $R938977A33ABE8FD2318B4D1938916FA0 = [ $RE3D22EFC113F90A206DF71495BF5CCAF, ]; return $R938977A33ABE8FD2318B4D1938916FA0; } public function execPayment($cart) { if (!$this->active) return ; if (!$this->checkCurrency($cart)) Tools::redirectLink(__PS_BASE_URI__.'order.php'); $R2B20C14B87742CC56217124348C775F2=$this->getSellerChequeInfo($cart->id); $this->googlewalletName = $R2B20C14B87742CC56217124348C775F2['{googlewallet_name}']; $this->address = $R2B20C14B87742CC56217124348C775F2['{googlewallet_address}']; $this->context->smarty->assign(array( 'id_subcart' => Tools::getValue("id_subcart",0), 'nbProducts' => $cart->nbProducts(), 'cust_currency' => $cart->id_currency, 'currencies' => $this->getCurrency((int)$cart->id_currency), 'total' => $cart->getOrderTotal(true, Cart::BOTH), 'isoCode' => Language::getIsoById((int)($this->context->cookie->id_lang)), 'googlewalletName' => $this->googlewalletName, 'googlewalletAddress' => ((version_compare(_PS_VERSION_,'1.5', '>='))?Tools::nl2br($this->address) : nl2br2($this->address)), 'this_path' => $this->_path, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); } public function prepareExecutePayment($RC2D2567438B1F39DD71F78195B5F3DED) { if (!$this->active) return ; if (!$this->checkCurrency($RC2D2567438B1F39DD71F78195B5F3DED['cart'])) return ; $RFA34F5AA68FB175F39407BC4D03FA3DD = (int)Configuration::get('AGILE_MS_PAYMENT_MODE'); if(Module::isInstalled('agilemultipleseller') && !self::$PaymentCollectionMode[$RFA34F5AA68FB175F39407BC4D03FA3DD])return false; $R982D82AB19D549185E77D69EDC88590C = new Currency($RC2D2567438B1F39DD71F78195B5F3DED['cart']->id_currency); $RF8AB79CB3F4E21B6B6CB6A743C481B21 = 0; if(Module::isInstalled('agilemultipleseller')) { if (intval(Configuration::get('AGILE_MS_PAYMENT_MODE')) == AgileMultipleSeller::PAYMENT_MODE_BOTH) return ; $RF8AB79CB3F4E21B6B6CB6A743C481B21 = AgileSellerManager::seller_payment_uses($RC2D2567438B1F39DD71F78195B5F3DED['cart']->id, 'agilepaybygooglewallet'); if($RF8AB79CB3F4E21B6B6CB6A743C481B21 == 0)return; else if($RF8AB79CB3F4E21B6B6CB6A743C481B21 == 2 || $RF8AB79CB3F4E21B6B6CB6A743C481B21 == 1) { $R48978A3132DDD2F387E15E0262ED77BA = Context::getContext()->link->getModuleLink('agilepaybygooglewallet', 'validation', array(), true); $RE2F5E4D2DBB05B236BBA35CE7E2EBCC0 = 0; if(Module::isInstalled('agilemultipleseller')) { include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php"); if (intval(Configuration::get('AGILE_MS_PAYMENT_MODE')) == AgileMultipleSeller::PAYMENT_MODE_BOTH) return ; include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php"); $RE2F5E4D2DBB05B236BBA35CE7E2EBCC0 = (intval(Configuration::get('AGILE_MS_PAYMENT_MODE')) == AgileMultipleSeller::PAYMENT_MODE_SELLER?1:0); $RB16631D04944C192C205E97F33891868 = new AgileMultipleSeller(); $R120E2B50C7DE2ABA5F77EF4696095D1F = $RB16631D04944C192C205E97F33891868->hookSubcartPaymentInfo($this->name,'agilepaybygooglewalletform', ($RF8AB79CB3F4E21B6B6CB6A743C481B21 == 1)); $RCFCF08233F07816361BB0314160921C1 = '<form id="agilepaybygooglewalletform" action="' . $R48978A3132DDD2F387E15E0262ED77BA . '" method="post">' . $R120E2B50C7DE2ABA5F77EF4696095D1F . '</form>'; } Context::getContext()->controller->addCSS($this->_path.'css/agilepaybygooglewallet.css', 'all'); $this->context->smarty->assign(array( 'ps_version_14' =>( _PS_VERSION_ > '1.5'?0:1), 'seller_collects_payment' => $RE2F5E4D2DBB05B236BBA35CE7E2EBCC0, 'this_path' => $this->_path, 'HOOK_SUBCARTP_PAYMENTINFO_AGILEPAYBYGOOGLEWALLET' => (isset($RCFCF08233F07816361BB0314160921C1)?$RCFCF08233F07816361BB0314160921C1:""), 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/', 'agilepaybygooglewallet_payment_url' => $R48978A3132DDD2F387E15E0262ED77BA, )); } } Context::getContext()->controller->addCSS($this->_path.'css/agilepaybygooglewallet.css', 'all'); $this->context->smarty->assign(array( 'is_agilepaypalgooglewallet_parallel' => (!Module::isInstalled('agilemultipleseller') || $RF8AB79CB3F4E21B6B6CB6A743C481B21 == 1 || (int)(Configuration::get('AGILE_MS_PAYMENT_MODE')) == 3), 'this_path_googlewallet' => $this->_path, 'agilepaybygooglewallet_currency' => $R982D82AB19D549185E77D69EDC88590C->id, 'this_path_googlewallet_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); return $this->display(__FILE__, 'payment.tpl'); } public function hookDisplayPaymentReturn($RC2D2567438B1F39DD71F78195B5F3DED) { if (!$this->active) return ; $R56EA904D533235F889591E04DE8C6B68 = $RC2D2567438B1F39DD71F78195B5F3DED['order']; $R2B20C14B87742CC56217124348C775F2=$this->getSellerChequeInfo($R56EA904D533235F889591E04DE8C6B68->id_cart); $this->googlewalletName = $R2B20C14B87742CC56217124348C775F2['{googlewallet_name}']; $this->address = $R2B20C14B87742CC56217124348C775F2['{googlewallet_address}']; $R901A6B96DBC8033F4D411C6E0FB53113 = $RC2D2567438B1F39DD71F78195B5F3DED['order']->getCurrentState(); if ($R901A6B96DBC8033F4D411C6E0FB53113 == Configuration::get('PS_OS_GOOGLEWALLET') OR $R901A6B96DBC8033F4D411C6E0FB53113 == Configuration::get('PS_OS_OUTOFSTOCK')) $this->context->smarty->assign(array( 'total_to_pay' => Tools::displayPrice($RC2D2567438B1F39DD71F78195B5F3DED['total_to_pay'], $RC2D2567438B1F39DD71F78195B5F3DED['currencyObj'], false), 'googlewalletName' => $this->googlewalletName, 'googlewalletAddress' => ((version_compare(_PS_VERSION_,'1.5', '>='))?Tools::nl2br($this->address) : nl2br2($this->address)), 'status' => 'ok', 'id_order' => $RC2D2567438B1F39DD71F78195B5F3DED['order']->id )); else $this->context->smarty->assign('status', 'failed'); return $this->display(__FILE__, 'payment_return.tpl'); } public function checkCurrency($cart) { $R982D82AB19D549185E77D69EDC88590C = new Currency($cart->id_currency); $R06D95919188F5EE900C9D2FDDA6C2D27 = $this->getCurrency($cart->id_currency); if (is_array($R06D95919188F5EE900C9D2FDDA6C2D27)) { foreach ($R06D95919188F5EE900C9D2FDDA6C2D27 as $RF9F42DF316FBD92CB7F35D539398F40A) { if ($R982D82AB19D549185E77D69EDC88590C->id == $RF9F42DF316FBD92CB7F35D539398F40A['id_currency']) { return true; } } } if(Validate::isLoadedObject($R06D95919188F5EE900C9D2FDDA6C2D27)) { return $R982D82AB19D549185E77D69EDC88590C->id == $R06D95919188F5EE900C9D2FDDA6C2D27->id; } return false; } public function getL($RF413F06AEBBCEF5E1C8B1019DEE6FE6B) { $R64D53A42404E0084D759965821B9824E = array( 'Cheque information not found' => $this->l('Cheque information not found') ); return $R64D53A42404E0084D759965821B9824E[$RF413F06AEBBCEF5E1C8B1019DEE6FE6B]; } public function getExtraMailVAars($R95909C49377A2B4F24C79D29C629AF65) { return $this->getSellerChequeInfoBySellerID($R95909C49377A2B4F24C79D29C629AF65); } public function getSellerChequeInfoBySellerID($R95909C49377A2B4F24C79D29C629AF65) { if(intval($R95909C49377A2B4F24C79D29C629AF65)<=0) return array( '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("\n", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')), '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("\n", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')) ); $R130D64A4AD653C91E0FD80DE8FEADC3A = 'SELECT * FROM `'._DB_PREFIX_.'agile_seller_paymentinfo` WHERE module_name=\'' . $this->name .'\' AND id_seller=' . intval($R95909C49377A2B4F24C79D29C629AF65); $RB60574D852CEEC26638BCD30B5ED74D6 = Db::getInstance()->getRow($R130D64A4AD653C91E0FD80DE8FEADC3A); if(!isset($RB60574D852CEEC26638BCD30B5ED74D6['id_agile_seller_paymentinfo']) OR intval($RB60574D852CEEC26638BCD30B5ED74D6['id_agile_seller_paymentinfo'])<=0) return array(); return array( '{googlewallet_name}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info1']), '{googlewallet_address}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info2']), '{googlewallet_address_html}' => str_replace("\n", '<br />', $RB60574D852CEEC26638BCD30B5ED74D6['info2']), '{googlewallet_name}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info1']), '{googlewallet_address}' => nl2br($RB60574D852CEEC26638BCD30B5ED74D6['info2']), '{googlewallet_address_html}' => str_replace("\n", '<br />', $RB60574D852CEEC26638BCD30B5ED74D6['info2']) ); } public function getSellerChequeInfo($RF50CDD3F2AACFD3098534F1C052C25BE) { $R86C5E73076D1B0DC2D90B56184F342F0 = new Cart($RF50CDD3F2AACFD3098534F1C052C25BE); $RC4203A5498CA75797A54F21FF9584DDD = array( '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("\n", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')), '{googlewallet_name}' => Configuration::get('AGILE_GOOGLEWALLET_NAME'), '{googlewallet_address}' => Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'), '{googlewallet_address_html}' => str_replace("\n", '<br />', Configuration::get('AGILE_GOOGLEWALLET_ADDRESS')) ); if(!Module::isInstalled('agilemultipleseller') OR intval(Configuration::get('AGILE_MS_PAYMENT_MODE'))!=1) return $RC4203A5498CA75797A54F21FF9584DDD; $R743CE00DE0F4FEA746D03BBAE2968D01 = $R86C5E73076D1B0DC2D90B56184F342F0->getProducts(); if(empty($R743CE00DE0F4FEA746D03BBAE2968D01)) return array(); $RB3F07F8C3658A835940E88288B58F707 = $R743CE00DE0F4FEA746D03BBAE2968D01[0]; $R130D64A4AD653C91E0FD80DE8FEADC3A = 'SELECT id_owner FROM `'._DB_PREFIX_.'product_owner` WHERE id_product=' . $RB3F07F8C3658A835940E88288B58F707['id_product']; $R05A7FD59CA6FB50AC648A5447FEADD4A = (int)Db::getInstance()->getValue($R130D64A4AD653C91E0FD80DE8FEADC3A); return $this->getSellerChequeInfoBySellerID($R05A7FD59CA6FB50AC648A5447FEADD4A); } public function getAdditionalInfo($R95909C49377A2B4F24C79D29C629AF65) { $R9064F5F2E50522D4A4419AF4D6D76216 = array(); if((int)$R95909C49377A2B4F24C79D29C629AF65 <= 0) { $R9064F5F2E50522D4A4419AF4D6D76216 = array('info1' =>Configuration::get('AGILE_GOOGLEWALLET_NAME') , 'info2'=> nl2br(Configuration::get('AGILE_GOOGLEWALLET_ADDRESS'))); } else { $R130D64A4AD653C91E0FD80DE8FEADC3A = 'SELECT * FROM `'._DB_PREFIX_.'agile_seller_paymentinfo` WHERE module_name=\'' . $this->name .'\' AND id_seller=' . (int)$R95909C49377A2B4F24C79D29C629AF65; $R9064F5F2E50522D4A4419AF4D6D76216 = Db::getInstance()->getRow($R130D64A4AD653C91E0FD80DE8FEADC3A); } if(empty($R9064F5F2E50522D4A4419AF4D6D76216))return ""; $this->context->smarty->assign(array( 'agilepaybygooglewallet_paymentinfo' => $R9064F5F2E50522D4A4419AF4D6D76216 )); return $this->display(__FILE__, 'additional_info.tpl'); } public function hookActionAgilePaymentModuleIntegrate($RC2D2567438B1F39DD71F78195B5F3DED) { return array( 'name' => $this->name, 'desc' => $this->displayName, 'mode' => self::$PaymentCollectionMode, 'elinks' => array(), 'info1' => array('label' => $this->l('Pay To Name'), 'is_unique'=>0), 'info2' => array('label' => $this->l('Pay To Address'),'is_unique'=>0), 'info3' => array('label' => 'N/A','is_unique'=>0), 'info4' => array('label' => 'N/A','is_unique'=>0), 'info5' => array('label' => 'N/A','is_unique'=>0), 'info6' => array('label' => 'N/A','is_unique'=>0), 'info7' => array('label' => 'N/A','is_unique'=>0), 'info8' => array('label' => 'N/A','is_unique'=>0), ); } }
Function Calls
| None |
Stats
| MD5 | 4d7f6fc74de705a5e989ebf00e527e89 |
| Eval Count | 0 |
| Decode Time | 131 ms |