/** * assemble route with zend router. * * @param $module string module name * @param $action string action name * @param $params array additional params * * @return string */ public function url($module, $action, $params = []) { $params = array_merge($params, array("gateway" => $this->getGateway()->getShortName(), "mod" => "Omnipay", "act" => $action, "lang" => (string) \Zend_Registry::get("Zend_Locale"))); $url = \CoreShop::getTools()->url($params, "coreshop_omnipay_payment"); $url = str_replace("/omnipay/", "/Omnipay/", $url); $url = str_replace("/" . strtolower($this->getGateway()->getName()), "/" . $this->getGateway()->getName(), $url); return $url; }
<form action="<?php echo $this->module->getPaymentUrl(); ?> " method="post"> <div class="panel panel-smart"> <div class="panel-heading"> <h3 class="panel-title"><?php echo $this->translate("Bankwire"); ?> </h3> </div> <div class="panel-body delivery-options"> <p><?php echo sprintf($this->translate("Do you want to pay the amount of %s with Bankwire?", \CoreShop::getTools()->formatPrice($this->cart->getTotal()))); ?> </p> <p><?php echo html_entity_decode(\CoreShop\Model\Configuration::get("BANKWIRE.TEXT." . strtoupper($this->language))); ?> </p> <div class="row"> <div class="col-xs-12"> <a href="<?php echo $this->url(array("lang" => $this->language, "act" => "payment"), "coreshop_checkout"); ?> " class="btn btn-default pull-left"> <?php echo $this->translate("Back"); ?> </a>
<form action="<?php echo $this->module->getPaymentUrl(); ?> " method="post"> <div class="panel panel-smart"> <div class="panel-heading"> <h3 class="panel-title"><?php echo $this->translate("Cash on Delivery"); ?> </h3> </div> <div class="panel-body delivery-options"> <p><?php echo sprintf($this->translate("Do you want to pay the amount %s with Cash on Delivery?", \CoreShop::getTools()->formatPrice($this->cart->getTotal()))); ?> </p> <div class="row"> <div class="col-xs-12"> <a href="<?php echo $this->url(array("lang" => $this->language, "act" => "payment"), "coreshop_checkout"); ?> " class="btn btn-default pull-left"> <?php echo $this->translate("Back"); ?> </a> <button type="submit" class="btn btn-white btn-borderd pull-right"> <?php echo $this->translate("Submit Payment");
<form action="<?php echo $this->module->getPaymentUrl(); ?> " method="post"> <div class="panel panel-smart"> <div class="panel-heading"> <h3 class="panel-title"><?php echo $this->translate($this->module->getName()); ?> </h3> </div> <div class="panel-body delivery-options"> <p><?php echo sprintf($this->translate("Do you want to pay the amount %s with %s?", \CoreShop::getTools()->formatPrice($this->cart->getTotal()), $this->translate($this->module->getName()))); ?> </p> <div class="row"> <div class="col-xs-12"> <a href="<?php echo $this->url(array("lang" => $this->language, "act" => "payment"), "coreshop_checkout"); ?> " class="btn btn-default pull-left"> <?php echo $this->translate("Back"); ?> </a> <button type="submit" class="btn btn-white btn-borderd pull-right"> <?php
<form action="<?php echo $this->module->getPaymentUrl(); ?> " method="post"> <div class="panel panel-smart"> <div class="panel-heading"> <h3 class="panel-title"><?php echo $this->translate('Sofort'); ?> </h3> </div> <div class="panel-body delivery-options"> <p><?php echo sprintf($this->translate('Do you want to pay the amount %s with Sofort?', \CoreShop::getTools()->formatPrice($this->cart->getTotal()))); ?> </p> <div class="row"> <div class="col-xs-12"> <a href="<?php echo $this->url(array('lang' => $this->language, 'act' => 'payment'), 'coreshop_checkout'); ?> " class="btn btn-default pull-left"> <?php echo $this->translate('Back'); ?> </a> <button type="submit" class="btn btn-white btn-borderd pull-right"> <?php echo $this->translate('Submit Payment');