first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="alert alert-info">
{l s='The module Przelewy24.pl currently has basic functionality.' mod='przelewy24'}
<button type="button" class="close" data-dismiss="alert">×</button>
</div>

View File

@@ -0,0 +1,14 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="alert alert-info">
{l s='You have to be registered to use module Przelewy24. If you have just done it, you can configure module in Payment Settings. However if you still haven not registered, go to panel' mod='przelewy24'}
<a target="_blank" href="http://www.przelewy24.pl/rejestracja">
Przelewy24
</a>.
<button type="button" class="close" data-dismiss="alert">×</button>
</div>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* http://opensource.org/licenses/osl-3.0.php
* 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-2016 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,21 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="p24-sortable-contener" name="paymethod_list{$suffix}">
<div class="p24-container">
<div class="available" data-name="list{$suffix}" style="float:left; width: 100%">
{foreach $p24_paymethod_description{$suffix} as $bank_id => $bank_name}
<div class="bank-box" data-id="{$bank_id}" style="height: 90px;">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">
<input type="text" value="{$bank_name}" name="P24_PAYMENT_DESCRIPTION_{$bank_id}{$suffix}"/>
</div>
</div>
{/foreach}
</div>
</div>
</div>

View File

@@ -0,0 +1,48 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="p24-sortable-contener" name="paymethod_list{$suffix}">
<div class="p24-container">
<p>
{l s='Visable payment methods' mod='przelewy24'}:
</p>
<div class="draggable-list draggable-list-first available" data-name="list{$suffix}" style="float:left; width: 100%">
{if $p24_paymethod_list_first{$suffix}|sizeof > 0}
{foreach $p24_paymethod_list_first{$suffix} as $bank_id => $bank_name}
{if !empty($bank_name)}
<div class="draggable-item bank-box" data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</div>
{/if}
{/foreach}
{/if}
<p class="p24-hint">
{l s='Drag and drop icons between sections' mod='przelewy24'}
</p>
</div>
<p>
{l s='Payment methods visible on (more...) button' mod='przelewy24'}:
</p>
<div class="draggable-list draggable-list-second available" data-name="list{$suffix}" style="float:left; width: 100%">
{if $p24_paymethod_list_second{$suffix}|sizeof > 0}
{foreach $p24_paymethod_list_second{$suffix} as $bank_id => $bank_name}
{if !empty($bank_name)}
<div class="draggable-item bank-box" data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</div>
{/if}
{/foreach}
{/if}
</div>
</div>
</div>

View File

@@ -0,0 +1,49 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="p24-sortable-contener" name="paymethod_list{$suffix}">
<div class="p24-container">
<p>
{l s='Payment methods featured when choosing payment system' mod='przelewy24'}:
</p>
<div class="draggable-list draggable-list-promote promote" data-name="list{$suffix}" style="float:left; width: 100%">
{if $p24_paymethod_list_promote{$suffix}|sizeof > 0}
{foreach $p24_paymethod_list_promote{$suffix} as $bank_id => $bank_name}
{if !empty($bank_name)}
<div class="draggable-item bank-box" data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</div>
{/if}
{/foreach}
{/if}
<p class="p24-hint">
{l s='Drag and drop icons between sections' mod='przelewy24'}
</p>
</div>
<p>
{l s='Payment methods list' mod='przelewy24'}
</p>
<div class="draggable-list draggable-list-promote-2 promote" data-name="list{$suffix}" style="float:left; width: 100%">
{if $p24_paymethod_list_promote_2{$suffix}|sizeof > 0}
{foreach $p24_paymethod_list_promote_2{$suffix} as $bank_id => $bank_name}
{if !empty($bank_name)}
<div class="draggable-item bank-box" data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</div>
{/if}
{/foreach}
{/if}
</div>
</div>
</div>

View File

