// Used new 1.5 method for the modules bankwire
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12227 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
db43c28ed2
commit
cff0477c01
1 file changed
+30
@@ -162,6 +162,36 @@ class BankWire extends PaymentModule
|
|||||||
return $this->_html;
|
return $this->_html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function execPayment($cart)
|
||||||
|
{
|
||||||
|
return $this->actionPayment(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function actionPayment($direct_call = false)
|
||||||
|
{
|
||||||
|
$cart = Context::getContext()->cart;
|
||||||
|
|
||||||
|
if (!$this->active)
|
||||||
|
return ;
|
||||||
|
if (!$this->_checkCurrency($cart))
|
||||||
|
Tools::redirect('index.php?controller=order');
|
||||||
|
|
||||||
|
$this->context->smarty->assign(array(
|
||||||
|
'nbProducts' => $cart->nbProducts(),
|
||||||
|
'cust_currency' => $cart->id_currency,
|
||||||
|
'currencies' => $this->getCurrency((int)$cart->id_currency),
|
||||||
|
'total' => $cart->getOrderTotal(true, Cart::BOTH),
|
||||||
|
'this_path' => $this->_path,
|
||||||
|
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'
|
||||||
|
));
|
||||||
|
|
||||||
|
if (!$direct_call)
|
||||||
|
return $this->getTemplatePath('payment_execution.tpl');
|
||||||
|
else
|
||||||
|
// For retrocompatibility
|
||||||
|
return $this->display(__FILE__, 'payment_execution.tpl');
|
||||||
|
}
|
||||||
|
|
||||||
public function hookPayment($params)
|
public function hookPayment($params)
|
||||||
{
|
{
|
||||||
if (!$this->active)
|
if (!$this->active)
|
||||||
|
|||||||
Reference in new issue
Block a user