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,235 @@
/**
* 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
*/
.payment_module.paynow {
clear: both;
}
p.payment_module .paynow {
padding-left: 17px;
}
.paynow.with-pbls .paynow {
display: block;
border: 1px solid #d6d4d4;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
font-size: 17px;
line-height: 23px;
color: #333;
font-weight: bold;
padding: 33px 40px 34px 17px;
letter-spacing: -1px;
position: relative;
}
p.payment_module .paynow img {
padding: 8px 10px;
max-width: 100px;
}
.paynow-payment-option-pbl img {
max-width: 80px;
width: 100%;
}
.paynow-payment-option-pbl button:disabled img, .paynow-payment-option-pbl.disabled img {
opacity: 0.3;
filter: grayscale(1);
}
.paynow-payment-option-pbl input[type=radio] {
display: none;
}
.paynow-payment-option-pbl label {
padding: 10px;
border: 1px solid #e6e6e6;
width: 100%;
height: 80px;
text-align: center;
cursor: pointer;
vertical-align: middle;
display: flex !important;
justify-content: center;
align-items: center;
margin-bottom: .5rem;
}
.paynow-payment-option-pbl.disabled label {
cursor: not-allowed;
}
.paynow-payment-option-pbl input[type=radio]:checked + label {
border: 1px solid #d2d2d2;
background: #f3f3f3;
}
.paynow-payment-option-pbl button {
border: 1px solid #e6e6e6;
background: 0;
width: 100%;
padding: 10px;
min-height: 80px;
margin: 5px 0;
}
.paynow-payment-option-pbl button:enabled:hover {
border: 1px solid #d2d2d2;
background: #f3f3f3;
}
.paynow-payment-option-pbl button:disabled:hover {
cursor: not-allowed;
}
.paynow-payment-form {
padding: 10px;
}
button.payment-option {
width: 100%;
padding: 33px 40px 34px 17px;
text-align: left;
border: 1px solid #d6d4d4;
background: #fbfbfb;
font-size: 17px;
line-height: 23px;
font-weight: bold;
position: relative;
}
p.payment_module.paynow button:after {
display: block;
content: "\f054";
position: absolute;
right: 15px;
margin-top: -11px;
top: 50%;
font-family: "FontAwesome";
font-size: 25px;
height: 22px;
width: 14px;
color: #777777;
}
.paynow > button:enabled:hover {
border: 1px solid #d2d2d2;
background: #f3f3f3;
}
.paynow > button img {
max-height: 40px !important;
max-width: 80px !important;
margin-right: 10px;
height: auto !important;
}
.payment-option img {
max-height: 1.5rem !important;
max-width: 80px !important;
height: auto !important;
margin-right: 10px;
margin-left: 10px;
}
.paynow .payment-option:disabled img {
opacity: 0.3;
filter: grayscale(1);
}
.order-data {
margin: 1.5rem 0;
}
.paynow-blik-form .paynow-data-processing-info {
margin-top: 1rem;
}
.paynow-blik-form label {
display: inline-block;
text-align: left;
}
.paynow-blik-form input[type=text] {
letter-spacing: 5px;
}
.paynow-blik-form span.error {
text-align: center;
color: darkred;
font-size: 0.9rem;
display: block;
}
.paynow-blik-form .paynow-payment-option-container input[type=text] + span {
font-size: 0.8rem;
}
.paynow-data-processing-info {
color: #797979;
text-align: justify;
clear: both;
}
.paynow-data-processing-info .paynow-data-processing-info-less span {
cursor: pointer;
}
.paynow-payment-form .paynow-data-processing-info {
font-size: 0.7rem;
}
.paynow-data-processing-info ul {
list-style-type: lower-alpha;
margin: 0 1.5rem;
}
.paynow-payment-form .paynow-data-processing-info ul {
margin: 0 1rem;
}
.paynow-confirm-blik {
text-align: center;
background: #fff;
padding: 1.5rem;
margin-bottom: 1rem;
}
.paynow-confirm-blik img {
max-width: 35%;
}
.paynow-return img {
float: right;
}
@media (max-width: 768px) {
.paynow-return img {
float: none !important;
margin-bottom: .5rem;
max-width: 50%;
}
.paynow-blik-form .paynow-payment-option-container label {
padding-bottom: 0.5rem;
}
.paynow-blik-form .paynow-payment-option-container button {
width: 100%;
margin-top: 0.5rem;
}
}
@media (min-width: 768px) {
.paynow-payment-option-container {
padding: 1rem;
}
}

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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

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,27 @@
/**
* 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
**/
$(document).ready(function () {
let paymentValidityTimeSwitchOn = $('#PAYNOW_PAYMENT_VALIDITY_TIME_ENABLED_on');
let paymentValidityTimeSwitchOff = $('#PAYNOW_PAYMENT_VALIDITY_TIME_ENABLED_off');
let paymentValidityTimeInput = $('input[name="PAYNOW_PAYMENT_VALIDITY_TIME"]');
if (!paymentValidityTimeSwitchOn.is(':checked')) {
paymentValidityTimeInput.prop('disabled', true);
}
paymentValidityTimeSwitchOn.on("change", function () {
paymentValidityTimeInput.prop('disabled', false);
});
paymentValidityTimeSwitchOff.on("click", function () {
paymentValidityTimeInput.prop('disabled', true);
})
});