@@ -0,0 +1,116 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
{extends file=$layout}
{block name='content'}
<section id="main" class="przelewy-24">
<div class="box">
{if $message}
<div class="alert alert-success">
<span class="message">{$message}</span>
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
{/if}
<h1 class="page-heading">
{l s='My stored cards' mod='przelewy24'}
</h1>
<div class="p24-account-card-form" data-translate-error="{l s='Something wrong' mod='przelewy24'}">
<form action="" method="post">
<div>
<label>
<input type="checkbox"
{if $remember_customer_cards}checked="checked"{/if}
name="remember_credit_cards" value="1">
{l s='Memorize payment cards, which I pay' mod='przelewy24'}
</label>
<p>
<button type="submit" name="submit" class="btn btn-default" value="submit">
{l s='Save' mod='przelewy24'}
</button>
</p>
</div>
<input type="hidden" name="remember_cc_post" value="1">
</form>
</div>
<div class="row p24-account-cards">
{foreach $customer_cards as $ccard}
{if $ccard@first}
<div class="col-xs-12">
<p>{l s='Your credit cards are listed below.' mod='przelewy24'}</p>
</div>
{/if}
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
<div class="p24-ccbox">
<h1 class="page-heading">{$ccard.card_type}</h1>
<p>{$ccard.mask}</p>
<p>{$ccard.year}/{$ccard.month}</p>
<form action="" method="post"
onsubmit="return confirm('{l s='Are you sure?' js=1 mod='przelewy24'}');">
<button type="submit" name="submit" class="btn btn-danger" value="submit">
{l s='Delete' mod='przelewy24'}
</button>
<input type="hidden" name="remove_card" value="{$ccard.id}">
</form>
</div>
</div>
{foreachelse}
<div class="col-xs-12">
<h3>{l s='Credit cards not found' mod='przelewy24'}</h3>
</div>
{/foreach}
</div>
<div id="P24FormAreaHolder" onclick="hidePayJsPopup();showRegisterCardButton();" style="display: none">
<div onclick="arguments[0].stopPropagation();" id="P24FormArea" class="popup"
style="visibility: hidden"></div>
<div id="p24-card-loader"></div>
<div id="p24-card-alert" style="display: none"></div>
</div>
<div class="row p24-register-card-wrapper"
data-dictionary='{
"cardHolderLabel":"{l s='Cardholder name' mod='przelewy24'}",
"cardNumberLabel":"{l s='Card number' mod='przelewy24'}",
"cvvLabel":"{l s='cvv' mod='przelewy24'}",
"expDateLabel":"{l s='Expiry date' mod='przelewy24'}",
"payButtonCaption":"{l s='Save card data' mod='przelewy24'}",
"description":"{l s='Register card' mod='przelewy24'}"
}'
data-card-action="cardRegister"
data-successCallback="registerCardInPanelSuccess"
data-failureCallback="registerCardInPanelFailure"
data-action-register-card-form="{$link->getModuleLink('przelewy24', 'ajaxRegisterCardForm', [], true)|escape:'html'}">
{*<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12 p24-register-card-row">*}
{*<p>*}
{*{l s='Register new credit card' mod='przelewy24'}:*}
{*</p>*}
{*<div id="p24-register-card-form" class="p24-register-card-form"></div>*}
{*<div class="p24-loader"></div>*}
{*<div class="p24-loader-bg"></div>*}
{*<p>*}
{*<a href="#" onclick="showPayJsPopup();hideRegisterCardButton();" class="btn btn-primary p24-add-credit-card">*}
{*{l s='Add credit card' mod='przelewy24'}*}
{*</a>*}
{*</p>*}
{*</div>*}
</div>
<p class="p24-account-bottom-nav">
<a class="btn btn-primary" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
{l s='Back to your account' mod='przelewy24'}
</a>
<a href="{$urls.base_url}" class="btn btn-primary">
{l s='Return to shop' mod='przelewy24'}
</a>
</p>
</div>
</section>
{/block}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* http://opensource.org/licenses/osl-3.0.php
* 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-2016 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,28 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
{if isset($actionLink)}
<form action="{$actionLink}" method="get">
<div style="padding-left:45px;">
<p>
{l s='Insert BlikCode number' mod='przelewy24'}
</p>
<dl>
<dd>
<input id="p24-blikCode" class="form-control" type="text" name="p24_blik_code"
required autocomplete="off" maxlength="6" style="width:200px;">
</dd>
</dl>
</div>
</form>
{else}
<section>
<p>
{l s='You have existing alias, please proceed with your order' mod='przelewy24'}.
</p>
</section>
{/if}

View File

@@ -0,0 +1,36 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
{extends file=$layout}
{block name='content'}
<section id="main">
<div class="box">
<h2>
<a href="http://przelewy24.pl" target="_blank">
<img src="{$logo_url}"
alt="{l s='Pay with Przelewy24' mod='przelewy24'}"/>
</a>
{l s='Confirm your payment' mod='przelewy24'}
<p>
{l s='Thank you for your purchase. You can track your order in history of orders.' mod='przelewy24'}
</p>
<p>
<strong>{l s='Please confirm your payment on your mobile device' mod='przelewy24'}</strong>
</p>
<p class="cart_navigation">
<a href="{$urls.base_url}" class="btn btn-primary">
{l s='Return to shop' mod='przelewy24'}
</a>
<a class="btn btn-primary" href="{$urls.pages.history}">
{l s='Show order history' mod='przelewy24'}
</a>
</p>
</h2>
</div>
</section>
{/block}

View File

@@ -0,0 +1,287 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
{extends file='page.tpl'}
{capture name=path}{l s='Pay with Przelewy24' mod='przelewy24'}{/capture}
{assign var='current_step' value='payment'}
{block name='page_content'}
<div class="p24-payment-return-page przelewy-24">
<a href="http://przelewy24.pl" target="_blank">
<img src="{$logo_url}"
alt="{l s='Pay with Przelewy24' mod='przelewy24'}">
</a>
{if 'ok' === $status}
<p>{l s='Your order is ready.' mod='przelewy24'}
<br><br>- {l s='Total amount' mod='przelewy24'}:
<span class="price"><strong>{$total_to_pay}</strong></span>
<br><br>{l s='We sent for you email with this information.' mod='przelewy24'}
<br><br>{l s='For any questions or information, contact with' mod='przelewy24'}
<a href="{$link->getPageLink('contact', true)|escape:'html'}">{l s='customer service' mod='przelewy24'}</a>.
</p>
{if $P24_PAYMENT_METHOD_LIST}
<p>
{l s='Select payment method' mod='przelewy24'}:
</p>
{elseif $payment_method_selected_id > 0}
<p>
{l s='Your payment method' mod='przelewy24'}:
<strong>
{$payment_method_selected_name}
</strong>
</p>
<p>
<img alt="{$payment_method_selected_name}"
src="https://secure.przelewy24.pl/template/201312/bank/logo_{$payment_method_selected_id}.gif">
</p>
{/if}
{if $card_remember_input}
{if $customer_cards|sizeof > 0}
<div class="p24-recurring">
<p>
{l s='Your stored credit cards' mod='przelewy24'}:
</p>
{foreach from=$customer_cards key=id item=card}
<a class="bank-box recurring"
data-id="{$card.card_type_md5}"
data-card-id="{$card.id}"
data-action="{$charge_card_url}">
<div class="bank-logo bank-logo-{$card.card_type_md5}">
<span>{$card.mask_substr}</span>
</div>
<div class="bank-name">{$card.card_type}</div>
</a>
{/foreach}
</div>
{/if}
{if !$customer_is_guest}
<div class="">
<label>
<input data-action="{$p24_ajax_notices_url}" {if $remember_customer_cards}checked="checked"{/if}
type="checkbox"
id="p24-remember-my-card"
class="p24-remember-my-card"
name="p24-remember-my-card" value="1">
<span>{l s='Remember my payment card' mod='przelewy24'}</span>
</label>
</div>
{/if}
{/if}
{if $P24_PAYMENT_METHOD_LIST}
{if $p24_paymethod_graphics}
<div class="pay-method-list pay-method-graphics pay-method-list-first">
{if $p24_paymethod_list_first|sizeof > 0}
{foreach $p24_paymethod_list_first as $bank_id => $bank_name}
{if !empty($bank_name)}
<a class="bank-box" {if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if}
data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</a>
{/if}
{/foreach}
{/if}
</div>
<div class="p24-text-center">
<div class="p24-stuff-nav">
<div class="p24-more-stuff p24-stuff">
{l s='More payment methods' mod='przelewy24'}
</div>
<div class="p24-less-stuff p24-stuff">
{l s='Less payment methods' mod='przelewy24'}
</div>
</div>
</div>
<div class="pay-method-list pay-method-graphics pay-method-list-second" style="display: none">
{if $p24_paymethod_list_second|sizeof > 0}
{foreach $p24_paymethod_list_second as $bank_id => $bank_name}
{if !empty($bank_name)}
<a class="bank-box" {if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if}
data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</a>
{/if}
{/foreach}
{/if}
</div>
{else}
<ul class="pay-method-list pay-method-text-list pay-method-list-first">
{if $p24_paymethod_list_first|sizeof > 0}
{foreach $p24_paymethod_list_first as $bank_id => $bank_name}
{if !empty($bank_name)}
<li>
<input type="radio" class="bank-box"
{if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if} data-id="{$bank_id}"
id="paymethod-bank-id-{$bank_id}"
name="paymethod-bank">
<label for="paymethod-bank-id-{$bank_id}"
style="font-weight:normal;position:relative; top:-3px;">
{$bank_name}
</label>
</li>
{/if}
{/foreach}
{/if}
</ul>
<div class="p24-text-center">
<div class="p24-stuff-nav">
<div class="p24-more-stuff p24-stuff">
{l s='More payment methods' mod='przelewy24'}
</div>
<div class="p24-less-stuff p24-stuff">
{l s='Less payment methods' mod='przelewy24'}
</div>
</div>
</div>
<ul class="pay-method-list pay-method-text-list pay-method-list-second" style="display: none">
{if $p24_paymethod_list_second|sizeof > 0}
{foreach $p24_paymethod_list_second as $bank_id => $bank_name}
{if !empty($bank_name)}
<li>
<input type="radio" class="bank-box"
{if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if} data-id="{$bank_id}"
id="paymethod-bank-id-{$bank_id}"
name="paymethod-bank">
<label for="paymethod-bank-id-{$bank_id}"
style="font-weight:normal;position:relative; top:-3px;">
{$bank_name}
</label>
</li>
{/if}
{/foreach}
{/if}
</ul>
{/if}
{/if}
<form action="{$p24_url}" method="post" id="przelewy24Form" name="przelewy24Form"
accept-charset="utf-8">
<input type="hidden" name="p24_merchant_id" value="{$p24_merchant_id}">
<input type="hidden" name="p24_session_id" value="{$p24_session_id}">
<input type="hidden" name="p24_pos_id" value="{$p24_pos_id}">
<input type="hidden" name="p24_amount" value="{$p24_amount}">
<input type="hidden" name="p24_currency" value="{$p24_currency}">
<input type="hidden" name="p24_description" value="{$p24_description}">
<input type="hidden" name="p24_email" value="{$p24_email}">
<input type="hidden" name="p24_client" value="{$p24_client}">
<input type="hidden" name="p24_address" value="{$p24_address}">
<input type="hidden" name="p24_zip" value="{$p24_zip}">
<input type="hidden" name="p24_city" value="{$p24_city}">
<input type="hidden" name="p24_country" value="{$p24_country}">
<input type="hidden" name="p24_encoding" value="UTF-8">
<input type="hidden" name="p24_url_status" value="{$p24_url_status}">
<input type="hidden" name="p24_url_return" value="{$p24_url_return}">
<input type="hidden" name="p24_api_version" value="{$p24_api_version}">
<input type="hidden" name="p24_ecommerce" value="{$p24_ecommerce}">
<input type="hidden" name="p24_ecommerce2" value="{$p24_ecommerce2}">
<input type="hidden" name="p24_language" value="{$p24_language}">
<input type="hidden" name="p24_sign" value="{$p24_sign}">
<input type="hidden" name="p24_wait_for_result" value="{$p24_wait_for_result}">
<input type="hidden" name="p24_shipping" value="{$p24_shipping}">
<input type="hidden" name="p24_method" value="{$payment_method_selected_id}">
<input type="hidden" name="p24_card_customer_id" value="">
{foreach $p24ProductItems as $name => $value}
<input type="hidden" name="{$name}" value="{$value}">
{/foreach}
<br>
{if 'blik_uid' === $p24_method}
<div class="p24-loader"></div>
<div class="p24-loader-bg"></div>
<input type="hidden" name="p24_blik_method" value="{$p24_method}">
{if $p24_blik_alias}
<p id="blikAlias">
<strong>
{l s='You have existing alias, please proceed with your order' mod='przelewy24'}
</strong>
</p>
<div id="blikAliasAlternativeKeys">
<strong>
{l s='You have alternative aplications key, please chose one' mod='przelewy24'}
</strong>
</div>
{/if}
<div id="blikCodeContainer" class="form-group" {if $p24_blik_alias}style="display: none;"{/if}
data-websocket-url="{$p24_blik_websocket}"
data-shop-order-id="{$p24_shop_order_id}"
data-payment-failed-url="{$p24_payment_failed_url}"
data-ajax-verify-blik-url="{$p24_blik_ajax_verify_url}"
data-ajax-blik-error-url="{$p24_blik_error_url}"
>
<div class="alert alert-warning" id="blikAliasError"></div>
<div class="alert alert-warning" id="declinedAlias">
{l s='Your Blik alias was declined, please provide BlikCode' mod='przelewy24'}
</div>
<input type="text" class="form-control" id="blikCode" name="p24_blik_code"
placeholder="{l s='Your BlikCode' mod='przelewy24'}" autocomplete="off" maxlength="6">
<span id="blikCodeError" class="help-block"></span>
<span id="wrongBlikCode" class="help-block">
{l s='BlikCode needs to be exactly 6 digits' mod='przelewy24'}
</span>
</div>
<br>
<p>
<strong>{l s='Please get your mobile device with BLIK application ready to confirm payment' mod='przelewy24'}</strong>
</p>
{/if}
<br>
{if $payment_method_selected_id > 0}
<button data-validation-required="{$validationRequired}" data-text-oneclick="{l s='Pay by OneClick' mod='przelewy24'}" id="submitButton" class="btn btn-primary" {if 2 === ($validationRequired|intval)}data-validation-link="{$validationLink}" type="button" onclick="proceedPayment({$cartId})"{else} onclick="formSend();" type="submit"{/if} >{l s='Pay' mod='przelewy24'}</button>
{elseif isset($p24_blik_code)}
<button onclick="formSend();" class="btn btn-primary">{l s='Pay by Blik' mod='przelewy24'}</button>
{else}
<button id="submitButton" data-validation-required="{$validationRequired}" data-text-oneclick="{l s='Pay by OneClick' mod='przelewy24'}" class="btn btn-primary" {if 2 === ($validationRequired|intval)}data-validation-link="{$validationLink}" type="button" onclick="proceedPayment({$cartId})"{else} onclick="formSend();" type="submit"{/if}>{l s='Pay by Przelewy24' mod='przelewy24'}</button>
{/if}
</form>
{if !isset($p24_blik_code)}
<p class="p24-small-text">
{l s='Now you will be redirected to the Przelewy24 to process payments.' mod='przelewy24'}
</p>
{/if}
{elseif 'payment' === $status}
<p class="warning">
{l s='Thank you for your order' mod='przelewy24'}
</p>
{else}
<p class="warning">
{l s='There was an error. Contact with' mod='przelewy24'}
<a href="{$link->getPageLink('contact', true)|escape:'html'}">{l s='customer service' mod='przelewy24'}</a>.
</p>
{/if}
</div>
<div id="P24FormAreaHolder" onclick="hidePayJsPopup();" style="display: none">
<div id="P24FormArea" class="popup" style="visibility: hidden"></div>
<div id="p24-card-loader"></div>
<div id="p24-card-alert" style="display: none"></div>
</div>
<div class="row p24-register-card-wrapper"
data-dictionary='{
"cardHolderLabel":"{l s='Name and surname' mod='przelewy24'}",
"cardNumberLabel":"{l s='Card number' mod='przelewy24'}",
"cvvLabel":"{l s='cvv' mod='przelewy24'}",
"expDateLabel":"{l s='Expired date' mod='przelewy24'}",
"payButtonCaption":"{l s='Pay' mod='przelewy24'}",
"description":"{l s='Register card and payment' mod='przelewy24'}",
"threeDSAuthMessage":"{l s='Click to redirect to 3ds payment.' mod='przelewy24'}",
"registerCardLabel":"{l s='Register card' mod='przelewy24'}"
}'
data-card-action="cardCharge"
data-card-cart-id="{$cartId}"
data-successCallback="payInShopSuccess"
data-failureCallback="payInShopFailure"
data-action-payment-success="{$link->getModuleLink('przelewy24', 'paymentSuccessful', [], true)|escape:'html'}"
data-action-payment-failed="{$link->getModuleLink('przelewy24', 'paymentFailed', [], true)|escape:'html'}"
data-action-register-card-form="{$link->getModuleLink('przelewy24', 'ajaxChargeCardForm', [], true)|escape:'html'}"
data-action-remember_order_id="{$link->getModuleLink('przelewy24', 'ajaxRememberOneclickOrderId', [], true)|escape:'html'}"
data-action-payment-check="{$link->getModuleLink('przelewy24', 'ajaxPaymentCheck', [], true)|escape:'html'}">
</div>
{/block}

