{*
 * 2007-2019 PrestaShop SA and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * 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 <contact@prestashop.com>
 * @copyright 2007-2019 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
{extends file='page.tpl'}
{block name="content"}

<style type="text/css">
    
.spg_loading {
    text-align: left;
    font-size: 24px;
    font-weight: 100;
    margin: auto;
    width: 300px;
}

.spg_loading img {
    height: 60px !important;
    display: block;
    text-align: left;
    mix-blend-mode: multiply;
    width: 300px;
}

.spg_loading_text {
    text-align: left;
    font-size: 17px;
    padding-top: 20px;
    width: 300px;
    padding-bottom: 20px;
}   

</style>

    {if $frameTestMode }
        <!--[if lte IE 9]><link rel="stylesheet" href="https://test.oppwa.com/v1/paymentWidgets/css/card.min.css" type="text/css" /><![endif]-->
    {else}
        <!--[if lte IE 9]><link rel="stylesheet" href="https://oppwa.com/v1/paymentWidgets/css/card.min.css" type="text/css" /><![endif]-->
    {/if}

    <div class="spg_loading">
        <img src="{$this_path|escape:'htmlall':'UTF-8'}/views/img/sibs.gif">
        <div class="spg_loading_text">{l s='Getting everything ready...' mod='sibs'}<br>{l s='Please wait and don´t refresh the browser.' mod='sibs'}</div>
    </div>


    <form
        class="paymentSPG"
        spg-context="{$formContext|escape:'html':'UTF-8'}"
        spg-config="{$formConfig|escape:'html':'UTF-8'}"
        spg-signature="{$signature|escape:'html':'UTF-8'}" 
        spg-style="{$formStyle|escape:'html':'UTF-8'}">
    </form>
    <script src="{$paymentWidgetUrl|escape:'html':'UTF-8'}" type="text/javascript">
    </script>

{/block}
