public function initContent()
 {
     $this->display_column_left = false;
     $this->process();
     if (!isset($this->context->cart)) {
         $this->context->cart = new Cart();
     }
     if (!$this->useMobileTheme()) {
         $this->context->smarty->assign(array('HOOK_HEADER' => Hook::exec('displayHeader'), 'HOOK_LEFT_COLUMN' => $this->display_column_left ? Hook::exec('displayLeftColumn') : '', 'HOOK_RIGHT_COLUMN' => $this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''));
     } else {
         $this->context->smarty->assign('HOOK_MOBILE_HEADER', Hook::exec('displayMobileHeader'));
     }
     $contextLink = $this->context->link;
     $postParameters = $this->getPostParameters();
     try {
         $sid = SkrillPaymentCore::getSid($postParameters);
     } catch (Exception $e) {
         Tools::redirect($contextLink->getPageLink('order', true, null, array('step' => '3', 'skrillerror' => 'ERROR_GENERAL_REDIRECT')));
     }
     if (!$sid) {
         Tools::redirect($contextLink->getPageLink('order', true, null, array('step' => '3', 'skrillerror' => 'ERROR_GENERAL_REDIRECT')));
     }
     $redirectUrl = SkrillPaymentCore::getSkrillRedirectUrl($sid);
     if (Configuration::get('SKRILL_GENERAL_DISPLAY') != "IFRAME") {
         Tools::redirect($redirectUrl);
     }
     $this->context->smarty->assign(array('fullname' => $this->context->customer->firstname . " " . $this->context->customer->lastname, 'lang' => $this->getLang(), 'redirectUrl' => $redirectUrl, 'total' => $this->context->cart->getOrderTotal(true, Cart::BOTH), 'this_path' => $this->module->getPathUri(), 'this_path_ssl' => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . 'modules/' . $this->module->name . '/'));
     $this->setTemplate($this->getTemplateName());
 }