View File

@@ -0,0 +1,40 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
{extends file=$layout}
{block name='content'}
<section id="main">
<div class="box">
<h2>
<a href="http://przelewy24.pl" target="_blank">
<img src="{$logo_url}"
alt="{l s='Pay with Przelewy24' mod='przelewy24'}">
</a>
{l s='Payment failed!' mod='przelewy24'}
</h2>
<p class="warning">
{l s='Your payment was not confirmed by Przelewy24. Contact with your seller for more information.' mod='przelewy24'}
</p>
{if isset($errorReason)}
<p>
<strong>
{$errorReason}
</strong>
</p>
{/if}
<p class="cart_navigation">
<a href="{$urls.base_url}" class="btn btn-primary">
{l s='Return to shop' mod='przelewy24'}
</a>
<a class="btn btn-primary" href="{$urls.pages.history}">
{l s='Show order history' mod='przelewy24'}
</a>
</p>
</div>
</section>
{/block}

View File

@@ -0,0 +1,26 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<section>
<p>
{l s='After ordering you will be redirected to the service Przelewy24 to finish payments' mod='przelewy24'}.
</p>
<img src="{$logo_url}"
alt="{l s='Pay with Przelewy24' mod='przelewy24'}">
<dl>
{if $extracharge > 0}
<dt>{l s='Extracharge Przelewy24' mod='przelewy24'}</dt>
<dd>{$extracharge_formatted} {$tax}</dd>
<dt>{l s='Amount' mod='przelewy24'}</dt>
<dd>{$checkTotal} {$tax}</dd>
{else}
<dt>{l s='Amount' mod='przelewy24'}</dt>
<dd>{$checkTotal} {$tax}</dd>
{/if}
</dl>
{hook h='displayInstallmentPayment'}
</section>

