/**
  * Payment step
  */
 protected function _assignPayment()
 {
     global $orderTotal;
     // Redirect instead of displaying payment modules if any module are grefted on
     Hook::exec('displayBeforePayment', array('module' => 'order.php?step=3'));
     /* We may need to display an order summary */
     $this->context->smarty->assign($this->context->cart->getSummaryDetails());
     $this->context->smarty->assign(array('total_price' => (double) $orderTotal, 'taxes_enabled' => (int) Configuration::get('PS_TAX')));
     $this->context->cart->checkedTOS = '1';
     parent::_assignPayment();
 }
 protected function _assignPayment()
 {
     if (Configuration::get('PS_EU_PAYMENT_API')) {
         return ParentOrderController::_assignPayment();
     } else {
         return parent::_assignPayment();
     }
 }
 protected function _assignPayment()
 {
     global $orderTotal;
     $invoice_address = new Address((int) self::$cart->id_address_invoice);
     if ($invoice_address->id_country != 110) {
         include_once _PS_MODULE_DIR_ . 'paypal/paypal.php';
         include_once _PS_MODULE_DIR_ . 'paypal/payment/paypalpayment.php';
         include_once _PS_MODULE_DIR_ . 'paypal/payment/submit.php';
         //GetPaypal stuff
         unset(self::$cookie->paypal_token);
         /*if (self::$cart->id_currency != $ppPayment->getCurrency((int) self::$cart->id_currency)->id) {
               self::$cart->id_currency = (int) ($ppPayment->getCurrency((int) self::$cart->id_currency)->id);
               self::$cookie->id_currency = (int) (self::$cart->id_currency);
               self::$cart->update();
               Tools::redirect('modules/' . $ppPayment->name . '/payment/submit.php');
           }*/
         $curr_sel_currency = CurrencyCore::getCurrency(self::$cart->id_currency);
         self::$smarty->assign(array('cust_currency' => self::$cart->id_currency, 'currency' => $curr_sel_currency, 'total' => self::$cart->getOrderTotal(true, Cart::BOTH), 'this_path_ssl' => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . 'modules/' . $ppPayment->name . '/', 'mode' => 'payment/'));
     }
     // Redirect instead of displaying payment modules if any module are grefted on
     Hook::backBeforePayment('order.php?step=3');
     /* We may need to display an order summary */
     self::$smarty->assign(self::$cart->getSummaryDetails());
     self::$smarty->assign(array('total_price' => Tools::ps_round((double) $orderTotal), 'taxes_enabled' => (int) Configuration::get('PS_TAX')));
     self::$cookie->checkedTOS = '1';
     parent::_assignPayment();
 }
 /**
  * Payment step
  */
 protected function _assignPayment()
 {
     global $orderTotal;
     // Redirect instead of displaying payment modules if any module are grefted on
     Hook::exec('displayBeforePayment', array('module' => 'order.php?step=3'));
     /* We may need to display an order summary */
     $this->context->smarty->assign($this->context->cart->getSummaryDetails());
     if ((bool) Configuration::get('PS_ADVANCED_PAYMENT_API')) {
         $this->context->cart->checkedTOS = null;
     } else {
         $this->context->cart->checkedTOS = 1;
     }
     // Test if we have to override TOS display through hook
     $hook_override_tos_display = Hook::exec('overrideTOSDisplay');
     $this->context->smarty->assign(array('total_price' => (double) $orderTotal, 'taxes_enabled' => (int) Configuration::get('PS_TAX'), 'cms_id' => (int) Configuration::get('PS_CONDITIONS_CMS_ID'), 'conditions' => (int) Configuration::get('PS_CONDITIONS'), 'checkedTOS' => (int) $this->context->cart->checkedTOS, 'override_tos_display' => $hook_override_tos_display));
     parent::_assignPayment();
 }