View File

@@ -0,0 +1,42 @@
/**
* 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
**/
(function () {
let status = $('.paynow-confirm-blik .status'),
redirectToReturn = function () {
window.location.replace('return' + window.location.search)
},
pollPaymentStatus = setInterval(function () {
checkPaymentStatus();
}, 3000),
checkPaymentStatus = function () {
$.ajax({
url: 'status' + window.location.search,
dataType: 'json',
type: 'get',
success: function (message) {
status.text(message.order_status);
if (message.payment_status !== "PENDING") {
clearInterval(pollPaymentStatus);
window.location.href = message.redirect_url;
}
},
error: function () {
redirectToReturn();
}
});
};
setTimeout(() => {
redirectToReturn()
}, 60000);
})();

View File

@@ -0,0 +1,118 @@
/**
* 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
**/
// jQuery Mask Plugin v1.14.16
// github.com/igorescobar/jQuery-Mask-Plugin
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,n,f){a instanceof String&&(a=String(a));for(var p=a.length,k=0;k<p;k++){var b=a[k];if(n.call(f,b,k,a))return{i:k,v:b}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,f){a!=Array.prototype&&a!=Object.prototype&&(a[n]=f.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(a,n,f,p){if(n){f=$jscomp.global;a=a.split(".");for(p=0;p<a.length-1;p++){var k=a[p];k in f||(f[k]={});f=f[k]}a=a[a.length-1];p=f[a];n=n(p);n!=p&&null!=n&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:n})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,f){return $jscomp.findInternal(this,a,f).v}},"es6","es3");
(function(a,n,f){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports&&"undefined"===typeof Meteor?module.exports=a(require("jquery")):a(n||f)})(function(a){var n=function(b,d,e){var c={invalid:[],getCaret:function(){try{var a=0,r=b.get(0),h=document.selection,d=r.selectionStart;if(h&&-1===navigator.appVersion.indexOf("MSIE 10")){var e=h.createRange();e.moveStart("character",-c.val().length);a=e.text.length}else if(d||"0"===d)a=d;return a}catch(C){}},setCaret:function(a){try{if(b.is(":focus")){var c=
b.get(0);if(c.setSelectionRange)c.setSelectionRange(a,a);else{var g=c.createTextRange();g.collapse(!0);g.moveEnd("character",a);g.moveStart("character",a);g.select()}}}catch(B){}},events:function(){b.on("keydown.mask",function(a){b.data("mask-keycode",a.keyCode||a.which);b.data("mask-previus-value",b.val());b.data("mask-previus-caret-pos",c.getCaret());c.maskDigitPosMapOld=c.maskDigitPosMap}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",c.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){b.keydown().keyup()},
100)}).on("change.mask",function(){b.data("changed",!0)}).on("blur.mask",function(){f===c.val()||b.data("changed")||b.trigger("change");b.data("changed",!1)}).on("blur.mask",function(){f=c.val()}).on("focus.mask",function(b){!0===e.selectOnFocus&&a(b.target).select()}).on("focusout.mask",function(){e.clearIfNotMatch&&!k.test(c.val())&&c.val("")})},getRegexMask:function(){for(var a=[],b,c,e,t,f=0;f<d.length;f++)(b=l.translation[d.charAt(f)])?(c=b.pattern.toString().replace(/.{1}$|^.{1}/g,""),e=b.optional,
(b=b.recursive)?(a.push(d.charAt(f)),t={digit:d.charAt(f),pattern:c}):a.push(e||b?c+"?":c)):a.push(d.charAt(f).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));a=a.join("");t&&(a=a.replace(new RegExp("("+t.digit+"(.*"+t.digit+")?)"),"($1)?").replace(new RegExp(t.digit,"g"),t.pattern));return new RegExp(a)},destroyEvents:function(){b.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(a){var c=b.is("input")?"val":"text";if(0<arguments.length){if(b[c]()!==a)b[c](a);
c=b}else c=b[c]();return c},calculateCaretPosition:function(a){var d=c.getMasked(),h=c.getCaret();if(a!==d){var e=b.data("mask-previus-caret-pos")||0;d=d.length;var g=a.length,f=a=0,l=0,k=0,m;for(m=h;m<d&&c.maskDigitPosMap[m];m++)f++;for(m=h-1;0<=m&&c.maskDigitPosMap[m];m--)a++;for(m=h-1;0<=m;m--)c.maskDigitPosMap[m]&&l++;for(m=e-1;0<=m;m--)c.maskDigitPosMapOld[m]&&k++;h>g?h=10*d:e>=h&&e!==g?c.maskDigitPosMapOld[h]||(e=h,h=h-(k-l)-a,c.maskDigitPosMap[h]&&(h=e)):h>e&&(h=h+(l-k)+f)}return h},behaviour:function(d){d=
d||window.event;c.invalid=[];var e=b.data("mask-keycode");if(-1===a.inArray(e,l.byPassKeys)){e=c.getMasked();var h=c.getCaret(),g=b.data("mask-previus-value")||"";setTimeout(function(){c.setCaret(c.calculateCaretPosition(g))},a.jMaskGlobals.keyStrokeCompensation);c.val(e);c.setCaret(h);return c.callbacks(d)}},getMasked:function(a,b){var h=[],f=void 0===b?c.val():b+"",g=0,k=d.length,n=0,p=f.length,m=1,r="push",u=-1,w=0;b=[];if(e.reverse){r="unshift";m=-1;var x=0;g=k-1;n=p-1;var A=function(){return-1<
g&&-1<n}}else x=k-1,A=function(){return g<k&&n<p};for(var z;A();){var y=d.charAt(g),v=f.charAt(n),q=l.translation[y];if(q)v.match(q.pattern)?(h[r](v),q.recursive&&(-1===u?u=g:g===x&&g!==u&&(g=u-m),x===u&&(g-=m)),g+=m):v===z?(w--,z=void 0):q.optional?(g+=m,n-=m):q.fallback?(h[r](q.fallback),g+=m,n-=m):c.invalid.push({p:n,v:v,e:q.pattern}),n+=m;else{if(!a)h[r](y);v===y?(b.push(n),n+=m):(z=y,b.push(n+w),w++);g+=m}}a=d.charAt(x);k!==p+1||l.translation[a]||h.push(a);h=h.join("");c.mapMaskdigitPositions(h,
b,p);return h},mapMaskdigitPositions:function(a,b,d){a=e.reverse?a.length-d:0;c.maskDigitPosMap={};for(d=0;d<b.length;d++)c.maskDigitPosMap[b[d]+a]=1},callbacks:function(a){var g=c.val(),h=g!==f,k=[g,a,b,e],l=function(a,b,c){"function"===typeof e[a]&&b&&e[a].apply(this,c)};l("onChange",!0===h,k);l("onKeyPress",!0===h,k);l("onComplete",g.length===d.length,k);l("onInvalid",0<c.invalid.length,[g,a,b,c.invalid,e])}};b=a(b);var l=this,f=c.val(),k;d="function"===typeof d?d(c.val(),void 0,b,e):d;l.mask=
d;l.options=e;l.remove=function(){var a=c.getCaret();l.options.placeholder&&b.removeAttr("placeholder");b.data("mask-maxlength")&&b.removeAttr("maxlength");c.destroyEvents();c.val(l.getCleanVal());c.setCaret(a);return b};l.getCleanVal=function(){return c.getMasked(!0)};l.getMaskedVal=function(a){return c.getMasked(!1,a)};l.init=function(g){g=g||!1;e=e||{};l.clearIfNotMatch=a.jMaskGlobals.clearIfNotMatch;l.byPassKeys=a.jMaskGlobals.byPassKeys;l.translation=a.extend({},a.jMaskGlobals.translation,e.translation);
l=a.extend(!0,{},l,e);k=c.getRegexMask();if(g)c.events(),c.val(c.getMasked());else{e.placeholder&&b.attr("placeholder",e.placeholder);b.data("mask")&&b.attr("autocomplete","off");g=0;for(var f=!0;g<d.length;g++){var h=l.translation[d.charAt(g)];if(h&&h.recursive){f=!1;break}}f&&b.attr("maxlength",d.length).data("mask-maxlength",!0);c.destroyEvents();c.events();g=c.getCaret();c.val(c.getMasked());c.setCaret(g)}};l.init(!b.is("input"))};a.maskWatchers={};var f=function(){var b=a(this),d={},e=b.attr("data-mask");
b.attr("data-mask-reverse")&&(d.reverse=!0);b.attr("data-mask-clearifnotmatch")&&(d.clearIfNotMatch=!0);"true"===b.attr("data-mask-selectonfocus")&&(d.selectOnFocus=!0);if(p(b,e,d))return b.data("mask",new n(this,e,d))},p=function(b,d,e){e=e||{};var c=a(b).data("mask"),f=JSON.stringify;b=a(b).val()||a(b).text();try{return"function"===typeof d&&(d=d(b)),"object"!==typeof c||f(c.options)!==f(e)||c.mask!==d}catch(w){}},k=function(a){var b=document.createElement("div");a="on"+a;var e=a in b;e||(b.setAttribute(a,
"return;"),e="function"===typeof b[a]);return e};a.fn.mask=function(b,d){d=d||{};var e=this.selector,c=a.jMaskGlobals,f=c.watchInterval;c=d.watchInputs||c.watchInputs;var k=function(){if(p(this,b,d))return a(this).data("mask",new n(this,b,d))};a(this).each(k);e&&""!==e&&c&&(clearInterval(a.maskWatchers[e]),a.maskWatchers[e]=setInterval(function(){a(document).find(e).each(k)},f));return this};a.fn.masked=function(a){return this.data("mask").getMaskedVal(a)};a.fn.unmask=function(){clearInterval(a.maskWatchers[this.selector]);
delete a.maskWatchers[this.selector];return this.each(function(){var b=a(this).data("mask");b&&b.remove().removeData("mask")})};a.fn.cleanVal=function(){return this.data("mask").getCleanVal()};a.applyDataMask=function(b){b=b||a.jMaskGlobals.maskElements;(b instanceof a?b:a(b)).filter(a.jMaskGlobals.dataMaskAttr).each(f)};k={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&
k("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};a.jMaskGlobals=a.jMaskGlobals||{};k=a.jMaskGlobals=a.extend(!0,{},k,a.jMaskGlobals);k.dataMask&&a.applyDataMask();setInterval(function(){a.jMaskGlobals.watchDataMask&&a.applyDataMask()},k.watchInterval)},window.jQuery,window.Zepto);
$(function () {
$('input[name="payment-option"]').on("change", function () {
setTimeout(function () {
enableBlikSupport();
enablePblSupport();
}, 200);
});
});
function enableBlikFormSupport()
{
var $paynow_blik_form = $('.paynow-blik-form'), $paynow_blik_error_span = $('#paynow_blik_code').next('span');
$('.paynow-blik-form button').on('click', function (e) {
e.preventDefault();
let $blik_pay_button = $($paynow_blik_form).find('button');
if ($('#conditions_to_approve\\[terms-and-conditions\\], #cgv').length == 0 || $('#conditions_to_approve\\[terms-and-conditions\\], #cgv').length && $('#conditions_to_approve\\[terms-and-conditions\\], #cgv').is(':checked')) {
$blik_pay_button.prop('disabled', true);
$.ajax($paynow_blik_form.data('action'), {
method: 'POST', type: 'POST',
data: {
'blikCode': $('#paynow_blik_code').val().replace(/\s/g, ""),
'token': $paynow_blik_form.data('token')
},
}).success(function (response) {
$paynow_blik_error_span.text('');
if (response.success === true) {
window.location.href = response.redirect_url;
} else {
$blik_pay_button.prop('disabled', false);
$paynow_blik_error_span.text(response.message);
}
}).error(function () {
$paynow_blik_error_span.text($paynow_blik_form.data('error-message'))
});
} else {
if ($('#conditions_to_approve\\[terms-and-conditions\\], #cgv').length) {
$paynow_blik_error_span.text($paynow_blik_form.data('terms-message'));
}
}
})
}
function enableBlikSupport()
{
enableBlikFormSupport();
let $paynow_blik_code_input = $('#paynow_blik_code'), $payment_button = $('#payment-confirmation button')
$paynow_blik_code_input.mask('000 000', {placeholder: "___ ___"});
if ($paynow_blik_code_input.is(':visible')) {
var $regulations = $('#conditions_to_approve\\[terms-and-conditions\\], #cgv');
if ($regulations.length) {
$regulations.prop('checked', true)
}
$payment_button.prop('disabled', true).hide();
validateBlikCode($paynow_blik_code_input.val())
} else {
$payment_button.prop('disabled', false).show();
}
$paynow_blik_code_input.keyup(function () {
validateBlikCode($paynow_blik_code_input.val())
});
}
function enablePblSupport()
{
var $payment_button = $('#payment-confirmation button');
if ($('.paynow-payment-pbls').is(':visible')) {
$payment_button.prop('disabled', $('input[name="paymentMethodId"]:checked').length === 0)
}
$('input[name="paymentMethodId"]').on('change', function () {
$payment_button.prop('disabled', $('input[name="paymentMethodId"]:checked').length === 0)
})
}
function validateBlikCode(blik_code_value)
{
blik_code_value = blik_code_value.replace(/\s/g, '');
var $payment_button = $('#payment-confirmation button'),
$paynow_blik_payment_button = $('.paynow-blik-form button'),
$paynow_blik_error_span = $('#paynow_blik_code').next('span');
if (blik_code_value.length === 6 && !isNaN(parseInt(blik_code_value)) && parseInt(blik_code_value)) {
$paynow_blik_error_span.text('');
$payment_button.prop('disabled', false);
$paynow_blik_payment_button.prop('disabled', false);
} else {
$payment_button.prop('disabled', true);
$paynow_blik_payment_button.prop('disabled', true);
$('#paynow_blik_code').focus();
}
}

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="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-error-message="{$error_message}" data-terms-message="{$terms_message}">
<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,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-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}

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;