Jump to content

Edit History

OctagonMD

OctagonMD

My payment module redirects user to a controller which in turn sets a template.

Unfortunately, redirect results in 404 error.

public function getExternalPaymentOption()
    {
        $externalOption = new PaymentOption();
        $externalOption->setCallToActionText($this->l('Pay by Credit/Debit Card'))
                        ->setAction($this->context->link->getModuleLink($this->name, 'payment', array(), true))
                        ->setInputs([
                            'TRTYPE' => [
                                'name' =>'TRTYPE',
                                'type' =>'hidden',
                                'value' =>'0'
                            ]
                        ])
                       ->setAdditionalInformation($this->context->smarty->fetch('module:victoriabankgateway/views/templates/hook/displayPayment.tpl'));
        return $externalOption;
    }

The naming of module class:

class VictoriaBankGateway extends PaymentModule

The naming of front controller class:

class VictoriaBankGatewayPaymentModuleFrontController extends ModuleFrontController

 

OctagonMD

OctagonMD

My payment module redirects user to a controller which in turn sets a template.

Unfortunately, redirect results in 404 error.

public function getExternalPaymentOption()
    {
        $externalOption = new PaymentOption();
        $externalOption->setCallToActionText($this->l('Pay by Credit/Debit Card'))
                        ->setAction($this->context->link->getModuleLink($this->name, 'payment', array(), true))
                        ->setInputs([
                            'TRTYPE' => [
                                'name' =>'TRTYPE',
                                'type' =>'hidden',
                                'value' =>'0'
                            ]
                        ])
                       ->setAdditionalInformation($this->context->smarty->fetch('module:victoriabankgateway/views/templates/hook/displayPayment.tpl'));
        return $externalOption;
    }

The naming of module class:

class VictoriaBankGateway extends PaymentModule

The naming of front controller class:

class VictoriaBankGatewayPaymentModuleFrontController extends ModuleFrontController

 

×
×
  • Create New...