Files
hotel/modules/qloduitkupayment/controllers/front/error.php

43 lines
1.2 KiB
PHP

<?php
/**
* 2010-2021 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through LICENSE.txt file inside our module
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
*
* @author Webkul IN
* @copyright 2010-2021 Webkul IN
* @license LICENSE.txt
*/
class QloDuitkuPaymentErrorModuleFrontController extends ModuleFrontController
{
public function init()
{
$this->display_column_left = false;
$this->display_column_right = false;
parent::init();
if (Tools::getValue('validation_error')) {
$this->context->smarty->assign(array(
'txn_id' => Tools::getValue('id'),
));
$this->setTemplate('validation_error.tpl');
} else if (Tools::getValue('auth_error')) {
$this->setTemplate('auth_error.tpl');
} else {
Tools::redirect($this->context->link->getPageLink('order-opc', true, null) . '?duitku_err=1');
}
}
}