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,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="panel">
<div class="panel-heading">{l s='Information' mod='paynow'}</div>
<p>{l s='If you do not have an account in the Paynow system yet,' mod='paynow'} <a href="https://paynow.pl/boarding" target="_blank">{l s='register in the Production' mod='paynow'}</a> {l s='or' mod='paynow'} <a href="https://panel.sandbox.paynow.pl/auth/register" target="_blank">{l s='Sandbox' mod='paynow'}</a> {l s='environment' mod='paynow'}.</p>
<p>{l s="Authentication keys are available in the Paynow tab -> Settings -> Shops and payment points -> Authentication data in mBank's online banking." mod='paynow'}</p>
</div>

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,13 @@
{*
* 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="alert alert-info">
{l s='The module allows you to make an automatic refund from the balance for payments made by paynow.pl. To use this option, you must select the daily payout frequency in the paynow panel. To do this, go to Settings / Payout schedule and then select the setting for the appropriate store.'|escape:'htmlall':'UTF-8' mod='paynow'}
</div>

View File

@@ -0,0 +1,17 @@
{*
* 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="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<p><span class="badge badge-warning">{l s='A new version of the Pay by paynow.pl module is available.' mod='paynow'}</span> {if !empty($download_url)}<a href="{$download_url|escape:'htmlall':'UTF-8'}" target="_blank" class="btn">{l s='Click here to download' mod='paynow'}{if !empty($changelog_url)} {$version_name|escape:'htmlall':'UTF-8'}{/if}</a>{/if}</p>
{if !empty($changelog_url)}
<p><a href="{$changelog_url|escape:'htmlall':'UTF-8'}">{l s='Open changelog' mod='paynow'}</a></p>
{/if}
</div>

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,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,16 @@
{if $data_processing_notices}
{assign var=unique_id value=1|mt_rand:20}
<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}<br><a href="#" data-toggle="collapse" data-target="#paynow_disclaimer_{$unique_id}" class="js-show-details">{l s='Read more' mod='paynow'}</a>{/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>
{/if}

View File

@@ -0,0 +1,6 @@
<div class="col-lg-3 col-xs-4 paynow-payment-option-pbl {if !$method->isEnabled()}disabled{/if}">
<input type="radio" name="paymentMethodId" value="{$method->getId()|escape:'htmlall':'UTF-8'}" id="paynow_method_{$method->getId()|escape:'htmlall':'UTF-8'}" {if !$method->isEnabled()}disabled{/if}>
<label for="paynow_method_{$method->getId()}">
<img src="{$method->getImage()|escape:'htmlall':'UTF-8'}" alt="{$method->getDescription()|escape:'htmlall':'UTF-8'}" />
</label>
</div>

View File

@@ -0,0 +1,26 @@
{*
* 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
*}
{extends file=$layout}
{block name='content'}
<div class="paynow-confirm-blik">
<h2>{l s='Confirm the payment using the app on your phone.' mod='paynow'}</h2>
<img src="{$link->getMediaLink("`$module_dir`views/img/blik-confirm.png")}" alt="{l s='Confirm the BLIK payment' mod='paynow'}">
<div class="order-data clearfix">
{if !empty($order_reference)}
<p>{l s='Your order number:' mod='paynow'} {$order_reference|escape:'htmlall':'UTF-8'}</p>
{/if}
{if !empty($order_status)}
<p>{l s='Current order status:' mod='paynow'} <span class="status">{$order_status|escape:'htmlall':'UTF-8'}</span></p>
{/if}
</div>
</div>
{/block}

View File

@@ -0,0 +1,34 @@
{*
* 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
*}
{extends file=$layout}
{block name='content'}
<h2>{$cta_text|escape:'htmlall':'UTF-8'}</h2>
<div class="table-responsive-row clearfix">
<div class="clearfix">
<p class="amount-info">
{l s='Pay for your order' mod='paynow'}:
<strong>{$total_to_pay|escape:'htmlall':'UTF-8'}</strong>
</p>
</div>
<div class="alert alert-warning">
{l s='An error occurred while processing your payment.' mod='paynow'}
</div>
<p class="cart_navigation clearfix" id="cart_navigation">
<a class="button btn btn-primary button-medium" href="{$button_action|escape:'htmlall':'UTF-8'}">
<span>{l s='Retry payment with paynow.pl' mod='paynow'}<i class="icon-chevron-right right"></i></span>
</a>
</p>
</div>
{/block}

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,23 @@
{*
* 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 $paynowPbls}
<form class="payment-form paynow-payment-form" method="POST" action="{$action}">
<div class="paynow-payment-option-container">
<p>{l s='Choose bank:' mod='paynow'}</p>
<div class="row paynow-payment-pbls">
{foreach from=$paynowPbls item=method}
{include file="module:paynow/views/templates/front/1.7/_partials/payment_method_pbl.tpl"}
{/foreach}
</div>
{include file="module:paynow/views/templates/front/1.7/_partials/payment_data_processing_info.tpl"}
</div>
</form>
{/if}

View File

@@ -0,0 +1,29 @@
{*
* 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-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-payment-option-container">
<div class="form-group row">
<label for="paynow_blik_code" class="col-md-3 form-control-label required">
{l s='Enter the BLIK code' mod='paynow'}
</label>
<div class="col-md-4">
<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="module:paynow/views/templates/front/1.7/_partials/payment_data_processing_info.tpl"}
</div>
</form>

View File

@@ -0,0 +1,67 @@
{*
* 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-payment-form paynow-payment-form-card" action="{$action_card}" method="POST">
<input type="hidden" name="paymentMethodFingerprint" id="payment-method-fingerprint" value="">
{if $paynow_card_instruments}
<div class="paynow-payment-option-container">
<p>{l s='Select a saved card or enter new card details:' mod='paynow'}</p>
<div class="paynow-payment-card">
{foreach from=$paynow_card_instruments item=instrument}
<div class="paynow-payment-card-option" id="wrapper-{$instrument->getToken()}">
<input type="radio" name="paymentMethodToken" value="{$instrument->getToken()}" id="{$instrument->getToken()}" {if $instrument->isExpired()} disabled {/if}>
<label for="{$instrument->getToken()}">
<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>
</label>
<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="{$action_remove_saved_instrument}"
data-token="{$action_remove_saved_instrument_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">
<input type="radio" name="paymentMethodToken" value="" id="paymentMethodToken-default">
<label for="paymentMethodToken-default">
<div class="paynow-payment-card-image">
<img src="{$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>
</label>
</div>
</div>
{include file="module:paynow/views/templates/front/1.7/_partials/payment_data_processing_info.tpl"}
</div>
{/if}
</form>

View File

@@ -0,0 +1,23 @@
{*
* 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 $paynowDigitalWalletsPayments}
<form class="payment-form paynow-payment-form" method="POST" action="{$action}">
<div class="paynow-payment-option-container">
<p>{l s='Choose wallet:' mod='paynow'}</p>
<div class="row paynow-payment-pbls">
{foreach from=$paynowDigitalWalletsPayments item=method}
{include file="module:paynow/views/templates/front/1.7/_partials/payment_method_pbl.tpl"}
{/foreach}
</div>
{include file="module:paynow/views/templates/front/1.7/_partials/payment_data_processing_info.tpl"}
</div>
</form>
{/if}

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
*}
<form class="payment-form paynow-payment-form" method="POST" action="{$action_paypo}">
<div class="paynow-payment-option-container">
{include file="module:paynow/views/templates/front/1.7/_partials/payment_data_processing_info.tpl"}
</div>
</form>

View File

@@ -0,0 +1,44 @@
{*
* 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
*}
{extends file=$layout}
{block name='content'}
<div class="paynow-return">
<img src="{$logo|escape:'htmlall':'UTF-8'}" alt="{l s='Pay by online transfer or BLIK' mod='paynow'}">
<h2>{l s='Thank you for your order!' mod='paynow'}</h2>
<div class="order-data clearfix">
<p>
{l s='Your order number:' mod='paynow'} {$order_reference|escape:'htmlall':'UTF-8'}
</p>
<p>
{l s='Order status:' mod='paynow'} {$order_status|escape:'htmlall':'UTF-8'}
</p>
{if $show_retry_button}
<p>
<a href="{$retry_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>
</p>
{/if}
{if $show_details_button}
<p>
<a class="button btn btn-primary button-medium pull-left" href="{$details_url|escape:'htmlall':'UTF-8'}">
<span>
{l s='Order details' mod='paynow'}
<i class="icon-chevron-right"></i>
</span>
</a>
</p>
{/if}
</div>
{*HTML CONTENT*}{$HOOK_ORDER_CONFIRMATION nofilter}
</div>
{/block}

View File

@@ -0,0 +1,22 @@
{*
* 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-confirm-blik">
<h2>{l s='Confirm the payment using the app on your phone.' mod='paynow'}</h2>
<img src="{$link->getMediaLink("`$module_dir`views/img/blik-confirm.png")}" alt="{l s='Confirm the BLIK payment' mod='paynow'}">
<div class="order-data clearfix">
{if !empty($order_reference)}
<p>{l s='Your order number:' mod='paynow'} {$order_reference|escape:'htmlall':'UTF-8'}</p>
{/if}
{if !empty($order_status)}
<p>{l s='Current order status:' mod='paynow'} <span class="status">{$order_status|escape:'htmlall':'UTF-8'}</span></p>
{/if}
</div>
</div>

View File

@@ -0,0 +1,28 @@
{*
* 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
*}
{capture name=path}{$cta_text|escape:'htmlall':'UTF-8'}{/capture}
<div class="clearfix">
<h2 class="amount-info">
{l s='Pay for your order' mod='paynow'}:
<strong>{$total_to_pay|escape:'htmlall':'UTF-8'}</strong>
</h2>
</div>
<div class="alert alert-warning">
{l s='An error occurred while processing your payment.' mod='paynow'}
</div>
<p class="cart_navigation clearfix" id="cart_navigation">
<a class="button btn btn-primary button-medium" href="{$button_action|escape:'htmlall':'UTF-8'}">
<span>{l s='Retry payment with paynow.pl' mod='paynow'}<i class="icon-chevron-right right"></i></span>
</a>
</p>

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,40 @@
{*
* 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-return">
<img src="{$logo|escape:'htmlall':'UTF-8'}" alt="{l s='Pay by online transfer or BLIK' mod='paynow'}">
<h2>{l s='Thank you for your order!' mod='paynow'}</h2>
<div class="order-data clearfix">
<p>
{l s='Your order number:' mod='paynow'} {$order_reference|escape:'htmlall':'UTF-8'}
</p>
<p>
{l s='Order status:' mod='paynow'} {$order_status|escape:'htmlall':'UTF-8'}
</p>
{if $show_retry_button}
<p>
<a href="{$retry_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>
</p>
{/if}
{if $show_details_button}
<p>
<a class="button btn btn-primary button-medium pull-left" href="{$details_url|escape:'htmlall':'UTF-8'}">
<span>
{l s='Order details' mod='paynow'}
<i class="icon-chevron-right"></i>
</span>
</a>
</p>
{/if}
</div>
{*HTML CONTENT*}{$HOOK_ORDER_CONFIRMATION nofilter}
</div>

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>

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,45 @@
{*
* 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}">
{if (Module::isEnabled('onepagecheckoutps'))}
<a href="window.location = '{$paynow_url|escape:'htmlall':'UTF-8'}'" style="display: none">{$cta_text|escape:'htmlall':'UTF-8'}</a>
{/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">
{if (Module::isEnabled('onepagecheckoutps'))}
<a href="window.location = '{$paynow_url|escape:'htmlall':'UTF-8'}'" style="display: none">{$cta_text|escape:'htmlall':'UTF-8'}</a>
{/if}
<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}

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;