예제 #1
0
 public function initContent()
 {
     $this->display_column_left = false;
     parent::initContent();
     $payment = new PagSeguroPaymentOrderPrestashop();
     $payment->setVariablesPaymentExecutionView();
     $environment = PagSeguroConfig::getEnvironment();
     $this->context = Context::getContext();
     $this->context->smarty->assign('environment', $environment);
     if (version_compare(_PS_VERSION_, '1.5.0.1', '>=')) {
         $this->context->smarty->assign('width_center_column', '100%');
     }
     $url = "index.php?fc=module&module=pagseguro&controller=error";
     $this->context->smarty->assign('errurl', $url);
     $this->setTemplate('payment_execution.tpl');
 }
예제 #2
0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <*****@*****.**>
*  @copyright 2007-2014 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/
include_once dirname(__FILE__) . '/../../../../config/config.inc.php';
include_once dirname(__FILE__) . '/../../../../init.php';
include_once dirname(__FILE__) . '/../../pagseguro.php';
include_once dirname(__FILE__) . '/../../backward_compatibility/backward.php';
include_once dirname(__FILE__) . '/../../features/payment/pagseguropaymentorderprestashop.php';
$useSSL = true;
$showView = new BWDisplay();
$context = Context::getContext();
if (!$context->cookie->isLogged(true)) {
    Tools::redirect('authentication.php?back=order.php');
}
$payment = new PagSeguroPaymentOrderPrestashop();
$payment->setVariablesPaymentExecutionView();
$environment = PagSeguroConfig::getEnvironment();
$context->smarty->assign('environment', $environment);
$url = "modules/pagseguro/standard/front/error.php";
$context->smarty->assign('errurl', $url);
$showView->setTemplate(_PS_MODULE_DIR_ . 'pagseguro/views/templates/front/payment_execution.tpl');
$showView->run();