View File

@@ -0,0 +1,32 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
{extends file=$layout}
{block name='content'}
<section id="main">
<div class="box">
<h2>
<a href="http://przelewy24.pl" target="_blank">
<img src="{$logo_url}"
alt="{l s='Pay with Przelewy24' mod='przelewy24'}">
</a>
{l s='Congratulation!' mod='przelewy24'}
<p>
{l s='Thank you for your purchase. Your payment was confirmed by Przelewy24. You can track your order in history of orders.' mod='przelewy24'}</p>
<p class="cart_navigation">
<a href="{$urls.base_url}" class="btn btn-primary">
{l s='Return to shop' mod='przelewy24'}
</a>
<a class="btn btn-primary" href="{$urls.pages.history}">
{l s='Show order history' mod='przelewy24'}
</a>
</p>
</h2>
</div>
</section>
{/block}

View File

@@ -0,0 +1,13 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="addresses-link" href="{$my_stored_cards_page }">
<span class="link-item">
<i class="material-icons">&#xE870;</i>
{l s='My stored cards' mod='przelewy24'}
</span>
</a>

View File

@@ -0,0 +1,13 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="box hidden-sm-down">
<input type="hidden" name="extracharge_text" id="extracharge_text" value="{$extracharge_text}">
<input type="hidden" name="extracharge" id="extracharge" value="{$extracharge}">
<input type="hidden" name="extrachargeFormatted" id="extrachargeFormatted" value="{$extrachargeFormatted}">
<input type="hidden" name="currencySign" id="currencySign" value="{$currencySign}">
</div>

