Example #1
0
 /**
  * @return Omnipay\Shop\Provider
  */
 public function getModule()
 {
     if (is_null($this->module)) {
         $this->module = \CoreShop::getPaymentProvider("omnipay" . $this->gateway);
     }
     return $this->module;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
<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>
Example #4
0
<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 
Example #5
0
<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");
Example #6
0
<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');