public function initContent()
 {
     parent::initContent();
     $params = KwixoURLCallFrontController::ManageUrlCall();
     $payment_ok = $params['payment_status'];
     $errors = $params['errors'];
     $id_order = $params['id_order'];
     if ($id_order != false) {
         $order = new Order($id_order);
         $cart = new Cart($order->id_cart);
         $products = $cart->getProducts();
         $amount = $order->total_paid_tax_incl;
         $total_shipping = $order->total_shipping;
     } else {
         $products = false;
         $amount = false;
         $total_shipping = false;
     }
     $link = new Link();
     $this->context->smarty->assign('payment_ok', $payment_ok);
     $this->context->smarty->assign('errors', $errors);
     $this->context->smarty->assign('amount', $amount);
     $this->context->smarty->assign('total_shipping', $total_shipping);
     $this->context->smarty->assign('products', $products);
     $this->context->smarty->assign('path_order', $link->getPageLink('order', true));
     $this->context->smarty->assign('path_history', $link->getPageLink('history', true));
     $this->context->smarty->assign('path_contact', $link->getPageLink('contact', true));
     $this->setTemplate('urlcall.tpl');
 }
 * needs please refer to http://www.prestashop.com for more information.
 *
 *  @author PrestaShop SA <*****@*****.**>
 *  @copyright  2007-2013 PrestaShop SA
 *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 *  International Registered Trademark & Property of PrestaShop SA
 */
require_once '../../config/settings.inc.php';
require_once '../../config/defines.inc.php';
if (_PS_VERSION_ < '1.5') {
    require_once 'KwixoUrlCallFrontController.php';
    $kwixo = new KwixoPayment();
    if (Tools::getValue('token') == Tools::getAdminToken($kwixo->getSiteid() . $kwixo->getAuthkey())) {
        global $smarty;
        //Manage urlcall push, for PS 1.4
        $params = KwixoURLCallFrontController::ManageUrlCall();
        $payment_ok = $params['payment_status'];
        $errors = $params['errors'];
        $id_order = $params['id_order'];
        if ($id_order != false) {
            $order = new Order($id_order);
            $cart = new Cart($order->id_cart);
            $products = $cart->getProducts();
            $amount = $order->total_paid_real;
            $total_shipping = $order->total_shipping;
        } else {
            $products = false;
            $amount = false;
            $total_shipping = false;
        }
        $smarty->assign('payment_ok', $payment_ok);