View File

@@ -0,0 +1,39 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<tr class="conf_body">
<td colspan="4" style="border :1px solid #D6D4D4; color: #333; padding: 7px 0; background-color: #f8f8f8;">
<table class="table" style="width:100%;border-collapse:collapse">
<tbody>
<tr>
<td style="width: 10px;color:#333;padding:0">&nbsp;</td>
<td style="text-align: right;color:#333;padding:0">
<span style="font-family: Open-sans, sans-serif; color: #555454;">
<strong>{$extracharge_text}</strong>
</span>
</td>
<td style="color: #333; padding: 0; width: 10px;">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td colspan="4" style="border: 1px solid #D6D4D4; color:#333; padding:7px 0; background-color: #f8f8f8; text-align: right;">
<table class="table" style="width:100%;border-collapse:collapse">
<tbody>
<tr>
<td style="color:#333; padding: 0; width: 10px;">&nbsp;</td>
<td style="color: #333; padding: 0; text-align: right;">
<span style="font-family: Open-sans, sans-serif; color: #555454;">
{$extracharge}
</span>
</td>
<td style="color: #333; padding: 0; width: 10px;">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* http://opensource.org/licenses/osl-3.0.php
* 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-2016 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* http://opensource.org/licenses/osl-3.0.php
* 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-2016 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,18 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
{if $currency.iso_code_num === '985' } {* Polish zloty iso code*}
<div>
<a target="_blank" href="{$installment_payment[constant('Przelewy24InstallmentPayment::LIVE_URL')]|escape:'html'}kalkulator_raty/index.html?{constant('Przelewy24InstallmentPayment::QUERY_PARAMETER_AMOUNT_NAME')|escape:'html'}={$installment_payment[constant('Przelewy24InstallmentPayment::PRODUCT_AMOUNT')]}" title="Raty Alior Bank">
<img class="installment-payment-logo-alior-bank" src="{$urls.base_url}modules/przelewy24/views/img/logo_alior.jpg" alt="Logo Alior Bank">{$installment_payment[constant('Przelewy24InstallmentPayment::PART_COUNT')]} rat x ~{$installment_payment[constant('Przelewy24InstallmentPayment::PART_COST')]}
</a>
<br>
<a target="_blank" href="https://www.mbank.net.pl/mraty_1/index.html?kwota={$installment_payment[constant('Przelewy24InstallmentPayment::PRODUCT_AMOUNT')]}" title="Raty Mbank">
<img class="installment-payment-logo-mbank" src="{$urls.base_url}modules/przelewy24/views/img/logo_mbank.gif" alt="Logo Mbank">
</a>
</div>
{/if}

