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,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>