This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 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-token-refresh="{$action_token_refresh}" data-error-message="{$error_message}" data-terms-message="{$terms_message}" data-blik-autofocus="{$blik_autofocus}">
<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,65 @@
{*
* 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-card collapse" id="paynow-option-{$method.type}">
<form action="{$method.action_card|escape:'htmlall':'UTF-8'}" method="POST">
<div class="paynow-payment-option-container">
<p>{l s='Select a saved card or enter new card details:' mod='paynow'}</p>
<input type="hidden" name="paymentMethodFingerprint" id="payment-method-fingerprint" value="">
<div class="paynow-payment-card">
{foreach from=$method.instruments item=instrument}
<div class="paynow-payment-card-option" id="wrapper-{$instrument->getToken()}">
<button name="paymentMethodToken" value="{$instrument->getToken()}" type="submit" {if $instrument->isExpired()} disabled {/if}>
<div class="paynow-payment-card-image">
<img src="{$instrument->getImage()}" alt="{$instrument->getBrand()}">
</div>
<div class="paynow-payment-card-details">
{if $instrument->isExpired()}
<p class="paynow-payment-card-details-card-name paynow-expired">{l s='Card:' mod='paynow'} {$instrument->getName()}</p>
<p class="paynow-payment-card-details-expiration paynow-expired">{l s='Expired:' mod='paynow'} {$instrument->getExpirationDate()}</p>
{else}
<p class="paynow-payment-card-details-card-name">{l s='Card:' mod='paynow'} {$instrument->getName()}</p>
<p class="paynow-payment-card-details-expiration">{l s='Expires:' mod='paynow'} {$instrument->getExpirationDate()}</p>
{/if}
</div>
</button>
<div class="paynow-payment-card-menu">
<button class="paynow-payment-card-menu-button" type="button">
{l s='remove' mod='paynow'}
</button>
<button
class="paynow-payment-card-remove --hidden" type="button"
data-remove-saved-instrument="{$instrument->getToken()}"
data-action="{$method.action_remove_saved_instrument}"
data-token="{$method.action_token}"
data-error-message="{l s='An error occurred while deleting the saved card.' mod='paynow'}"
>
{l s='Remove card' mod='paynow'}
</button>
</div>
<span class="paynow-payment-card-error"></span>
</div>
{/foreach}
<div class="paynow-payment-card-option">
<button name="paymentMethodToken" value="" type="submit">
<div class="paynow-payment-card-image">
<img src="{$method.default_card_image}" alt="Card default icon">
</div>
<div class="paynow-payment-card-details">
<p class="paynow-payment-card-details-card-name">{l s='Enter your new card details' mod='paynow'}</p>
<p class="paynow-payment-card-details-expiration">{l s='You can save it in the next step' mod='paynow'}</p>
</div>
</button>
</div>
</div>
</div>
{include file="./payment_data_processing_info.tpl"}
</form>
</div>

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>