View File

@@ -0,0 +1,17 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="p24-text-center">
<div class="p24-stuff-nav">
<div class="p24-more-stuff p24-stuff">
{l s='More payment methods' mod='przelewy24'}
</div>
<div class="p24-less-stuff p24-stuff">
{l s='Less payment methods' mod='przelewy24'}
</div>
</div>
</div>

View File

@@ -0,0 +1,273 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="p24-payment-return-page przelewy-24">
<a href="http://przelewy24.pl" target="_blank">
<img src="{$logo_url}"
alt="{l s='Pay with Przelewy24' mod='przelewy24'}">
</a>
{if 'ok' === $status}
<p>{l s='Your order is ready.' mod='przelewy24'}
<br><br>- {l s='Total amount' mod='przelewy24'}:
<span class="price"><strong>{$total_to_pay}</strong></span>
<br><br>{l s='We sent for you email with this information.' mod='przelewy24'}
<br><br>{l s='For any questions or information, contact with' mod='przelewy24'}
<a href="{$link->getPageLink('contact', true)|escape:'html'}">{l s='customer service' mod='przelewy24'}</a>.
</p>
{if $P24_PAYMENT_METHOD_LIST}
<p>
{l s='Select payment method' mod='przelewy24'}:
</p>
{elseif $payment_method_selected_id > 0}
<p>
{l s='Your payment method' mod='przelewy24'}:
<strong>
{$payment_method_selected_name}
</strong>
</p>
<p>
<img alt="{$payment_method_selected_name}"
src="https://secure.przelewy24.pl/template/201312/bank/logo_{$payment_method_selected_id}.gif">
</p>
{/if}
{if $card_remember_input}
{if $customer_cards|sizeof > 0}
<div class="p24-recurring">
<p>
{l s='Your stored credit cards' mod='przelewy24'}:
</p>
{foreach from=$customer_cards key=id item=card}
<a class="bank-box recurring"
data-id="{$card.card_type_md5}"
data-card-id="{$card.id}"
data-action="{$charge_card_url}">
<div class="bank-logo bank-logo-{$card.card_type_md5}">
<span>{$card.mask_substr}</span>
</div>
<div class="bank-name">{$card.card_type}</div>
</a>
{/foreach}
</div>
{/if}
{if !$customer_is_guest}
<div class="">
<label>
<input data-action="{$p24_ajax_notices_url}" {if $remember_customer_cards}checked="checked"{/if}
type="checkbox"
id="p24-remember-my-card"
class="p24-remember-my-card"
name="p24-remember-my-card" value="1">
<span>{l s='Remember my payment card' mod='przelewy24'}</span>
</label>
</div>
{/if}
{/if}
{if $P24_PAYMENT_METHOD_LIST}
{if $p24_paymethod_graphics}
<div class="pay-method-list pay-method-graphics pay-method-list-first">
{if $p24_paymethod_list_first|sizeof > 0}
{foreach $p24_paymethod_list_first as $bank_id => $bank_name}
{if !empty($bank_name)}
<a class="bank-box" {if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if}
data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</a>
{/if}
{/foreach}
{/if}
</div>
{include file=$nav_more_less_path}
<div class="pay-method-list pay-method-graphics pay-method-list-second" style="display: none">
{if $p24_paymethod_list_second|sizeof > 0}
{foreach $p24_paymethod_list_second as $bank_id => $bank_name}
{if !empty($bank_name)}
<a class="bank-box" {if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if}
data-id="{$bank_id}">
<div class="bank-logo bank-logo-{$bank_id}"></div>
<div class="bank-name">{$bank_name}</div>
</a>
{/if}
{/foreach}
{/if}
</div>
{else}
<ul class="pay-method-list pay-method-text-list pay-method-list-first">
{if $p24_paymethod_list_first|sizeof > 0}
{foreach $p24_paymethod_list_first as $bank_id => $bank_name}
{if !empty($bank_name)}
<li>
<input type="radio" class="bank-box"
{if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if} data-id="{$bank_id}"
id="paymethod-bank-id-{$bank_id}"
name="paymethod-bank">
<label for="paymethod-bank-id-{$bank_id}"
style="font-weight:normal;position:relative; top:-3px;">
{$bank_name}
</label>
</li>
{/if}
{/foreach}
{/if}
</ul>
{include file=$nav_more_less_path}
<ul class="pay-method-list pay-method-text-list pay-method-list-second" style="display: none">
{if $p24_paymethod_list_second|sizeof > 0}
{foreach $p24_paymethod_list_second as $bank_id => $bank_name}
{if !empty($bank_name)}
<li>
<input type="radio" class="bank-box"
{if (145 === ($bank_id|intval) || 218 === ($bank_id|intval)) && $pay_card_inside_shop}onclick="showPayJsPopup()"{/if} data-id="{$bank_id}"
id="paymethod-bank-id-{$bank_id}"
name="paymethod-bank">
<label for="paymethod-bank-id-{$bank_id}"
style="font-weight:normal;position:relative; top:-3px;">
{$bank_name}
</label>
</li>
{/if}
{/foreach}
{/if}
</ul>
{/if}
{/if}
<form action="{$p24_url}" method="post" id="przelewy24Form" name="przelewy24Form"
accept-charset="utf-8">
<input type="hidden" name="p24_merchant_id" value="{$p24_merchant_id}">
<input type="hidden" name="p24_session_id" value="{$p24_session_id}">
<input type="hidden" name="p24_pos_id" value="{$p24_pos_id}">
<input type="hidden" name="p24_amount" value="{$p24_amount}">
<input type="hidden" name="p24_currency" id="p24_currency" value="{$p24_currency}">
<input type="hidden" name="p24_description" value="{$p24_description}">
<input type="hidden" name="p24_email" value="{$p24_email}">
<input type="hidden" name="p24_client" value="{$p24_client}">
<input type="hidden" name="p24_address" value="{$p24_address}">
<input type="hidden" name="p24_zip" value="{$p24_zip}">
<input type="hidden" name="p24_city" value="{$p24_city}">
<input type="hidden" name="p24_country" value="{$p24_country}">
<input type="hidden" name="p24_encoding" value="UTF-8">
<input type="hidden" name="p24_url_status" value="{$p24_url_status}">
<input type="hidden" name="p24_url_return" value="{$p24_url_return}">
<input type="hidden" name="p24_api_version" value="{$p24_api_version}">
<input type="hidden" name="p24_ecommerce" value="{$p24_ecommerce}">
<input type="hidden" name="p24_ecommerce2" value="{$p24_ecommerce2}">
<input type="hidden" name="p24_language" value="{$p24_language}">
<input type="hidden" name="p24_sign" value="{$p24_sign}">
<input type="hidden" name="p24_wait_for_result" value="{$p24_wait_for_result}">
<input type="hidden" name="p24_shipping" value="{$p24_shipping}">
<input type="hidden" name="p24_method" value="{$payment_method_selected_id}">
<input type="hidden" name="p24_card_customer_id" value="">
{if $extracharge > 0 }
<input type="hidden" name="extrachargeReturn" id="extrachargeReturn" value="{$extracharge}">
<input type="hidden" name="extrachargeReturnFormatted" id="extrachargeReturnFormatted" value="{$extrachargeFormatted}">
<input type="hidden" name="extracharge_text" id="extracharge_text" value="{l s="Extracharge Przelewy24" mod='przelewy24'}">
{/if}
<input type="hidden" name="currencySign" id="currencySign" value="{$currencySign}">
{foreach $p24ProductItems as $name => $value}
<input type="hidden" name="{$name}" value="{$value}">
{/foreach}
<br>
{if 'blik_uid' === $p24_method}
<div class="p24-loader"></div>
<div class="p24-loader-bg"></div>
<input type="hidden" name="p24_blik_method" value="{$p24_method}">
{if $p24_blik_alias}
<p id="blikAlias">
<strong>
{l s='You have existing alias, please proceed with your order' mod='przelewy24'}
</strong>
</p>
<div id="blikAliasAlternativeKeys">
<strong>
{l s='You have alternative aplications key, please chose one' mod='przelewy24'}
</strong>
</div>
{/if}
<div id="blikCodeContainer" class="form-group" {if $p24_blik_alias}style="display: none;"{/if}
data-websocket-url="{$p24_blik_websocket}"
data-shop-order-id="{$p24_shop_order_id}"
data-payment-failed-url="{$p24_payment_failed_url}"
data-ajax-verify-blik-url="{$p24_blik_ajax_verify_url}"
data-ajax-blik-error-url="{$p24_blik_error_url}"
>
<div class="alert alert-warning" id="blikAliasError"></div>
<div class="alert alert-warning" id="declinedAlias">
{l s='Your Blik alias was declined, please provide BlikCode' mod='przelewy24'}
</div>
<input type="text" class="form-control" id="blikCode" name="p24_blik_code"
placeholder="{l s='Your BlikCode' mod='przelewy24'}" autocomplete="off" maxlength="6">
<span id="blikCodeError" class="help-block"></span>
<span id="wrongBlikCode" class="help-block">
{l s='BlikCode needs to be exactly 6 digits' mod='przelewy24'}
</span>
</div>
<br>
<p>
<strong>{l s='Please get your mobile device with BLIK application ready to confirm payment' mod='przelewy24'}</strong>
</p>
{/if}
<br>
{if $payment_method_selected_id > 0}
<button data-text-oneclick="{l s='Pay by OneClick' mod='przelewy24'}" onclick="formSend();"
class="btn btn-primary">{l s='Pay' mod='przelewy24'}</button>
{elseif isset($p24_blik_code)}
<button onclick="formSend();" class="btn btn-primary">{l s='Pay by Blik' mod='przelewy24'}</button>
{else}
<button data-text-oneclick="{l s='Pay by OneClick' mod='przelewy24'}" onclick="formSend();"
class="btn btn-primary">{l s='Pay by Przelewy24' mod='przelewy24'}</button>
{/if}
</form>
{if !isset($p24_blik_code)}
<p class="p24-small-text">
{l s='Now you will be redirected to the Przelewy24 to process payments.' mod='przelewy24'}
</p>
{/if}
{elseif 'payment' === $status}
<p class="warning">
{l s='Thank you for your order' mod='przelewy24'} {$reference}
</p>
{else}
<p class="warning">
{l s='There was an error. Contact with' mod='przelewy24'}
<a href="{$link->getPageLink('contact', true)|escape:'html'}">{l s='customer service' mod='przelewy24'}</a>.
</p>
{/if}
</div>
<div id="P24FormAreaHolder" onclick="hidePayJsPopup();" style="display: none">
<div id="P24FormArea" class="popup" style="visibility: hidden"></div>
<div id="p24-card-loader"></div>
<div id="p24-card-alert" style="display: none"></div>
</div>
<div class="row p24-register-card-wrapper"
data-dictionary='{
"cardHolderLabel":"{l s='Name and surname' mod='przelewy24'}",
"cardNumberLabel":"{l s='Card number' mod='przelewy24'}",
"cvvLabel":"{l s='cvv' mod='przelewy24'}",
"expDateLabel":"{l s='Expired date' mod='przelewy24'}",
"payButtonCaption":"{l s='Pay' mod='przelewy24'}",
"description":"{l s='Register card and payment' mod='przelewy24'}",
"threeDSAuthMessage":"{l s='Click to redirect to 3ds payment.' mod='przelewy24'}",
"registerCardLabel":"{l s='Register card' mod='przelewy24'}"
}'
data-card-action="cardCharge"
data-card-cart-id="{$cartId}"
data-successCallback="payInShopSuccess"
data-failureCallback="payInShopFailure"
data-action-payment-success="{$link->getModuleLink('przelewy24', 'paymentSuccessful', [], true)|escape:'html'}"
data-action-payment-failed="{$link->getModuleLink('przelewy24', 'paymentFailed', [], true)|escape:'html'}"
data-action-register-card-form="{$link->getModuleLink('przelewy24', 'ajaxChargeCardForm', [], true)|escape:'html'}"
data-action-remember_order_id="{$link->getModuleLink('przelewy24', 'ajaxRememberOneclickOrderId', [], true)|escape:'html'}"
data-action-payment-check="{$link->getModuleLink('przelewy24', 'ajaxPaymentCheck', [], true)|escape:'html'}">
</div>

