Configuration::get('PAYBYNET_SANDBOX'), 'log' => Configuration::get('PAYBYNET_SORAGE_LOGS') ); $pbn_core = new PaybynetCore($config); $banks_list = $pbn_core->getBanksArray(); if (Tools::getValue('bank_id')) { $selected_bank = $banks_list[Tools::getValue('bank_id')]; $pbn_form_link .= '?idbank='.Tools::getValue('bank_id'); } parent::initContent(); $cart = $this->context->cart; $this->context->smarty->assign(array( 'nbProducts' => $cart->nbProducts(), 'cust_currency' => $cart->id_currency, 'currencies' => $this->module->getCurrency((int)$cart->id_currency), 'total' => $cart->getOrderTotal(true, Cart::BOTH), 'isoCode' => $this->context->language->iso_code, 'chequeName' => $this->module->chequeName, 'chequeAddress' => Tools::nl2br($this->module->address), 'this_path' => $this->module->getPathUri(), 'this_path_cheque' => $this->module->getPathUri(), 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/', 'selected_bank' => $selected_bank, 'bank_id' => Tools::getValue('bank_id') )); $this->setTemplate('payment.tpl'); } }