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 @@
<?php
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,32 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
{if $data_processing_notices}
{assign var=unique_id value=1|mt_rand:20}
<div class="row">
<div class="col-lg-12">
<div class="paynow-data-processing-info">
{foreach from=$data_processing_notices item=notice}
<div class="paynow-data-processing-info-less">
{$notice.title nofilter}
{if $notice.content}
&nbsp;<span data-toggle="collapse" data-target="#paynow_disclaimer_{$unique_id}">{l s='Read more' mod='paynow'}</span>
{/if}
</div>
{if $notice.content}
<div class="paynow-data-processing-info-more collapse" id="paynow_disclaimer_{$unique_id}">
{$notice.content nofilter}
</div>
{/if}
{/foreach}
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,31 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
<form class="payment-form paynow-blik-form" data-method="POST" data-action="{$action_blik}" data-token="{$action_token}" data-error-message="{$error_message}" data-terms-message="{$terms_message}">
<div class="paynow-option-content-{$method.type} collapse" id="paynow-option-{$method.type}">
<div class="paynow-payment-option-blik">
<div class="form-group row">
<label for="paynow_blik_code" class="col-md-2 form-control-label required">
{l s='Enter the BLIK code' mod='paynow'}
</label>
<div class="col-md-2">
<input autocomplete="off" inputmode="numeric" pattern="[0-9]{'{3}'|escape:'htmlall':'UTF-8'} [0-9]{'{3}'|escape:'htmlall':'UTF-8'}" minlength="6" maxlength="6" size="6" id="paynow_blik_code" name="blikCode" type="text" value="" class="required form-control">
<span class="error"></span>
</div>
<div class="col-md-3">
<button class="btn btn-primary" disabled>
{l s='Pay' mod='paynow'}
</button>
</div>
</div>
{include file="./payment_data_processing_info.tpl"}
</div>
</div>
</form>

View File

@@ -0,0 +1,15 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
<button name="paymentMethodId"{if isset($method.id)} value="{$method.id}" {/if}type="{if $method.authorization == 'CODE'}button{else}submit{/if}" class="payment-option paynow-option-{$method.type}" {if isset($method.enabled) && !$method.enabled}disabled{/if}
data-toggle="collapse" data-target="#paynow-option-{$method.type}" aria-expanded="false" aria-controls="paynow-option-{$method.type}"{if $method.authorization == 'CODE' && $method.type == 'BLIK'} onclick="{literal}setTimeout(function () {enableBlikSupport()}, 200){/literal}"{/if}>
<img src="{$method.image|escape:'htmlall':'UTF-8'}" alt="{$method.name|escape:'htmlall':'UTF-8'}"/>
{$method.name|escape:'htmlall':'UTF-8'}
</button>

View File

@@ -0,0 +1,15 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
<div class="col-lg-3 col-xs-4 paynow-payment-option-pbl">
<button name="paymentMethodId" value="{$pbl->getId()}" type="submit" {if !$pbl->isEnabled()}disabled{/if}>
<img src="{$pbl->getImage()}" alt="{$pbl->getName()}" />
</button>
</div>

View File

@@ -0,0 +1,20 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
<div class="paynow-payment-option-pbls collapse" id="paynow-option-{$method.type}">
<form action="{$paynow_url|escape:'htmlall':'UTF-8'}" method="POST">
<div class="row">
{foreach from=$method.pbls item=pbl}
{include file="./payment_method_pbl.tpl"}
{/foreach}
</div>
{include file="./payment_data_processing_info.tpl"}
</form>
</div>

View File

@@ -0,0 +1,30 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
<script>
{literal}
$(document).ready(() => {
let makePaynowRefundCheckbox = `
<div class="cancel-product-element form-group refund-paynow" style="display: block;">
<div class="checkbox">
<div class="md-checkbox md-checkbox-inline">
<label>
<input type="checkbox" id="makeRefundViaPaynow" name="makeRefundViaPaynow" material_design="material_design" value="1" checked="checked">
<i class="md-checkbox-control"></i>
{/literal}{$makePaynowRefundCheckboxLabel|escape:'htmlall':'UTF-8'}{literal}
</label>
</div>
</div>
</div>
`;
$('.refund-checkboxes-container, div.partial_refund_fields').prepend(makePaynowRefundCheckbox);
});
{/literal}
</script>

View File

@@ -0,0 +1,11 @@
<?php
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,15 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
<div class="text-xs-right">
<a href="{$paynow_url|escape:'htmlall':'UTF-8'}" title="{l s='Retry payment with paynow.pl' mod='paynow'}" class="btn btn-primary">
{l s='Retry payment with paynow.pl' mod='paynow'}
</a>
</div>

View File

@@ -0,0 +1,39 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.md.
*
* @author mElements S.A.
* @copyright mElements S.A.
* @license MIT License
*}
{if !empty($payment_options)}
{foreach from=$payment_options item=method}
{if ($method.type !== 'BLIK' AND $method.type !== 'PBL' || ($method.type == 'BLIK' AND $method.authorization != 'CODE')) }
<form action="{$paynow_url|escape:'htmlall':'UTF-8'}" method="POST">
{/if}
<p class="payment_module paynow{if !empty($method.pbls)} with-pbls{/if}">
{include file="./_partials/payment_method_button.tpl"}
{if !empty($method.pbls)}
{include file="./_partials/payment_pbls.tpl"}
{else}
{if $method.authorization == 'CODE'}
{include file="./_partials/payment_method_blik_form.tpl"}
{/if}
{/if}
</p>
{if ($method.type !== 'BLIK' AND $method.type !== 'PBL' || ($method.type == 'BLIK' AND $method.authorization != 'CODE')) }
</form>
{/if}
{/foreach}
{else}
<form action="{$paynow_url|escape:'htmlall':'UTF-8'}" method="POST">
<p class="payment_module paynow">
<button name="paymentMethodId" type="submit" class="payment-option">
<img src="{$logo|escape:'htmlall':'UTF-8'}" alt="{$cta_text|escape:'htmlall':'UTF-8'}">
{$cta_text|escape:'htmlall':'UTF-8'}
</button>
</p>
</form>
{/if}