View File

@@ -0,0 +1,30 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="box hidden-sm-down">
<img src="{$logo_url}"
alt="{l s='Pay with Przelewy24' mod='przelewy24'}">
<h2>{l s='Pay with Przelewy24' mod='przelewy24'}</h2>
<p>
{l s='We waiting for accept your payment. If you cancel payment process you can start it again by button' mod='przelewy24'}.
</p>
<div class="add">
<p>
<a class="btn btn-primary add-to-cart" href="{$redirect_url}">
{l s='try again' mod='przelewy24'}
</a>
</p>
</div>
</div>
{if $extracharge > 0}
<input type="hidden" name="extracharge_text" id="extracharge_text" value="{l s='Extracharge Przelewy24' mod='przelewy24'}">
<input type="hidden" name="extracharge" id="extracharge" value="{$extracharge} {$currencySign}">
{/if}

View File

@@ -0,0 +1,94 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="tab-content panel przelewy-24">
<div class="panel-heading">
{l s='Refunds to Przelewy24' mod='przelewy24'}
</div>
{if '' !== $refundError}
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
{foreach from=$refundError item=singleError}
<p>{l s=$singleError mod='przelewy24'}</p>
{/foreach}
</div>
{/if}
{if $getRefundInfo}
{if $amount > 0}
{assign var="amountToRefund" value=$amount/100}
{if !$errorRefunds}
<p>
{l s='The function of generating returns from the store requires additional configuration of Przelewy24 account. To activate this functionality, please contact the Customer Service Department at the address serwis@przelewy24.pl.' mod='przelewy24'}
</p>
{else}
<p>
{l s='Here you can send a refund to the customer. The amount of the refund may not exceed the value of the transaction and the amount of funds available in your account.' mod='przelewy24'}
</p>
<p>{l s='Amount to refund' mod='przelewy24'}: {$amountToRefund} {$sign}</p>
<form class="form-horizontal hidden-print refundAmount" method="post">
<div class="form-group">
<div class="col-lg-2">
<label for="amountToRefund">{l s='Amount' mod='przelewy24'}</label>
<input class="form-control" id="amountToRefund" type="number" name="amountToRefund"
value="{$amountToRefund}" step="0.01">
<input class="btn btn-primary pull-right" type="submit" name="submitRefund" value="{l s='Send' mod='przelewy24'}">
<input type="hidden" id="refundAmountText" value="{l s='This will generate outgoing transfer. Can you confirm the operation?' mod='przelewy24'}">
<input type="hidden" name="refundToken" value="{$refundToken}">
</div>
</div>
</form>
{/if}
{else}
<p>{l s='The payment has already been fully refunded - no funds to make further returns.' mod='przelewy24'}</p>
{/if}
{if $refunds}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>
<span class="title_box">
{l s='Amount refunded' mod='przelewy24'}
</span>
</th>
<th>
<span class="title_box">
{l s='Date of refund' mod='przelewy24'}
</span>
</th>
<th>
<span class="title_box">
Status
</span>
</th>
</tr>
</thead>
<tbody>
{foreach from=$refunds item=refund}
<tr>
<td>
{$refund['amount_refunded']/100} {$sign}
</td>
<td>
{$refund['created']}
</td>
<td>
{l s=$refund['status'] mod='przelewy24'}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
{else}
<p>{l s='To display refunds balance, please contact the Przelewy24 Customer Service' mod='przelewy24'}</p>
{/if}
</div>

View File

@@ -0,0 +1,16 @@
{*
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*}
<div class="tab-content panel">
<div class="panel-heading">
{l s='Refunds to Przelewy24' mod='przelewy24'}
</div>
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
<p>{l s='Please check if Przelewy24 module is configured. If there is a valid configuration and You still see this alert, please contact with Przelewy24 Customer Service.' mod='przelewy24'}</p>
</div>
</div>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* http://opensource.org/licenses/osl-3.0.php
* 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-2016 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;