add 7.1.0.0 (sourceGuardian for PHP 8.x)
This commit is contained in:
@ -180,7 +180,6 @@
|
||||
</div>
|
||||
[{/if}]
|
||||
|
||||
[{include file=$subTemplateName}]
|
||||
<div class="form-group">
|
||||
<div class="alert alert-info" style="padding:5px;text-align:right;">
|
||||
<button class="btn btn-primary" type="submit">
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
[{if $mod_d3unzer }]
|
||||
[{assign var="oPrePaymentData" value=$order->getHeidelpayBankTransferData()}]
|
||||
[{* deprecated there is no easycredit support anymore *}]
|
||||
[{assign var="easyCreditInformations" value=$order->getHeidelpayEasyCreditInformations()}]
|
||||
|
||||
[{if is_object($oPrePaymentData)}]
|
||||
|
@ -1,4 +1,5 @@
|
||||
[{d3modcfgcheck modid='d3unzer'}][{/d3modcfgcheck}][{if $mod_d3unzer }][{assign var="oPrePaymentData" value=$order->getHeidelpayBankTransferData()}]
|
||||
[{* deprecated there is no easycredit support anymore *}]
|
||||
[{assign var="easyCreditInformations" value=$order->getHeidelpayEasyCreditInformations()}]
|
||||
[{if is_object($oPrePaymentData)}]##########################################################
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
[{if $mod_d3unzer }]
|
||||
[{assign var="oPrePaymentData" value=$order->getHeidelpayBankTransferData()}]
|
||||
[{* deprecated there is no easycredit support anymore *}]
|
||||
[{assign var="easyCreditInformations" value=$order->getHeidelpayEasyCreditInformations()}]
|
||||
|
||||
[{if $oPrePaymentData}]
|
||||
|
@ -2,6 +2,7 @@
|
||||
[{d3modcfgcheck modid='d3unzer'}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3unzer && $oViewConf->getActiveClassname() === 'order'}]
|
||||
[{* deprecated there is no easycredit support anymore *}]
|
||||
[{assign var="easyCreditInformations" value=$oView->getHeidelpayEasyCreditInformations()}]
|
||||
[{if isset($easyCreditInformations)}]
|
||||
[{include file=$oView->d3GetTemplateName('order_easycreditcriterions') easyCreditInformations=$easyCreditInformations}]
|
||||
|
@ -1,4 +1,3 @@
|
||||
[{oxcontent ident="d3_hp_vorkassemail_owner_plain"}]
|
||||
|
||||
|
||||
[{oxcontent ident="oxemailfooterplain"}]
|
||||
|
@ -1,3 +1,4 @@
|
||||
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3unzer','out/img/mgw/')}]
|
||||
[{block name="heidelpay_cards"}]
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
@ -9,7 +10,7 @@
|
||||
[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]>
|
||||
<label for="payment_[{$sPaymentID}]">
|
||||
<b>[{$paymentmethod->oxpayments__oxdesc->value}]</b>
|
||||
<i class="fas fa-credit-card fa-3x" style="vertical-align: middle"></i>
|
||||
<img src="[{$sImageUrl}]creditcard.png" alt="[{$paymentmethod->oxpayments__oxdesc->value}]" style="vertical-align: middle; width: 65px">
|
||||
</label>
|
||||
</dt>
|
||||
<dd class="payment-option [{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]activePayment[{/if}]">
|
||||
|
123
views/twig/admin/channels/list.html.twig
Normal file
123
views/twig/admin/channels/list.html.twig
Normal file
@ -0,0 +1,123 @@
|
||||
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate, box: "list"} %}
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
window.onload = function ()
|
||||
{
|
||||
top.reloadEditFrame();
|
||||
{% if updatelist == 1 %}
|
||||
top.oxid.admin.updateList('{{ oxid }}');
|
||||
{% endif %}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
{% set where = oView.getListFilter() %}
|
||||
<div id="liste">
|
||||
<form name="search" id="search" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{% include "_formparams.html.twig" with {cl: oViewConf.getActiveClassname(), lstrt: lstrt, actedit: actedit, oxid: oxid, fnc: "", language: actlang, editlanguage: actlang} %}
|
||||
{% if blShowLangSwitch %}
|
||||
<label>
|
||||
{{ translate({ ident: "D3_CFG_MOD_LIST_SETTLANG" }) }}
|
||||
<select name="changelang" class="editinput" onChange="top.oxid.admin.changeLanguage();">
|
||||
{% for lang in languages %}
|
||||
<option value="{{ lang.id }}" {% if lang.selected %}SELECTED{% endif %}>{{ lang.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
{% endif %}
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<colgroup>
|
||||
<col width="3%">
|
||||
<col width="3%">
|
||||
<col width="30%">
|
||||
<col width="30%">
|
||||
<col width="3%">
|
||||
</colgroup>
|
||||
<tr class="listitem">
|
||||
<td class="listheader first" width="30" height="15" align="center">
|
||||
<a href="Javascript:top.oxid.admin.setSorting(document.search, '', 'isActive', '{{ nextSorting.isActive }}');document.search.submit();" class="listheader" title="{{ translate({ ident: "GENERAL_ACTIVE" }) }}">A</a>
|
||||
</td>
|
||||
<td class="listheader" width="30" height="15" align="center">
|
||||
<a href="Javascript:top.oxid.admin.setSorting(document.search, '', 'isTestConfig', '{{ nextSorting.isTestConfig }}');document.search.submit();" class="listheader" title="{{ translate({ ident: "D3UNZER_CONFIG_ISTESTCONFIG" }) }}">T</a>
|
||||
</td>
|
||||
<td class="listheader">
|
||||
<a href="Javascript:top.oxid.admin.setSorting(document.search, '', 'title', '{{ nextSorting.title }}');document.search.submit();" class="listheader">{{ translate({ ident: "GENERAL_TITLE" }) }}</a>
|
||||
</td>
|
||||
<td class="listheader" height="15">
|
||||
<a href="Javascript:top.oxid.admin.setSorting(document.search, '', 'heidelPayment', '{{ nextSorting.heidelPayment }}');document.search.submit();" class="listheader">{{ translate({ ident: "D3DYN_HEIDELPAY_PAYTYPE" }) }}</a>
|
||||
</td>
|
||||
<td class="listheader" colspan="2" height="15">
|
||||
{% if showChannel %}
|
||||
<a href="Javascript:top.oxid.admin.setSorting(document.search, '', 'channel', '{{ nextSorting.channel }}');document.search.submit();" class="listheader">{{ translate({ ident: "D3UNZER_CONFIG_CHANNEL" }) }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% set listclass = "listitem" %}
|
||||
{% for identifier, channel in channels %}
|
||||
{% if identifier == oxid %}
|
||||
{% set listclass = "listitem4" %}
|
||||
{% endif %}
|
||||
{% set channelId = channel.getId() %}
|
||||
{% set heidelPayment = channel.getPaymentType() %}
|
||||
<tr id="row.{{ loop.index }}">
|
||||
<td class="{{ listclass }} {% if channel.isActive() %} active{% endif %}" valign="top" height="15" title="{{ translate({ ident: "GENERAL_ACTIVE" }) }}">
|
||||
<div class="listitemfloating"> </div>
|
||||
</td>
|
||||
<td class="{{ listclass }} {% if channel.isTestConfig() %} active{% endif %}" valign="top" height="15" title="{{ translate({ ident: "D3UNZER_CONFIG_ISTESTCONFIG" }) }}">
|
||||
<div class="listitemfloating"> </div>
|
||||
</td>
|
||||
<td class="{{ listclass }}">
|
||||
<div class="listitemfloating">
|
||||
<a href="Javascript:top.oxid.admin.editThis('{{ channelId }}');"
|
||||
class="{{ listclass }}"
|
||||
>{{ channel.getTitle() }}</a></div>
|
||||
</td>
|
||||
<td class="{{ listclass }}" height="15">
|
||||
<div class="listitemfloating">
|
||||
<a href="Javascript:top.oxid.admin.editThis('{{ channelId }}');" class="{{ listclass }}">
|
||||
{{ translate({ ident: "D3_UNZER_CHANNEL_" ~ channel.getPaymentTypeIdent()|upper }) }}
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
{% if showChannel %}
|
||||
<td class="{{ listclass }}" height="15">
|
||||
<div class="listitemfloating">
|
||||
{{ channel.getChannel() }}
|
||||
</div>
|
||||
</td>
|
||||
{% endif %}
|
||||
<td class="{{ listclass }}"{% if false is same as(showChannel) %} colspan="2"{% endif %}>
|
||||
<a href="Javascript:top.oxid.admin.deleteThis('{{ channelId }}');"
|
||||
class="delete"
|
||||
id="del.{{ loop.index }}"
|
||||
title=""
|
||||
></a>
|
||||
</td>
|
||||
</tr>
|
||||
{% set listclass = "listitem" %}
|
||||
{% endfor %}
|
||||
|
||||
{% include "pagenavisnippet.html.twig" with {colspan: "6"} %}
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% include "pagetabsnippet.html.twig" %}
|
||||
|
||||
{% set emptyCapture %}
|
||||
<script type="text/javascript">
|
||||
{% set d3JavaScript %}
|
||||
if (parent.parent) {
|
||||
parent.parent.sShopTitle = "";
|
||||
parent.parent.sMenuItem = "Heidelpay";
|
||||
parent.parent.sMenuSubItem = "Channels verwalten";
|
||||
parent.parent.sWorkArea = "{{ _act }}";
|
||||
parent.parent.setTitle();
|
||||
}
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: d3JavaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
||||
{% include "bottomitem.html.twig" %}
|
211
views/twig/admin/channels/main.html.twig
Normal file
211
views/twig/admin/channels/main.html.twig
Normal file
@ -0,0 +1,211 @@
|
||||
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate} %}
|
||||
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet"
|
||||
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
||||
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
|
||||
crossorigin="anonymous"
|
||||
>
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet"
|
||||
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
|
||||
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
|
||||
crossorigin="anonymous"
|
||||
>
|
||||
|
||||
{#
|
||||
{{ script({ include: "js/libs/jquery.min.js", dynamic: __oxid_include_dynamic }) }}
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
|
||||
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
#}
|
||||
|
||||
<style>
|
||||
|
||||
.container {
|
||||
margin : 0;
|
||||
}
|
||||
|
||||
@media (min-width : 1200px) {
|
||||
.container {
|
||||
width : 970px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group label.control-label {
|
||||
text-align : left;
|
||||
margin-bottom : 5px;
|
||||
}
|
||||
|
||||
.form-group label.control-label span.d3helppanel {
|
||||
float : right;
|
||||
}
|
||||
|
||||
@media (max-width : 991px) {
|
||||
.form-group label.control-label span.d3helppanel {
|
||||
padding-left : 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group input.form-control {
|
||||
font-size : 14px;
|
||||
padding-left : 15px;
|
||||
}
|
||||
|
||||
.form-group input.form-control.d3number {
|
||||
width : 80px;
|
||||
display : inline-block;
|
||||
}
|
||||
|
||||
.form-group label.checkbox-inline {
|
||||
vertical-align : top;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="container">
|
||||
{% if basicLicenceInformation %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-warning">
|
||||
{{ basicLicenceInformation }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<form class="form-horizontal" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ currentChannel.getId() }}">
|
||||
<input type="hidden" name="editval[oxid]" value="{{ currentChannel.getId() }}">
|
||||
<input type="hidden" name="fnc" value="saveCurrentConfig">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassname() }}">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayActive">
|
||||
{{ translate({ ident: "GENERAL_ACTIVE" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_GENERAL_ACTIVE"), sHelpText: help_text("HELP_GENERAL_ACTIVE")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label class="checkbox-inline">
|
||||
<input type="hidden" name="editval[isActive]" value="0">
|
||||
<input type="checkbox" id="d3HeidelpayActive" name="editval[isActive]" value="1" {{ readonly }}{% if currentChannel.isActive() %} checked{% endif %}>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayTestConfig">
|
||||
{{ translate({ ident: "D3UNZER_CONFIG_ISTESTCONFIG" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_ISTESTCONFIG"), sHelpText: help_text("HELP_D3UNZER_CONFIG_ISTESTCONFIG")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label class="checkbox-inline">
|
||||
<input type="hidden" name="editval[isTestConfig]" value="0">
|
||||
<input type="checkbox" id="d3HeidelpayTestConfig" name="editval[isTestConfig]" value="1" {{ readonly }}{% if currentChannel.isTestConfig() %} checked{% endif %}>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayTitle">
|
||||
{{ translate({ ident: "GENERAL_TITLE" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_TITLE"), sHelpText: help_text("HELP_D3UNZER_CONFIG_TITLE")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input class="form-control"
|
||||
id="d3HeidelpayTitle"
|
||||
required
|
||||
type="text"
|
||||
maxlength="255"
|
||||
name="editval[title]"
|
||||
value="{{ currentChannel.getTitle() }}" {{ readonly }}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayPaymentType">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PAYTYPE" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_PAYMENTTYPE"), sHelpText: help_text("HELP_D3UNZER_CONFIG_PAYMENTTYPE")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control"
|
||||
id="d3HeidelpayPaymentType"
|
||||
name="editval[paymentType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PAYTYPE" }) }}"
|
||||
>
|
||||
{% set paymentTypeSelected = "0" %}
|
||||
{% for paymentId, heidelPayment in paymentTypeList %}
|
||||
<option value="{{ paymentId }}"{% if currentChannel.getPaymentTypeIdent() == paymentId %} selected{% set paymentTypeSelected = "1" %}{% endif %}>
|
||||
{{ translate({ ident: "D3_UNZER_CHANNEL_" ~ paymentId|upper }) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
{% if not paymentTypeSelected %}
|
||||
<option selected>
|
||||
{{ translate({ ident: "D3_UNZER_CHANNEL_NOTSELECTABLE" }) }}
|
||||
</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if showChannel %}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayChannel">
|
||||
{{ translate({ ident: "D3UNZER_CONFIG_CHANNEL" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_CHANNEL"), sHelpText: help_text("HELP_D3UNZER_CONFIG_CHANNEL")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input class="form-control"
|
||||
id="d3HeidelpayChannel"
|
||||
required
|
||||
type="text"
|
||||
maxlength="64"
|
||||
name="editval[channel]"
|
||||
value="{{ currentChannel.getChannel() }}" {{ readonly }}>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="alert alert-info" style="padding:5px;text-align:right;">
|
||||
<button class="btn btn-primary" type="submit">
|
||||
{{ translate({ ident: "GENERAL_SAVE" }) }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassname() }}">
|
||||
</form>
|
||||
|
||||
{% apply spaceless %}
|
||||
<a class="firstitem"
|
||||
id="btn.new"
|
||||
href="#"
|
||||
onClick="top.oxid.admin.editThis( -1 );return false"
|
||||
target="edit"
|
||||
>{{ translate({ ident: "D3UNZER_NEW_CONFIG_CHANNEL" }) }}</a>
|
||||
{% endapply %}
|
||||
|
||||
{% include "bottomnaviitem.html.twig" %}
|
||||
{% include "bottomitem.html.twig" %}
|
183
views/twig/admin/channels/new.html.twig
Normal file
183
views/twig/admin/channels/new.html.twig
Normal file
@ -0,0 +1,183 @@
|
||||
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate} %}
|
||||
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet"
|
||||
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
||||
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
|
||||
crossorigin="anonymous"
|
||||
>
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet"
|
||||
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
|
||||
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
|
||||
crossorigin="anonymous"
|
||||
>
|
||||
|
||||
<style>
|
||||
|
||||
.container {
|
||||
margin : 0;
|
||||
}
|
||||
|
||||
@media (min-width : 1200px) {
|
||||
.container {
|
||||
width : 970px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group label.control-label {
|
||||
text-align : left;
|
||||
margin-bottom : 5px;
|
||||
}
|
||||
|
||||
.form-group label.control-label span.d3helppanel {
|
||||
float : right;
|
||||
}
|
||||
|
||||
@media (max-width : 991px) {
|
||||
.form-group label.control-label span.d3helppanel {
|
||||
padding-left : 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group input.form-control {
|
||||
font-size : 14px;
|
||||
padding-left : 15px;
|
||||
}
|
||||
|
||||
.form-group input.form-control.d3number {
|
||||
width : 80px;
|
||||
display : inline-block;
|
||||
}
|
||||
|
||||
.form-group label.checkbox-inline {
|
||||
vertical-align : top;
|
||||
}
|
||||
|
||||
</style>
|
||||
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassname() }}">
|
||||
</form>
|
||||
<div class="container">
|
||||
{% if basicLicenceInformation %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-warning">
|
||||
{{ basicLicenceInformation }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<form class="form-horizontal" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="fnc" value="addNewConfig">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassname() }}">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayActive">
|
||||
{{ translate({ ident: "GENERAL_ACTIVE" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_GENERAL_ACTIVE"), sHelpText: help_text("HELP_GENERAL_ACTIVE")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label class="checkbox-inline">
|
||||
<input type="hidden" name="editval[isActive]" value="0">
|
||||
<input type="checkbox" id="d3HeidelpayActive" name="editval[isActive]" value="1" {{ readonly }}>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayTestConfig">
|
||||
{{ translate({ ident: "D3UNZER_CONFIG_ISTESTCONFIG" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_ISTESTCONFIG"), sHelpText: help_text("HELP_D3UNZER_CONFIG_ISTESTCONFIG")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label class="checkbox-inline">
|
||||
<input type="hidden" name="editval[isTestConfig]" value="0">
|
||||
<input type="checkbox" id="d3HeidelpayTestConfig" name="editval[isTestConfig]" value="1" {{ readonly }}>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayTitle">
|
||||
{{ translate({ ident: "GENERAL_TITLE" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_TITLE"), sHelpText: help_text("HELP_D3UNZER_CONFIG_TITLE")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input class="form-control"
|
||||
id="d3HeidelpayTitle"
|
||||
required
|
||||
type="text"
|
||||
maxlength="255"
|
||||
name="editval[title]"
|
||||
value="" {{ readonly }}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayPaymentType">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PAYTYPE" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_PAYMENTTYPE"), sHelpText: help_text("HELP_D3UNZER_CONFIG_PAYMENTTYPE")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<select class="form-control"
|
||||
id="d3HeidelpayPaymentType"
|
||||
name="editval[paymentType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PAYTYPE" }) }}"
|
||||
>
|
||||
{% for paymentId, heidelPayment in paymentTypeList %}
|
||||
<option value="{{ paymentId }}">
|
||||
{{ translate({ ident: "D3_UNZER_CHANNEL_" ~ paymentId|upper }) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if showChannel %}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3" for="d3HeidelpayChannel">
|
||||
{{ translate({ ident: "D3UNZER_CONFIG_CHANNEL" }) }}
|
||||
</label>
|
||||
<div class="col-md-1">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CONFIG_CHANNEL"), sHelpText: help_text("HELP_D3UNZER_CONFIG_CHANNEL")} %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input class="form-control"
|
||||
id="d3HeidelpayChannel"
|
||||
required
|
||||
type="text"
|
||||
maxlength="64"
|
||||
name="editval[channel]"
|
||||
value="" {{ readonly }}>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="alert alert-info" style="padding:5px;text-align:right;">
|
||||
<button class="btn btn-primary" type="submit">
|
||||
{{ translate({ ident: "GENERAL_SAVE" }) }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include "bottomitem.html.twig" %}
|
171
views/twig/admin/channels/payments.html.twig
Normal file
171
views/twig/admin/channels/payments.html.twig
Normal file
@ -0,0 +1,171 @@
|
||||
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate} %}
|
||||
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet"
|
||||
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
||||
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
|
||||
crossorigin="anonymous"
|
||||
>
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet"
|
||||
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
|
||||
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
|
||||
crossorigin="anonymous"
|
||||
>
|
||||
|
||||
<style>
|
||||
|
||||
.container{
|
||||
margin:0;
|
||||
}
|
||||
|
||||
@media (min-width:1200px){
|
||||
.container{
|
||||
width:970px;
|
||||
}
|
||||
}
|
||||
.legende {
|
||||
line-height : 32px;
|
||||
}
|
||||
|
||||
.legende .paytype{
|
||||
width:32px;
|
||||
height:32px;
|
||||
float:left;
|
||||
border:1px solid #ddd;
|
||||
}
|
||||
|
||||
.legende .paytype.act{
|
||||
background:#dff0d8;
|
||||
}
|
||||
|
||||
.legende .paytype.inact{
|
||||
background:#f2dede;
|
||||
}
|
||||
|
||||
.legende .paytype.used{
|
||||
background:#eee;
|
||||
}
|
||||
|
||||
.legende .paytypestatus{
|
||||
float:left;
|
||||
margin-left:5px;
|
||||
margin-right:30px;
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
.table-condensed th.headcenter{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.table-condensed td.paymethode{
|
||||
font-size:14px;
|
||||
line-height:32px;
|
||||
}
|
||||
|
||||
.paymethodeused{
|
||||
background:#eee;
|
||||
}
|
||||
|
||||
.table-condensed label.checkbox-inline{
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
</script>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{% if basicLicenceInformation %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-warning">
|
||||
{{ basicLicenceInformation }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col-xs-12">
|
||||
<div class="legende">
|
||||
<div class="paytype act"> </div>
|
||||
<div class="paytypestatus">{{ translate({ ident: "D3UNZER_CHANNELS_ASSIGNED" }) }}</div>
|
||||
<br>
|
||||
<div class="paytype inact"> </div>
|
||||
<div class="paytypestatus">{{ translate({ ident: "D3UNZER_CHANNELS_NOTASSIGNED" }) }}</div>
|
||||
<br>
|
||||
<div class="paytype used"> </div>
|
||||
<div class="paytypestatus">{{ translate({ ident: "D3UNZER_CONFIG_ALREADY_ASSIGNED_TO_OTHER_CONFIG" }) }}</div>
|
||||
<div style="clear:both;"></div>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<form class="form-horizontal" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ currentChannel.getId() }}">
|
||||
<input type="hidden" name="fnc" value="assignPayments">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassname() }}">
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<th>{{ translate({ ident: "D3UNZER_CONFIG_SHOPPAYMENT" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_CONFIG_CHANNELCONFIGURATION" }) }}</th>
|
||||
<th class="headcenter">{{ translate({ ident: "D3UNZER_CONFIG_ISASSIGNED" }) }}</th>
|
||||
</tr>
|
||||
{% for category, orderedItemlist in orderedList %}
|
||||
{% for configId, orderedItem in orderedItemlist %}
|
||||
<tr class="{{ attribute(cssContainer, category).trClass }}">
|
||||
<td class="paymethode">
|
||||
{{ orderedItem.oxidTitle }}
|
||||
</td>
|
||||
<td class="paymethode">
|
||||
{{ orderedItem.channelTitle }}
|
||||
</td>
|
||||
<td class="paymethode" style="text-align:center;">
|
||||
<label class="checkbox-inline">
|
||||
{% if orderedItem.isDisabled %}
|
||||
<input type="checkbox"
|
||||
style="margin-top:10px;"
|
||||
disabled
|
||||
{% if orderedItem.isAssigned %} checked{% endif %}
|
||||
>
|
||||
{% else %}
|
||||
<input type="hidden"
|
||||
name="editval[{{ orderedItem.oxidpaymentId }}]"
|
||||
value="0">
|
||||
<input type="checkbox"
|
||||
name="editval[{{ orderedItem.oxidpaymentId }}]"
|
||||
value="1"
|
||||
style="margin-top:10px;"
|
||||
{% if orderedItem.isAssigned %} checked{% endif %}
|
||||
>
|
||||
{% endif %}
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
<div class="form-group">
|
||||
<div class="alert alert-info" style="padding:5px;text-align:right;width:100%;">
|
||||
<button class="btn btn-primary" type="submit">
|
||||
{{ translate({ ident: "D3UNZER_CHANNELS_SAVE" }) }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassname() }}">
|
||||
</form>
|
||||
|
||||
{% include "bottomitem.html.twig" %}
|
304
views/twig/admin/order.html.twig
Normal file
304
views/twig/admin/order.html.twig
Normal file
@ -0,0 +1,304 @@
|
||||
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate} %}
|
||||
|
||||
{% if readonly %}
|
||||
{% set readonly = "readonly disabled" %}
|
||||
{% else %}
|
||||
{% set readonly = "" %}
|
||||
{% endif %}
|
||||
|
||||
{% set oCurr = edit.getOrderCurrency() %}
|
||||
{% set banktransferData = edit.getHeidelpayBankTransferData() %}
|
||||
|
||||
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="cur" value="{{ oCurr.id }}">
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
</form>
|
||||
|
||||
{% if oHeidelpayViewConfig.isModuleDemoVersion() %}
|
||||
<div class="extension_warning">{{ translate({ ident: "D3_UNZER_IS_DEMO" }) }}</div>
|
||||
{% endif %}
|
||||
{% if heidelpayTransactionMessage %}
|
||||
<div class="extension_error"> {{ heidelpayTransactionMessage }}</div>
|
||||
{% endif %}
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
{% if banktransferData %}
|
||||
<tr>
|
||||
<td valign="top" class="edittext" width="100%">
|
||||
<table border="0" width="100%" border="0" class="listTable box">
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<h2>{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_BANKTRANSFERDATA" }) }}</h2>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listitem">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_HOLDER" }) }}</td>
|
||||
<td class="listitem">{{ banktransferData.Holder }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listitem">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_IBAN" }) }}</td>
|
||||
<td class="listitem">{{ banktransferData.Iban }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listitem">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_BIC" }) }}</td>
|
||||
<td class="listitem">{{ banktransferData.Bic }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listitem">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_AMOUNT" }) }}</td>
|
||||
<td class="listitem">{{ banktransferData.Amount }} {{ banktransferData.Currency }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listitem">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_REASON" }) }}</td>
|
||||
<td class="listitem">{{ banktransferData.Reference }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listitem">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_UNIQUEID" }) }}</td>
|
||||
<td class="listitem">{{ banktransferData.UniqueID }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listitem">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_TRANSACTIONID" }) }}</td>
|
||||
<td class="listitem">{{ banktransferData.TransactionID }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td valign="top" class="edittext" width="100%">
|
||||
{% block admin_order_heidelpay_form %}
|
||||
|
||||
{# showing all transactions for this order #}
|
||||
{% set transactions = oView.getTransactions() %}
|
||||
{% set transactions = transactions.reverse() %}
|
||||
|
||||
{% if not empty(transactions) %}
|
||||
<table border="0" class="d3hptransactions box" id="d3hptransactions">
|
||||
<tr>
|
||||
<th colspan="3">{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_RESULT" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_DATE" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_CARDS" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_METHOD" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_PAYMENTTYPE" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_TXNID" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_UNIQUEID" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_SHORTID" }) }}</th>
|
||||
</tr>
|
||||
{% for index, transaction in transactions %}
|
||||
|
||||
{% set transactionLogReader = transaction.getTransactiondata() %}
|
||||
{% set sClassName = 'class="listitem"' %}
|
||||
{% set blTransactionSuccessfull = false %}
|
||||
{% set sAmount = transactionLogReader.getAmount() %}
|
||||
{% set sPaymentType = transactionLogReader.getPaymentcode()|substr(0, 2) %}
|
||||
{% set sPaymentMethod = transactionLogReader.getPaymentcode()|substr(3) %}
|
||||
{% set sUniqueId = transactionLogReader.getUniqueid() %}
|
||||
{% set criterionTags = transactionLogReader.getCriterionTags() %}
|
||||
{% if false == empty(sUniqueId) %}
|
||||
{% if loop.index0 "is" "odd" %}
|
||||
{% set sClassName = 'class="listitem2"' %}
|
||||
{% endif %}
|
||||
{% if transactionLogReader.getResult() == 'ACK' %}
|
||||
{% set blTransactionSuccessfull = true %}
|
||||
{% endif %}
|
||||
|
||||
{% if not blTransactionSuccessfull %}
|
||||
{% set sAmount = "<del>" ~ sAmount ~ "</del>" %}
|
||||
{% endif %}
|
||||
|
||||
{% if sPaymentMethod == 'PA' %}
|
||||
{% set sAmount = "(" ~ sAmount ~ ")" %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}"
|
||||
class="d3hpopen d3hpdisplay"><i class="fas fa-plus-circle d3fa-17x d3fa-color-disabled"></i></a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}" class="d3hpopen "
|
||||
title="{{ transactionLogReader.getResult() }}">
|
||||
<i class="fas d3fa-17x {% if blTransactionSuccessfull %} fa-check-circle d3fa-color-green{% else %} fa-times-circle d3fa-color-red{% endif %}"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}" class="d3hpopen">{{ transactionLogReader.getReason() }}</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}"
|
||||
class="d3hpopen">{{ transactionLogReader.getTimestamp() }}</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}" class="d3hpopen">
|
||||
{{ sAmount }} {{ transactionLogReader.getCurrency() }}
|
||||
</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}" class="d3hpopen">
|
||||
{{ translate({ ident: 'D3_UNZER_METHOD_' ~ sPaymentMethod }) }}
|
||||
({{ sPaymentMethod }})
|
||||
</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}" class="d3hpopen">
|
||||
{{ translate({ ident: 'D3_UNZER_PAYMENT_' ~ sPaymentType }) }}
|
||||
({{ sPaymentType }})
|
||||
</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}"
|
||||
class="d3hpopen">{{ transactionLogReader.getTransactionid() }}</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}"
|
||||
class="d3hpopen">{{ sUniqueId }}</a>
|
||||
</td>
|
||||
<td {{ sClassName }}>
|
||||
<a rel="d3{{ index }}" class="d3hpopen">{{ transactionLogReader.getShortid() }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% if criterionTags.count() > 0 %}
|
||||
<tr class="d3hphidden d3{{ index }}" data-visible="false">
|
||||
<td colspan="10" {{ sClassName }} style="text-align:left;">
|
||||
<div class="d3hpslider">
|
||||
<h4>{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_CRITERIONTAGS" }) }}</h4>
|
||||
<div style="overflow:auto;height: 140px;width: 960px;">
|
||||
<table width="100%">
|
||||
{% for criterionName, criterionValue in criterionTags %}
|
||||
{% set criterionClassname = "listitem" %}
|
||||
|
||||
{% if loop.index is even %}
|
||||
{% set criterionClassname = "listitem2" %}
|
||||
{% endif %}
|
||||
<tr >
|
||||
<td class="{{ criterionClassname }}" style="text-align:left;">{{ translate({ ident: criterionName, noerror: true }) }}:</td>
|
||||
<td class="{{ criterionClassname }}" style="text-align:left;">
|
||||
<div style="width: 666px;overflow-y: hidden;">{{ criterionValue }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr class="d3hphidden d3{{ index }}" data-visible="false">
|
||||
<td colspan="9" {{ sClassName }}>
|
||||
<div class="d3hpslider">
|
||||
<form action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
<div>
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="cur" value="{{ oCurr.id }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
<input type="hidden" name="fnc" value="runPaymentAction">
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="editval[oxorder__oxid]" value="{{ oxid }}">
|
||||
<input type="hidden" name="d3TransactionId" value="{{ index }}">
|
||||
<input type="hidden"
|
||||
name="d3TransactionUniqueId"
|
||||
value="{{ sUniqueId }}">
|
||||
<input type="hidden"
|
||||
id="paymentActiond3{{ index }}"
|
||||
name="paymentAction"
|
||||
value="">
|
||||
|
||||
</div>
|
||||
<ul class="hpactions">
|
||||
{% for button in oView.getActions(transactionLogReader) %}
|
||||
<li>
|
||||
<button name="{{ button.name }}" value="{{ button.value }}"
|
||||
{% if (button.disabled) or (transactionLogReader.getResult()) != 'ACK' %}disabled="disabled"{% endif %}
|
||||
rel="d3{{ index }}"
|
||||
class="d3hptransaction">{{ button.title }}</button>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="hpfieldset" id="fieldsetd3{{ index }}">
|
||||
<label class="d3hplabel">
|
||||
Betrag
|
||||
<input type="text"
|
||||
name="data[betrag]"
|
||||
value="{{ transactionLogReader.getAmount() }}">
|
||||
{{ edit.oxorder__oxcurrency.value }}
|
||||
</label>
|
||||
<label class="d3modcfg_btn icon">
|
||||
<input type="submit"
|
||||
id="submitd3{{ index }}"
|
||||
value="{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_SUBMIT" }) }}">
|
||||
<span></span>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
<td {{ sClassName }} valign="top">
|
||||
<a rel="d3{{ index }}" class="d3modcfg_icon d3hpclose action_minus_inactive"
|
||||
title="{{ translate({ ident: "CATEGORY_UPDATE_CLOSE" }) }}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% if oView.isBasicLicence() %}
|
||||
<div class="extension_warning">{{ translate({ ident: "D3_UNZER_RESTRICTIONINFO_ORDER" }) }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_IS_NOT_HEIDELPAY" }) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
jQuery(".d3hpopen").click(function () {
|
||||
current = jQuery(this);
|
||||
className = current.attr("rel");
|
||||
isVisible = jQuery("." + className).attr("data-visible");
|
||||
|
||||
if ("false" === isVisible) {
|
||||
jQuery("#d3hptransactions")
|
||||
.find(".d3hphidden." + className).show()
|
||||
.find('.d3hpslider').animate({height: "toggle"}, "slow");
|
||||
jQuery("." + className).attr("data-visible", 'true');
|
||||
} else {
|
||||
element = jQuery("#d3hptransactions")
|
||||
.find(".d3hphidden." + className);
|
||||
|
||||
element.find('.d3hpslider').animate({height: "toggle"}, "slow", function () {
|
||||
element.hide();
|
||||
});
|
||||
jQuery("." + className).attr("data-visible", 'false');
|
||||
}
|
||||
});
|
||||
jQuery(".d3hphidden, .d3hpslider").hide();
|
||||
var originalValue = "";
|
||||
jQuery("button.d3hptransaction").click(function () {
|
||||
var hiddenId = "#paymentAction" + jQuery(this).attr("rel");
|
||||
var submitId = "#submit" + jQuery(this).attr("rel");
|
||||
var fieldsetId = "#fieldset" + jQuery(this).attr("rel");
|
||||
jQuery(hiddenId).attr("name", jQuery(this).attr("name"));
|
||||
jQuery(hiddenId).attr("value", jQuery(this).attr("value"));
|
||||
|
||||
if (originalValue == "") {
|
||||
originalValue = jQuery(submitId).attr("value");
|
||||
}
|
||||
|
||||
jQuery(submitId).attr("value", jQuery(this).text() + " " + originalValue);
|
||||
jQuery(fieldsetId).show();
|
||||
return false;
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
||||
{% include "bottomnaviitem.html.twig" %}
|
||||
|
||||
{% include "@d3modcfg_lib/admin/inc/inc.html.twig" %}
|
221
views/twig/admin/order/mgw.html.twig
Normal file
221
views/twig/admin/order/mgw.html.twig
Normal file
@ -0,0 +1,221 @@
|
||||
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate} %}
|
||||
{% set oCurr = edit.getOrderCurrency() %}
|
||||
<style>
|
||||
input[type="number"], select {
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset;
|
||||
color: #555;
|
||||
min-height: 15px;
|
||||
line-height: 1.42857;
|
||||
padding: 3px;
|
||||
font-size: 12px;
|
||||
transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% if (readonly) or (hasBasicRestrictions) %}
|
||||
{% set readonly = "readonly disabled" %}
|
||||
{% else %}
|
||||
{% set readonly = "" %}
|
||||
{% endif %}
|
||||
|
||||
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="cur" value="{{ oCurr.id }}">
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
</form>
|
||||
|
||||
{% if messageFromHeidelpayModule %}
|
||||
<div class="errorbox"> {{ translate({ ident: messageFromHeidelpayModule, noerror: true }) }}</div>
|
||||
{% endif %}
|
||||
{% if paymentState %}
|
||||
|
||||
{% if hasBasicRestrictions %}
|
||||
<div class="messagebox"> {{ translate({ ident: "D3_UNZER_RESTRICTIONINFO" }) }}</div>
|
||||
{% endif %}
|
||||
|
||||
<div style="float: left;">
|
||||
<table>
|
||||
|
||||
{% set inlineStyle = "border:1px solid darkgoldenrod;color:darkgoldenrod;background-color: lightyellow;" %}
|
||||
{% if paymentState.isCompleted %}
|
||||
{% set inlineStyle = "border:1px solid darkgreen;color:darkgreen;background-color: lightgreen;" %}
|
||||
{% elseif paymentState.isCanceled %}
|
||||
{% set inlineStyle = "border:1px solid darkred;color:darkred;background-color: lightcoral;" %}
|
||||
{% elseif paymentState.isPartlyPaid %}
|
||||
{% set inlineStyle = "border:1px solid darkgoldenrod;color:darkgoldenrod;background-color: lightyellow;" %}
|
||||
{% endif %}
|
||||
|
||||
<tr>
|
||||
<th style="padding: 5px 10px;border:1px solid black;color:black;background-color: lightgrey;">Zahlungen:</th>
|
||||
<td style="padding: 5px 10px; {{ inlineStyle }}">{{ translate({ ident: "D3UNZER_MGW_PAYMENTSTATE_" ~ paymentState.stateName }) }}</td>
|
||||
</tr>
|
||||
|
||||
{% set shipments = payment.getShipments() %}
|
||||
{% if shipments|length %}
|
||||
{% for shipment in shipments %}
|
||||
{% set inlineStyle = "border:1px solid darkgoldenrod;color:darkgoldenrod;background-color: lightyellow;" %}
|
||||
{% set totallines = loop.length %}
|
||||
{% set linecount = totallines+1 %}
|
||||
|
||||
{% if shipment.isSuccess() %}
|
||||
{% set inlineStyle = "border:1px solid darkgreen;color:darkgreen;background-color: lightgreen;" %}
|
||||
{% elseif shipment.isError() %}
|
||||
{% set inlineStyle = "border:1px solid darkred;color:darkred;background-color: lightcoral;" %}
|
||||
{% elseif shipment.isPending() %}
|
||||
{% set inlineStyle = "border:1px solid darkgoldenrod;color:darkgoldenrod;background-color: lightyellow;" %}
|
||||
{% endif %}
|
||||
|
||||
{% set shpmPayment = shipment.getPayment() %}
|
||||
|
||||
<tr>
|
||||
{% if loop.index == 1 %}
|
||||
<th rowspan="{{ linecount }}" style="padding: 5px 10px; border:1px solid black;color:black;background-color: lightgrey;">
|
||||
Sendungen:
|
||||
</th>
|
||||
{% endif %}
|
||||
<td style="padding: 5px 10px; {{ inlineStyle }}">
|
||||
gesichert: {{ shipment.getAmount() }} {{ oCurr.sign }}<br>
|
||||
{{ shipment.getDate() }}<br>
|
||||
Rechn.nr.: {{ shpmPayment.getInvoiceId() }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<td style="padding: 5px 10px; border:1px solid black;color:black;background-color: white;">offen: {{ paymentState.remaining }} {{ oCurr.sign }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<table style="min-width:300px">
|
||||
<tr>
|
||||
<td>Payment-Id</td>
|
||||
<td>:</td>
|
||||
<td style="text-align: right;">{{ edit.getFieldData('oxtransid') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ translate({ ident: "D3UNZER_MGW_AMOUNT_CHARGED" }) }}</td>
|
||||
<td>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_MGW_AMOUNT_CHARGED"), sHelpText: help_text("HELP_D3UNZER_MGW_AMOUNT_CHARGED")} %}:</td>
|
||||
<td style="text-align: right;">{{ paymentState.charged }} {{ oCurr.sign }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ translate({ ident: "D3UNZER_MGW_AMOUNT_REMAINING" }) }}</td>
|
||||
<td>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_MGW_AMOUNT_REMAINING"), sHelpText: help_text("HELP_D3UNZER_MGW_AMOUNT_REMAINING")} %}:</td>
|
||||
<td style="text-align: right;">{{ paymentState.remaining }} {{ oCurr.sign }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ translate({ ident: "D3UNZER_MGW_AMOUNT_CANCELED" }) }}</td>
|
||||
<td>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_MGW_AMOUNT_CANCELED"), sHelpText: help_text("HELP_D3UNZER_MGW_AMOUNT_CANCELED")} %}:</td>
|
||||
<td style="text-align: right;">{{ paymentState.canceled }} {{ oCurr.sign }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ translate({ ident: "D3UNZER_MGW_AMOUNT_TOTAL" }) }}</td>
|
||||
<td>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_MGW_AMOUNT_TOTAL"), sHelpText: help_text("HELP_D3UNZER_MGW_AMOUNT_TOTAL")} %}:</td>
|
||||
<td style="text-align: right;">{{ paymentState.total }} {{ oCurr.sign }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% set transactions = paymentState.transactions %}
|
||||
<table style="width:98%">
|
||||
{% for transaction in transactions %}
|
||||
<tr>
|
||||
<td></td>
|
||||
<th style="border-bottom: 1px solid rgb(128,128,128)">Typ</th>
|
||||
<th style="border-bottom: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_AMOUNT" }) }}</th>
|
||||
<th style="border-bottom: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_SHORTID" }) }}</th>
|
||||
<th style="border-bottom: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_TRANSACTIONTIME" }) }}</th>
|
||||
<th style="border-bottom: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_ACTIONS" }) }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-right: 1px solid rgb(128,128,128)"> </td>
|
||||
<td>{{ translate({ ident: "D3UNZER_MGW_TRANSACTIONTYPE_" ~ transaction.type }) }}</td>
|
||||
<td>{{ transaction.formattedAmount }} {{ transaction.currency }}</td>
|
||||
<td>{{ transaction.shortid }}</td>
|
||||
<td>{{ transaction.timestamp }}</td>
|
||||
<td rowspan="3" style="border-right: 1px solid rgb(128,128,128)">
|
||||
{% for action in transaction.actions %}
|
||||
<form action="{{ oViewConf.getSelfLink() }}" method="post" {{ readonly }}>
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="cur" value="{{ oCurr.id }}">
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
<input type="hidden" name="resourceId" value="{{ transaction.id }}"/>
|
||||
<input type="hidden" name="action" value="{{ action }}"/>
|
||||
<input type="hidden" name="fnc" value="routeToAction"/>
|
||||
<label>
|
||||
{% if action == "cancelCharge" %}
|
||||
<select name="reasoncode">
|
||||
<option value="">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_REASONCODE_SELECTREASON" }) }}</option>
|
||||
<option value="CANCEL">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_REASONCODE_CANCEL" }) }}</option>
|
||||
<option value="RETURN">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_REASONCODE_RETURN" }) }}</option>
|
||||
<option value="CREDIT">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_REASONCODE_CREDIT" }) }}</option>
|
||||
</select>
|
||||
<input type="text" name="amount" value="{{ transaction.amount }}" {{ readonly }}/>
|
||||
{% elseif (action == 'charge') or (action == 'cancelAuthorize') %}
|
||||
<input type="text" name="amount" value="{{ transaction.amount }}" {{ readonly }}/>
|
||||
{% elseif action == "finalize" %}
|
||||
{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_UNIQUE_INVOICEID" }) }}
|
||||
<input type="text" name="invoiceid" value="" {{ readonly }}/>
|
||||
{% endif %}
|
||||
<button {{ readonly }}>{{ translate({ ident: "D3UNZER_MGW_TRANSACTIONTYPE_" ~ action }) }}</button>
|
||||
</label>
|
||||
</form>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-right: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_MESSAGE" }) }}</th>
|
||||
<td colspan="4">{{ transaction.message }}</td>
|
||||
</tr>
|
||||
{% if transaction.code %}
|
||||
<tr>
|
||||
<th style="border-right: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_CODE" }) }}</th>
|
||||
<td colspan="5" style="border-right: 1px solid rgb(128,128,128)">{{ transaction.code }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if transaction.iban %}
|
||||
<tr>
|
||||
<th style="border-right: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_IBAN" }) }}</th>
|
||||
<td colspan="5" style="border-right: 1px solid rgb(128,128,128)">{{ transaction.iban }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if transaction.bic %}
|
||||
<tr>
|
||||
<th style="border-right: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_BIC" }) }}</th>
|
||||
<td colspan="5" style="border-right: 1px solid rgb(128,128,128)">{{ transaction.bic }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if transaction.holder %}
|
||||
<tr>
|
||||
<th style="border-right: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_HOLDER" }) }}</th>
|
||||
<td colspan="5" style="border-right: 1px solid rgb(128,128,128)">{{ transaction.holder }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if transaction.descriptor %}
|
||||
<tr>
|
||||
<th style="border-right: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_DESCRIPTOR" }) }}</th>
|
||||
<td colspan="5" style="border-right: 1px solid rgb(128,128,128)">{{ transaction.descriptor }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if transaction.paymentReference %}
|
||||
<tr>
|
||||
<th style="border-right: 1px solid rgb(128,128,128)">{{ translate({ ident: "D3_UNZER_CONTROLLERS_ADMIN_ORDER_HEIDELPAY_PAYMENTREFERENCE" }) }}</th>
|
||||
<td colspan="5" style="border-right: 1px solid rgb(128,128,128)">{{ transaction.paymentReference }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td style="border-right: 1px solid rgb(128,128,128);"> </td>
|
||||
<td colspan="5" style="border-right: 1px solid rgb(128,128,128);border-bottom: 1px solid rgb(128,128,128);"> </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% include "bottomnaviitem.html.twig" %}
|
||||
|
||||
{% include "@d3modcfg_lib/admin/inc/inc.html.twig" %}
|
202
views/twig/admin/settings.html.twig
Normal file
202
views/twig/admin/settings.html.twig
Normal file
@ -0,0 +1,202 @@
|
||||
{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate} %}
|
||||
<style type="text/css">
|
||||
|
||||
td.edittext.disabled{ color:darkgrey; }
|
||||
|
||||
td.edittext.disabled input{ border:1px solid lightgray; }
|
||||
|
||||
td.edittext table.disabled,
|
||||
td.edittext legend.disabled{ color:darkgrey; }
|
||||
|
||||
table{ background-color:white; }
|
||||
.groupExp dl dt{
|
||||
font-weight:normal;
|
||||
width:35%;
|
||||
padding-left:10px;
|
||||
}
|
||||
|
||||
td.edittext fieldset,
|
||||
form fieldset{
|
||||
background:none;
|
||||
border:1px solid #ccc;
|
||||
padding:0 0 5px 5px;
|
||||
border-radius:3px;
|
||||
margin-bottom:2px;
|
||||
}
|
||||
form fieldset.active {
|
||||
border-color: #1fb71f;
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
th {
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% if readonly %}
|
||||
{% set readonly = "readonly disabled" %}
|
||||
{% else %}
|
||||
{% set readonly = "" %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Errors and Messages -->
|
||||
{% set hasMultilangConfigButNoSetting = oView.hasMultilangConfigButNoSetting() %}
|
||||
{% if hasMultilangConfigButNoSetting %}
|
||||
<fieldset>
|
||||
<div class="extension_error">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_HASMULTILANGCONFIGBUTNOSETTING" }) }}
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_HASMULTILANGCONFIGBUTNOSETTING"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_HASMULTILANGCONFIGBUTNOSETTING")} %}
|
||||
</div>
|
||||
<form action="{{ oViewConf.getSelfLink() }}" method="post" id="multipleLanguages">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
<input type="hidden" name="editlanguage" value="{{ editlanguage }}">
|
||||
<input type="hidden" name="fnc" value="">
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col width="50%">
|
||||
<col width="50%">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<span class="d3modcfg_btn fixed icon status_info" style="float:right;max-width:none;">
|
||||
<input type="submit" value="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_ALLOWMULTIPLELANGUAGES_REACTIVATE" }) }}"
|
||||
onclick="document.getElementById('multipleLanguages').fnc.value='resetAllowMultipleLanguages'">
|
||||
<span></span>
|
||||
</span>
|
||||
</td>
|
||||
<td align="center">
|
||||
<span class="d3modcfg_btn fixed icon status_info" style="max-width:none;">
|
||||
<input type="submit" class="edittext" value="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_REMOVEMULTIPLELANGUAGES" }) }}"
|
||||
onclick="document.getElementById('multipleLanguages').fnc.value='deleteMultiLangConfig'">
|
||||
<span></span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
|
||||
{% if oHeidelpayViewConfig.isModuleDemoVersion() %}
|
||||
{% set sDisableTestModus = 'disabled' %}
|
||||
<div class="extension_warning">{{ translate({ ident: "D3_UNZER_IS_DEMO" }) }}</div>
|
||||
{% endif %}
|
||||
{% if edit.getErrorMessage() %}
|
||||
<div class="extension_error">{{ edit.getErrorMessage() }}</div>
|
||||
{% endif %}
|
||||
{% if oView.hasOnlyBasicFunctions() %}
|
||||
{% set blBasicRestriction = "disabled" %}
|
||||
<div class="extension_warning">{{ translate({ ident: "D3_UNZER_RESTRICTIONINFO" }) }}</div>
|
||||
{% endif %}
|
||||
{% if blCurlMissing %}
|
||||
<span style="color: red; ">{{ translate({ ident: "D3DYN_HEIDELPAY_NOCURL" }) }}</span>
|
||||
{% endif %}
|
||||
|
||||
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
<input type="hidden" name="editlanguage" value="{{ editlanguage }}">
|
||||
</form>
|
||||
<form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink() }}" method="post">
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
<input type="hidden" name="fnc" value="">
|
||||
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||||
<input type="hidden" name="editval[d3_cfg_mod__oxid]" value="{{ oxid }}">
|
||||
<input type="hidden" name="editlanguage" value="{{ editlanguage }}">
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
<b>{{ translate({ ident: "D3DYN_HEIDELPAY_ACTIVE" }) }}</b>
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_ACTIVE"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_ACTIVE")} %}
|
||||
<input type="hidden" name="editval[d3_cfg_mod__oxactive]" value="0">
|
||||
<input type="checkbox"
|
||||
class="editinput"
|
||||
name="editval[d3_cfg_mod__oxactive]"
|
||||
value="1"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_ACTIVE" }) }}"
|
||||
{% if edit.d3_cfg_mod__oxactive.value == 1 %}checked{% endif %}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_TESTMOD_ACTIVE" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_TESTMOD_ACTIVE"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_TESTMOD_ACTIVE")} %}
|
||||
<input type="hidden" name="logtypes[8]" value="0" {{ sDisableTestModus }}>
|
||||
<input id="module_debug"
|
||||
class="editinput"
|
||||
type="checkbox"
|
||||
name="logtypes[8]"
|
||||
value="1"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_TESTMOD_ACTIVE" }) }}"
|
||||
{% if oView.getLogStatus('test', false) %}checked{% endif %}
|
||||
{{ sDisableTestModus }}
|
||||
>
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_INTERFACE_TYPE" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_INTERFACE_TYPE"), sHelpText: help_text("HELP_D3UNZER_INTERFACE_TYPE")} %}
|
||||
<select
|
||||
name="value[d3_cfg_mod__heidelpayInterfaceType]"
|
||||
title="{{ translate({ ident: "D3UNZER_INTERFACE_TYPE" }) }}">
|
||||
<option value="ngw"
|
||||
{% if (heidelpayInterfaceType == "ngw") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3UNZER_INTERFACE_TYPE_NGW" }) }}
|
||||
</option>
|
||||
<option value="mgw"
|
||||
{% if (heidelpayInterfaceType == "mgw") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3UNZER_INTERFACE_TYPE_MGW" }) }}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{% include "@d3unzer/admin/settings/" ~ heidelpayInterfaceType ~ ".html.twig" %}
|
||||
<tr><td colspan="2"><br></td></tr>
|
||||
<tr>
|
||||
<td class="edittext"></td>
|
||||
<td class="edittext">
|
||||
<br>
|
||||
<input type="submit"
|
||||
class="edittext"
|
||||
name="save"
|
||||
value="{{ translate({ ident: "GENERAL_SAVE" }) }}"
|
||||
onClick="document.myedit.fnc.value='save'" {{ readonly }}>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{% if blRefreshList %}
|
||||
{{ script({ add: "top.oxid.admin.updateList();", dynamic: __oxid_include_dynamic }) }}
|
||||
{% endif %}
|
||||
|
||||
<script type="text/javascript">
|
||||
function _groupExp(el) {
|
||||
var _cur = el.parentNode;
|
||||
if (_cur.className == "exp") {
|
||||
_cur.className = "";
|
||||
} else {
|
||||
_cur.className = "exp";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
{% include "@d3modcfg_lib/admin/inc/inc.html.twig" %}
|
||||
{# NOTE: open div for oxids closing div ^^ #}
|
||||
<div>
|
||||
{% include "bottomitem.html.twig" %}
|
164
views/twig/admin/settings/mgw.html.twig
Normal file
164
views/twig/admin/settings/mgw.html.twig
Normal file
@ -0,0 +1,164 @@
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_SETTINGS_MGW_DEBUGMODE" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_SETTINGS_MGW_DEBUGMODE"), sHelpText: help_text("HELP_D3UNZER_SETTINGS_MGW_DEBUGMODE")} %}
|
||||
<input type="hidden" name="logtypes[7]" value="0">
|
||||
<input id="module_debug"
|
||||
class="editinput"
|
||||
type="checkbox"
|
||||
name="logtypes[7]"
|
||||
value="1"
|
||||
title="{{ translate({ ident: "D3UNZER_SETTINGS_MGW_DEBUGMODE" }) }}"
|
||||
{% if oView.getLogStatus('debug', false) %}checked{% endif %}
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_INTERNALLOG" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_INTERNALLOG"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_INTERNALLOG")} %}
|
||||
{% set oLogSet = oView.getLogSet() %}
|
||||
{% include "@d3modcfg_lib/admin/inc/loglevel_form.html.twig" with {oLogSet: oLogSet, oModule: false} %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<fieldset title="{{ translate({ ident: "D3DYN_HEIDELPAY_LOGIN_LIVE_HEADER" }) }}">
|
||||
<legend>
|
||||
<b>{{ translate({ ident: "D3UNZER_LOGIN_MGW_HEADER" }) }}</b>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_LOGIN_MGW_HEADER"), sHelpText: help_text("HELP_D3UNZER_LOGIN_MGW_HEADER")} %}
|
||||
</legend>
|
||||
<table style="width: 50%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_SETTINGS_MGW_PRIVATE" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__mgwPrivateKey]"
|
||||
id="d3_cfg_mod__mgwPrivateKey"
|
||||
value="{{ edit.getValue('mgwPrivateKey') }}"
|
||||
title="{{ translate({ ident: "D3UNZER_SETTINGS_MGW_PRIVATE" }) }}"
|
||||
style="width: 100%"
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_SETTINGS_MGW_PUBLIC" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__mgwPublicKey]"
|
||||
id="d3_cfg_mod__mgwPublicKey"
|
||||
value="{{ edit.getValue('mgwPublicKey') }}"
|
||||
title="{{ translate({ ident: "D3UNZER_SETTINGS_MGW_PUBLIC" }) }}"
|
||||
style="width: 100%"
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><br></td></tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<fieldset>
|
||||
<legend><strong>{{ translate({ ident: "D3DYN_HEIDELPAY_EXTENDED_SETTINGS" }) }}</strong></legend>
|
||||
<table cellspacing="5" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE")} %}
|
||||
<select class="edittext"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sTransType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE" }) }}">
|
||||
<option value="auth">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT" }) }}</option>
|
||||
<option value="preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sTransType") == "preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE" }) }}
|
||||
</option>
|
||||
<option value="auth_but_foreign_preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sTransType") == "auth_but_foreign_preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_FOREIGNRESERVE" }) }}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL")} %}
|
||||
<select class="edittext"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sVATransType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL" }) }}">
|
||||
<option value="auth">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT" }) }}</option>
|
||||
<option value="preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sVATransType") == "preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE" }) }}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
<label for="showSepaGuranteedCustomerFormular">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_SHOWSEPAGURANTEEDCUSTOMERFORMULAR" }) }}</label>
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_SHOWSEPAGURANTEEDCUSTOMERFORMULAR"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_SHOWSEPAGURANTEEDCUSTOMERFORMULAR")} %}
|
||||
<input type="hidden" value="0" name="value[d3_cfg_mod__showSepaGuranteedCustomerFormular]"/>
|
||||
<input id="showSepaGuranteedCustomerFormular" value="1" type="checkbox" name="value[d3_cfg_mod__showSepaGuranteedCustomerFormular]"
|
||||
{% if (edit.getValue("showSepaGuranteedCustomerFormular")) %}checked{% endif %}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
<label for="dontShowDirectDebitMandateCheckbox">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_DONTSHOWDIRECTDEBITMANDATECHECKBOX" }) }}</label>
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_DONTSHOWDIRECTDEBITMANDATECHECKBOX"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_DONTSHOWDIRECTDEBITMANDATECHECKBOX")} %}
|
||||
<input type="hidden" value="0" name="value[d3_cfg_mod__dontShowDirectDebitMandateCheckbox]"/>
|
||||
<input id="dontShowDirectDebitMandateCheckbox" value="1" type="checkbox" name="value[d3_cfg_mod__dontShowDirectDebitMandateCheckbox]"
|
||||
{% if (edit.getValue("dontShowDirectDebitMandateCheckbox")) %}checked{% endif %}>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<fieldset>
|
||||
<legend><strong>{{ translate({ ident: "D3UNZER_WEBHOOKS_HEADLINE" }) }}</strong>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_UNZER_WEBHOOK"), sHelpText: help_text("HELP_D3DYN_UNZER_WEBHOOK")} %}</legend>
|
||||
{% if not empty(registeredWebhooks) %}
|
||||
<table style="padding: 0; width: 100%; border-spacing: unset; border: 0">
|
||||
<tr>
|
||||
<th>{{ translate({ ident: "D3UNZER_WEBHOOKS_HEADLINE_URL" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_WEBHOOKS_HEADLINE_EVENTS" }) }}</th>
|
||||
<th>{{ translate({ ident: "D3UNZER_WEBHOOKS_HEADLINE_ID" }) }}</th>
|
||||
</tr>
|
||||
{% for webhook in registeredWebhooks %}
|
||||
<tr>
|
||||
<td class="edittext">{{ webhook.getUrl() }}</td>
|
||||
<td class="edittext">{{ webhook.getEvent() }}</td>
|
||||
<td class="edittext">{{ webhook.getId() }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
<span style="display: inline-block; color: darkred; font-weight: bold; width: 100%; text-align: center">{{ translate({ ident: "D3UNZER_WEBHOOKS_NOWEBHOOKREGISTERED" }) }}</span>
|
||||
{% endif %}
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
565
views/twig/admin/settings/ngw.html.twig
Normal file
565
views/twig/admin/settings/ngw.html.twig
Normal file
@ -0,0 +1,565 @@
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset title="{{ translate({ ident: "D3DYN_HEIDELPAY_LOGIN_LIVE_HEADER" }) }}" {% if edit.getLogStatus('test') == 0 %} class="active"{% endif %}>
|
||||
<legend>
|
||||
<b>{{ translate({ ident: "D3DYN_HEIDELPAY_LOGIN_LIVE_HEADER" }) }}</b>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_LOGIN_LIVE_HEADER"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_LOGIN_LIVE_HEADER")} %}
|
||||
</legend>
|
||||
<table cellspacing="5" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_SECURITYSENDER" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sSecuritySender]"
|
||||
id="d3_cfg_mod__d3heidelpay_sSecuritySender"
|
||||
value="{{ edit.getValue('d3heidelpay_sSecuritySender') }}"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_SECURITYSENDER" }) }}"
|
||||
style="width:230px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_USERID" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sUserID]"
|
||||
id="d3_cfg_mod__d3heidelpay_sUserID"
|
||||
value="{{ edit.getValue('d3heidelpay_sUserID') }}"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_USERID" }) }}"
|
||||
style="width:230px">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_PASSWORD" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sPassword]"
|
||||
id="d3_cfg_mod__d3heidelpay_sPassword"
|
||||
value="{{ edit.getValue('d3heidelpay_sPassword') }}"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_PASSWORD" }) }}"
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
<td>
|
||||
<fieldset title="{{ translate({ ident: "D3DYN_HEIDELPAY_LOGIN_TEST_HEADER" }) }}" {% if edit.getLogStatus('test') == 1 %} class="active"{% endif %}>
|
||||
<legend>
|
||||
<b>{{ translate({ ident: "D3DYN_HEIDELPAY_LOGIN_TEST_HEADER" }) }}</b>{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_LOGIN_TEST_HEADER"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_LOGIN_TEST_HEADER")} %}
|
||||
</legend>
|
||||
<table cellspacing="5" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_SECURITYSENDER" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sSecuritySenderTest]"
|
||||
id="d3_cfg_mod__d3heidelpay_sSecuritySenderTest"
|
||||
value="{{ edit.getValue('d3heidelpay_sSecuritySenderTest') }}"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_SECURITYSENDER" }) }}"
|
||||
style="width:230px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_USERID" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sUserIDTest]"
|
||||
id="d3_cfg_mod__d3heidelpay_sUserID"
|
||||
value="{{ edit.getValue('d3heidelpay_sUserIDTest') }}"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_USERID" }) }}"
|
||||
style="width:230px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_PASSWORD" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sPasswordTest]"
|
||||
id="d3_cfg_mod__d3heidelpay_sPasswordTest"
|
||||
value="{{ edit.getValue('d3heidelpay_sPasswordTest') }}"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_PASSWORD" }) }}"
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><br></td></tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="groupExp">
|
||||
<div>
|
||||
<a href="#" onclick="_groupExp(this);return false;"
|
||||
class="rc"><b>{{ translate({ ident: "D3DYN_HEIDELPAY_EXTENDED_SETTINGS" }) }}</b></a>
|
||||
<dl>
|
||||
<dd>
|
||||
<table cellspacing="5" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE")} %}
|
||||
<select class="edittext"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sTransType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE" }) }}">
|
||||
<option value="auth">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT" }) }}</option>
|
||||
<option value="preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sTransType") == "preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE" }) }}
|
||||
</option>
|
||||
<option value="auth_but_foreign_preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sTransType") == "auth_but_foreign_preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_FOREIGNRESERVE" }) }}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
<label for="d3_cfg_mod__d3heidelpay_blCardsUseRG">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_CARDS_USE_RG" }) }}
|
||||
</label>
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_CARDS_USE_RG"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_CARDS_USE_RG")} %}
|
||||
<input type="hidden"
|
||||
name="value[d3_cfg_mod__d3heidelpay_blCardsUseRG]"
|
||||
value="0">
|
||||
<input type="checkbox"
|
||||
class="editinput"
|
||||
id="d3_cfg_mod__d3heidelpay_blCardsUseRG"
|
||||
name="value[d3_cfg_mod__d3heidelpay_blCardsUseRG]"
|
||||
value="1"
|
||||
{% if edit.getValue('d3heidelpay_blCardsUseRG') == 1 %}checked{% endif %}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECTDEBIT" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECTDEBIT"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECTDEBIT")} %}
|
||||
<select class="edittext"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sDDTransType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE" }) }}">
|
||||
<option value="auth">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT" }) }}</option>
|
||||
<option value="preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sDDTransType") == "preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE" }) }}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL")} %}
|
||||
<select class="edittext"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sVATransType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL" }) }}">
|
||||
<option value="auth">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT" }) }}</option>
|
||||
<option value="preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sVATransType") == "preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE" }) }}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext {{ blBasicRestriction }}">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_MASTERPASS" }) }}
|
||||
</td>
|
||||
<td class="edittext {{ blBasicRestriction }}">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_MASTERPASS"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_MASTERPASS")} %}
|
||||
<select class="edittext"
|
||||
name="value[d3_cfg_mod__d3heidelpay_sWTTransType]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_MASTERPASS" }) }}" {{ blBasicRestriction }}>
|
||||
<option value="auth">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT" }) }}</option>
|
||||
<option value="preauth"
|
||||
{% if (edit.getValue("d3heidelpay_sWTTransType") == "preauth") %}selected{% endif %}>
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE" }) }}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_STOREDDATA" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_STOREDDATA"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_STOREDDATA")} %}
|
||||
<input type="hidden"
|
||||
name="value[d3_cfg_mod__d3heidelpay_blShowStoredHPData]"
|
||||
value="0">
|
||||
<input type="checkbox"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_blShowStoredHPData]"
|
||||
value="1"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_STOREDDATA" }) }}"
|
||||
{% if (edit.getValue('d3heidelpay_blShowStoredHPData')) %}checked{% endif %}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMINIMUM" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMINIMUM"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMINIMUM")} %}
|
||||
{% set easyCreditLimitMinimum = edit.getValue('easyCreditLimitMinimum') %}
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
style="width:100px;"
|
||||
name="value[d3_cfg_mod__easyCreditLimitMinimum]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMINIMUM" }) }}"
|
||||
value="{{ easyCreditLimitMinimum|default("200") }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMAXIMUM" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMAXIMUM"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMAXIMUM")} %}
|
||||
{% set easyCreditLimitMaximum = edit.getValue('easyCreditLimitMaximum') %}
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
style="width:100px;"
|
||||
name="value[d3_cfg_mod__easyCreditLimitMaximum]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_EASYCREDITLIMITMAXIMUM" }) }}"
|
||||
value="{{ easyCreditLimitMaximum|default("5000") }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMINIMUM" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMINIMUM"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMINIMUM")} %}
|
||||
{% set invoiceSecuredLimitMinimum = edit.getValue('invoiceSecuredLimitMinimum') %}
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
style="width:100px;"
|
||||
name="value[d3_cfg_mod__invoiceSecuredLimitMinimum]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMINIMUM" }) }}"
|
||||
value="{{ invoiceSecuredLimitMinimum|default("10") }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMAXIMUM" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMAXIMUM"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMAXIMUM")} %}
|
||||
{% set invoiceSecuredLimitMaximum = edit.getValue('invoiceSecuredLimitMaximum') %}
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
style="width:100px;"
|
||||
name="value[d3_cfg_mod__invoiceSecuredLimitMaximum]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_INVOICESECUREDLIMITMAXIMUM" }) }}"
|
||||
value="{{ invoiceSecuredLimitMaximum|default("1000") }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext" colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_ORDER_EXECUTE_POST_FIELDS" }) }}
|
||||
</td>
|
||||
<td class="edittext" style="vertical-align: top;">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_ORDER_EXECUTE_POST_FIELDS"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_ORDER_EXECUTE_POST_FIELDS")} %}
|
||||
<textarea rows="5" cols="40"
|
||||
name="value[d3_cfg_mod__d3heidelpay_orderExecutePostFields]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_ORDER_EXECUTE_POST_FIELDS" }) }}">{{ edit.getValue('d3_cfg_mod__d3heidelpay_orderExecutePostFields') }}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_ADDITIONAL_URL_PARAMETER" }) }}
|
||||
</td>
|
||||
<td class="edittext" style="vertical-align: top;">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_ADDITIONAL_URL_PARAMETER"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_ADDITIONAL_URL_PARAMETER")} %}
|
||||
<textarea rows="5" cols="40"
|
||||
name="value[d3_cfg_mod__d3heidelpay_additionalUrlParameter]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_ADDITIONAL_URL_PARAMETER" }) }}">{{ edit.getValue('d3_cfg_mod__d3heidelpay_additionalUrlParameter') }}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_CURLTIMEOUT" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_CURLTIMEOUTSEK"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_CURLTIMEOUTSEK")} %}
|
||||
{% set iCurlTimeOut = edit.getValue('d3heidelpay_iCurlTimeOut') %}
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
style="width:100px;"
|
||||
name="value[d3_cfg_mod__d3heidelpay_iCurlTimeOut]"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_CURLTIMEOUT" }) }}"
|
||||
value="{{ iCurlTimeOut|default("50") }}"> {{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_CURLTIMEOUTSEK" }) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_CSSPATH" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_CSSPATH"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_CSSPATH")} %}
|
||||
|
||||
{% set cssClass = 'fa-times-circle d3fa-17x d3fa-color-red' %}
|
||||
{% if oHeidelpayViewConfig.existIFrameCSSFile() %}
|
||||
{% set cssClass = 'fa-check-circle d3fa-17x d3fa-color-green' %}
|
||||
{% endif %}
|
||||
<label class="fas {{ cssClass }}"></label>
|
||||
<a class="editinput"
|
||||
href="{{ oHeidelpayViewConfig.getIFrameCSSFileURL() }}"
|
||||
target="d3heidelpaycssfile">{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_CSSPATH_LINK" }) }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><br></td></tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="groupExp">
|
||||
<div>
|
||||
<a href="#" onclick="_groupExp(this);return false;"
|
||||
class="rc"><b>{{ translate({ ident: "D3DYN_HEIDELPAY_LOG_AND_SECURITY" }) }}</b></a>
|
||||
<dl>
|
||||
<dd>
|
||||
<table cellspacing="5" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_SHOWERRORTEXTS" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_SHOWERRORTEXTS"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_SHOWERRORTEXTS")} %}
|
||||
<input type="hidden"
|
||||
name="value[d3_cfg_mod__d3heidelpay_blServiceErrors]"
|
||||
value="0">
|
||||
<input type="checkbox"
|
||||
class="editinput"
|
||||
name="value[d3_cfg_mod__d3heidelpay_blServiceErrors]"
|
||||
value="1"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_SHOWERRORTEXTS" }) }}"
|
||||
{% if (edit.getValue('d3heidelpay_blServiceErrors')) %}checked{% endif %}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_INTERNALLOG" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_INTERNALLOG"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_INTERNALLOG")} %}
|
||||
<select name="loglevel" class="edittext"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_INTERNALLOG" }) }}">
|
||||
<option value="userdefined">{{ translate({ ident: "D3_CFG_LOG_TYPE_USERDEFINED" }) }}</option>
|
||||
<option value="error" {% if oView.getLogStatus('error') %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_ERROR" }) }}</option>
|
||||
<option value="warning" {% if oView.getLogStatus('warning') %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_WARNING" }) }}</option>
|
||||
<option value="notice" {% if oView.getLogStatus('notice') %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_NOTICE" }) }}</option>
|
||||
<option value="info" {% if oView.getLogStatus('info') %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_INFO" }) }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_DIFFERENCE_IN_ORDER_ERRRORMAIL" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_DIFFERENCE_IN_ORDER_ERRRORMAIL"), sHelpText: help_text("HELP_D3UNZER_DIFFERENCE_IN_ORDER_ERRRORMAIL")} %}
|
||||
{% set statusemail = edit.getValue('d3heidelpay_oxtransstatuserrormail') %}
|
||||
{% if false == statusemail %}
|
||||
{% set statusemail = actshopobj.oxshops__oxowneremail.value %}
|
||||
{% endif %}
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
style="width:220px;"
|
||||
name="value[d3_cfg_mod__d3heidelpay_oxtransstatuserrormail]"
|
||||
title="{{ translate({ ident: "D3UNZER_DIFFERENCE_IN_ORDER_ERRRORMAIL" }) }}"
|
||||
value="{{ statusemail }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_DIFFERENCE_IN_ORDER_ERRRORSTATUS" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_DIFFERENCE_IN_ORDER_ERRRORSTATUS"), sHelpText: help_text("HELP_D3UNZER_DIFFERENCE_IN_ORDER_ERRRORSTATUS")} %}
|
||||
{% set transstatuserror = edit.getValue('d3heidelpay_oxtransstatuserror') %}
|
||||
{% if false == transstatuserror %}
|
||||
{% set transstatuserror = 'ERROR' %}
|
||||
{% endif %}
|
||||
<input type="text"
|
||||
class="editinput"
|
||||
style="width:220px;"
|
||||
name="value[d3_cfg_mod__d3heidelpay_oxtransstatuserror]"
|
||||
title="{{ translate({ ident: "D3UNZER_DIFFERENCE_IN_ORDER_ERRRORSTATUS" }) }}"
|
||||
value="{{ transstatuserror }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_CARDTYPE_TIMEOUT" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_CARDTYPE_TIMEOUT"), sHelpText: help_text("HELP_D3UNZER_CARDTYPE_TIMEOUT")} %}
|
||||
{% set cardtypetimeout = edit.getValue('d3heidelpay_cardtypetimeout') %}
|
||||
{% if false == cardtypetimeout %}
|
||||
{% set cardtypetimeout = '600' %}
|
||||
{% endif %}
|
||||
<input type="number"
|
||||
class="editinput"
|
||||
style="width:120px;"
|
||||
name="value[d3_cfg_mod__d3heidelpay_cardtypetimeout]"
|
||||
title="{{ translate({ ident: "D3UNZER_CARDTYPE_TIMEOUT" }) }}"
|
||||
value="{{ cardtypetimeout }}">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_CURLTIMEOUTSEK" }) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_ALLOWMULTIPLELANGUAGES" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3DYN_HEIDELPAY_PARAM_ALLOWMULTIPLELANGUAGES"), sHelpText: help_text("HELP_D3DYN_HEIDELPAY_PARAM_ALLOWMULTIPLELANGUAGES")} %}
|
||||
<input type="hidden"
|
||||
name="config[bool][d3hp_allowMultipleLanguages]"
|
||||
value="0">
|
||||
<input type="checkbox"
|
||||
class="editinput"
|
||||
name="config[bool][d3hp_allowMultipleLanguages]"
|
||||
value="1"
|
||||
title="{{ translate({ ident: "D3DYN_HEIDELPAY_PARAM_ALLOWMULTIPLELANGUAGES" }) }}"
|
||||
{% if (oView.getShopConfigVar('d3hp_allowMultipleLanguages')) %}checked{% endif %}>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><br></td></tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="groupExp">
|
||||
<div>
|
||||
<a href="#" onclick="_groupExp(this);return false;"
|
||||
class="rc"><b>{{ translate({ ident: "D3UNZER_SETTINGS_NOTIFY_LABEL" }) }}</b></a>
|
||||
<dl>
|
||||
<dd>
|
||||
<p class="warning wrap">{{ translate({ ident: "D3UNZER_SETTINGS_NOTIFYURL_INFO" }) }}</p>
|
||||
<hr>
|
||||
<label>
|
||||
{{ translate({ ident: "D3UNZER_SETTINGS_NOTIFYURL" }) }}
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_SETTINGS_NOTIFYURL"), sHelpText: help_text("HELP_D3UNZER_SETTINGS_NOTIFYURL")} %}
|
||||
<br>
|
||||
<input class="edittext" type="text" value="{{ oView.getNotifyUrl() }}" readonly size="{{ oView.getNotifyUrl()|count_characters }}"/>
|
||||
</label>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="groupExp">
|
||||
<div>
|
||||
<a href="#" onclick="_groupExp(this);return false;"
|
||||
class="rc"><b>{{ translate({ ident: "D3UNZER_SETTINGS_FOR_IDEAL_AND_P24_CRONJOB" }) }}</b></a>
|
||||
<dl>
|
||||
<dt>
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_sD3HpHFOrderPendingTime" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_sD3HpHFOrderPendingTime"), sHelpText: help_text("HELP_D3UNZER_sD3HpHFOrderPendingTime")} %}
|
||||
<input size="5"
|
||||
name="value[d3_cfg_mod__sD3HpHFOrderPendingTime]"
|
||||
value="{{ edit.getValue('d3_cfg_mod__sD3HpHFOrderPendingTime') }}"
|
||||
title="{{ translate({ ident: "D3UNZER_sD3HpHFOrderPendingTime" }) }}"
|
||||
type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_sD3HpHFOrderLimit" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_sD3HpHFOrderLimit"), sHelpText: help_text("HELP_D3UNZER_sD3HpHFOrderLimit")} %}
|
||||
<input size="5" name="value[d3_cfg_mod__sD3HpHFOrderLimit]"
|
||||
value="{{ edit.getValue('d3_cfg_mod__sD3HpHFOrderLimit') }}"
|
||||
title="{{ translate({ ident: "D3UNZER_sD3HpHFOrderLimit" }) }}"
|
||||
type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_sD3HpHFOrderCancelType" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_sD3HpHFOrderCancelType"), sHelpText: help_text("HELP_D3UNZER_sD3HpHFOrderCancelType")} %}
|
||||
{% set currentCancelType = edit.getValue('d3_cfg_mod__sD3HpHFOrderCancelType') %}
|
||||
<select name="value[d3_cfg_mod__sD3HpHFOrderCancelType]"
|
||||
title="{{ translate({ ident: "D3UNZER_sD3HpHFOrderCancelType" }) }}">
|
||||
<option value="PLEASE_CHOOSE"{% if currentCancelType == '' %} selected{% endif %}>{{ translate({ ident: "D3UNZER_sD3HpHFOrderCancelType_PLEASE_CHOOSE" }) }}</option>
|
||||
<option value="CANCEL_ORDER"{% if currentCancelType === 'CANCEL_ORDER' %} selected{% endif %}>{{ translate({ ident: "D3UNZER_sD3HpHFOrderCancelType_CANCEL_ORDER" }) }}</option>
|
||||
<option value="DELETE_ORDER"{% if currentCancelType === 'DELETE_ORDER' %} selected{% endif %}>{{ translate({ ident: "D3UNZER_sD3HpHFOrderCancelType_DELETE_ORDER" }) }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
{{ translate({ ident: "D3UNZER_blD3HpHFSetZeroOrderNumber" }) }}
|
||||
</td>
|
||||
<td class="edittext">
|
||||
{% include "inputhelp.html.twig" with {sHelpId: help_id("HELP_D3UNZER_blD3HpHFSetZeroOrderNumber"), sHelpText: help_text("HELP_D3UNZER_blD3HpHFSetZeroOrderNumber")} %}
|
||||
<input name="value[d3_cfg_mod__blD3HpHFSetZeroOrderNumber]"
|
||||
value="0" type="hidden">
|
||||
<input name="value[d3_cfg_mod__blD3HpHFSetZeroOrderNumber]"
|
||||
value="1"
|
||||
type="checkbox"{% if edit.getValue('d3_cfg_mod__blD3HpHFSetZeroOrderNumber') %} checked{% endif %}
|
||||
title="{{ translate({ ident: "D3UNZER_blD3HpHFSetZeroOrderNumber" }) }}">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</dt>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
16
views/twig/apex/banktransferdata.html.twig
Normal file
16
views/twig/apex/banktransferdata.html.twig
Normal file
@ -0,0 +1,16 @@
|
||||
<div class="alert alert-info">
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_INFOTEXT1" }) }}
|
||||
<br/>
|
||||
<span>{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_INFOTEXT2" }) }}</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_ACCOUNTHOLDER" }) }} {{ oPrePaymentData.Holder }}<br/>
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_IBAN" }) }} {{ oPrePaymentData.Iban }}<br/>
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_BIC" }) }} {{ oPrePaymentData.Bic }}<br/>
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_AMOUNT" }) }} {{ oPrePaymentData.Amount }} {{ oPrePaymentData.Currency }}
|
||||
<br/>
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_REASON" }) }} {{ oPrePaymentData.Reference }}
|
||||
</p>
|
||||
</div>
|
12
views/twig/apex/cc_input.html.twig
Normal file
12
views/twig/apex/cc_input.html.twig
Normal file
@ -0,0 +1,12 @@
|
||||
{% capture append = "oxidBlock_content" %}
|
||||
{# ordering steps #}
|
||||
{% include "page/checkout/inc/steps.html.twig" with {active: 4} %}
|
||||
<div class="card card-default">
|
||||
<div class="card-header text-center">{{ translate({ ident: "D3UNZER_CC_INPUT_TITLENR" }) }}</div>
|
||||
<div id="payment" class="card-body">
|
||||
{% include oView.d3GetAfterStepTemplate() %}
|
||||
</div>
|
||||
</div>
|
||||
{{ insert_tracker({title: template_title}) }}
|
||||
{% endcapture %}
|
||||
{% include "layout/page.html.twig" %}
|
51
views/twig/apex/forms/birthdate.html.twig
Normal file
51
views/twig/apex/forms/birthdate.html.twig
Normal file
@ -0,0 +1,51 @@
|
||||
{% set parameterName = d3hpPaymentFormular.parameter %}
|
||||
|
||||
{% if isset(attribute(d3HeidelpayB2BParameters, parameterName)) %}
|
||||
{% set d3hpPaymentFormularValue = attribute(d3HeidelpayB2BParameters, parameterName) %}
|
||||
{% elseif isset(d3hpPaymentFormular.value) %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormular.value %}
|
||||
{% elseif "NOT" empty(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% set d3hpPaymentFormularValue = oxcmp_user.getFieldData(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% elseif "NOT" empty(d3hpPaymentFormular.standard) %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormular.standard %}
|
||||
{% endif %}
|
||||
|
||||
{% set birthdateFormAttributes %}
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.attributes %}
|
||||
{{ attributeName }}="{{ attributeValue }}"
|
||||
{% endfor %}
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.translationAttributes %}
|
||||
{{ attributeName }}="{{ translate({ ident: attributeValue, noerror: 1 }) }}"
|
||||
{% endfor %}
|
||||
{% endset %}
|
||||
|
||||
<div class="row oxDate form-group{% if d3hpPaymentFormular.registrationType %} {{ d3hpPaymentFormular.registrationType }}{% endif %}">
|
||||
<label class="control-label col-sm-12 col-lg-3 {% if in_array('required', d3hpPaymentFormular.attributes) %} req{% endif %}">
|
||||
{{ translate({ ident: d3hpPaymentFormular.name }) }}
|
||||
</label>
|
||||
<div class="col-sm-3 col-lg-3">
|
||||
<input class="oxDay form-control" name="d3heidelpay[{{ sPaymentID }}][{{ d3hpPaymentFormular.parameter }}][day]"
|
||||
{{ birthdateFormAttributes }}
|
||||
value="{% if d3hpPaymentFormularValue.day %}{{ d3hpPaymentFormularValue.day }}{% endif %}"
|
||||
placeholder="{{ translate({ ident: "DAY" }) }}" type="text" maxlength="4" class="form-control" >
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-3">
|
||||
<select class="oxMonth form-control" name="d3heidelpay[{{ sPaymentID }}][{{ d3hpPaymentFormular.parameter }}][month]"
|
||||
{{ birthdateFormAttributes }}
|
||||
>
|
||||
<option value="" label="-">-</option>
|
||||
{% for month in 1..13 %}
|
||||
<option value="{{ loop.index0 }}"
|
||||
{% if d3hpPaymentFormularValue.month == loop.index %} selected="selected" {% endif %}>
|
||||
{{ translate({ ident: "MONTH_NAME_" ~ loop.index }) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3 col-lg-3">
|
||||
<input class="oxYear form-control" name="d3heidelpay[{{ sPaymentID }}][{{ d3hpPaymentFormular.parameter }}][year]" type="text"
|
||||
value="{% if d3hpPaymentFormularValue.year %}{{ d3hpPaymentFormularValue.year }}{% endif %}"
|
||||
{{ birthdateFormAttributes }}
|
||||
maxlength="4" placeholder="{{ translate({ ident: "YEAR" }) }}">
|
||||
</div>
|
||||
</div>
|
25
views/twig/apex/forms/radio.html.twig
Normal file
25
views/twig/apex/forms/radio.html.twig
Normal file
@ -0,0 +1,25 @@
|
||||
{% set parameterName = d3hpPaymentFormular.parameter %}
|
||||
|
||||
{% if isset(d3hpPaymentFormular.value) %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormular.value %}
|
||||
{% elseif "NOT" empty(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% set d3hpPaymentFormularValue = oxcmp_user.getFieldData(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% endif %}
|
||||
<div class="row form-group{% if d3hpPaymentFormular.registrationType %} {{ d3hpPaymentFormular.registrationType }}{% endif %}">
|
||||
<div class="radio col-lg-12 offset-lg-3{% if in_array('required', d3hpPaymentFormular.attributes) %} req{% endif %}">
|
||||
<label class="radio-inline">
|
||||
<input type="radio"
|
||||
{% if isset(attribute(d3HeidelpayB2BParameters, parameterName)) and attribute(d3HeidelpayB2BParameters, parameterName) == d3hpPaymentFormularValue %}checked{% endif %}
|
||||
name="d3heidelpay[{{ sPaymentID }}][{{ d3hpPaymentFormular.parameter }}]"
|
||||
value="{% if d3hpPaymentFormularValue %}{{ d3hpPaymentFormularValue }}{% endif %}"
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.attributes %}
|
||||
{{ attributeName }}="{{ attributeValue }}"
|
||||
{% endfor %}
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.translationAttributes %}
|
||||
{{ attributeName }}="{{ translate({ ident: attributeValue, noerror: 1 }) }}"
|
||||
{% endfor %}
|
||||
>
|
||||
{{ translate({ ident: d3hpPaymentFormular.name }) }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
44
views/twig/apex/forms/select.html.twig
Normal file
44
views/twig/apex/forms/select.html.twig
Normal file
@ -0,0 +1,44 @@
|
||||
{% set parameterName = d3hpPaymentFormular.parameter %}
|
||||
|
||||
{% if isset(attribute(d3HeidelpayB2BParameters, parameterName)) %}
|
||||
{% set d3hpPaymentFormularValue = attribute(d3HeidelpayB2BParameters, parameterName) %}
|
||||
{% elseif isset(d3hpPaymentFormular.value) %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormular.value %}
|
||||
{% elseif "NOT" empty(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% set d3hpPaymentFormularValue = oxcmp_user.getFieldData(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% elseif "NOT" empty(d3hpPaymentFormular.standard) %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormular.standard %}
|
||||
{% endif %}
|
||||
|
||||
<div class="row form-group{% if d3hpPaymentFormular.registrationType %} {{ d3hpPaymentFormular.registrationType }}{% endif %}">
|
||||
<label class="control-label col-xs-12 col-lg-3 {% if in_array('required', d3hpPaymentFormular.attributes) %} req{% endif %}"
|
||||
for="d3heidelpay_apex_select_{{ paymentmethod.oxpayments__oxid.value }}"
|
||||
>
|
||||
{{ translate({ ident: d3hpPaymentFormular.name }) }}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<select id="d3heidelpay_apex_select_{{ paymentmethod.oxpayments__oxid.value }}" class="form-control" name="d3heidelpay[{{ sPaymentID }}][{{ d3hpPaymentFormular.parameter }}]"
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.attributes %}
|
||||
{{ attributeName }}="{{ attributeValue }}"
|
||||
{% endfor %}
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.translationAttributes %}
|
||||
{{ attributeName }}="{{ translate({ ident: attributeValue, noerror: 1 }) }}"
|
||||
{% endfor %}
|
||||
class="form-control" >
|
||||
{% if d3hpPaymentFormular.standard %}
|
||||
<option value="{{ d3hpPaymentFormular.standard }}">
|
||||
{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_" ~ d3hpPaymentFormular.standard }) }}
|
||||
</option>
|
||||
{% endif %}
|
||||
{% for key, item in d3hpPaymentFormular.values %}
|
||||
{% if d3hpPaymentFormular.standard != item %}
|
||||
<option value="{{ item }}"
|
||||
{% if d3hpPaymentFormularValue == item %} selected="selected" {% endif %}
|
||||
>
|
||||
{{ translate({ ident: "D3UNZER_PAYMENT_COMPANY_" ~ item }) }}
|
||||
</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
38
views/twig/apex/forms/text.html.twig
Normal file
38
views/twig/apex/forms/text.html.twig
Normal file
@ -0,0 +1,38 @@
|
||||
{% set parameterName = d3hpPaymentFormular.parameter %}
|
||||
|
||||
{% if isset(attribute(d3HeidelpayB2BParameters, parameterName)) %}
|
||||
{% set d3hpPaymentFormularValue = attribute(d3HeidelpayB2BParameters, parameterName) %}
|
||||
{% elseif isset(d3hpPaymentFormular.d3hpPaymentFormularValue) %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormular.d3hpPaymentFormularValue %}
|
||||
{% elseif isset(d3hpPaymentFormular.d3hpPaymentFormularValueTranslation) %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormular.d3hpPaymentFormularValueTranslation|translate %}
|
||||
{% elseif "NOT" empty(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% set d3hpPaymentFormularValue = oxcmp_user.getFieldData(d3hpPaymentFormular.valueFromUser) %}
|
||||
{% elseif "NOT" empty(d3hpPaymentFormular.valuesFromUser) %}
|
||||
{% for valueFromUser in d3hpPaymentFormular.valuesFromUser %}
|
||||
{% if loop.index > 1 %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormularValue ~ ' ' %}
|
||||
{% endif %}
|
||||
{% set d3hpPaymentFormularValue = d3hpPaymentFormularValue ~ oxcmp_user.getFieldData("valueFromUser") %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<div class="row form-group {% if d3hpPaymentFormular.registrationType %}{{ d3hpPaymentFormular.registrationType }}{% endif %}">
|
||||
<label class="control-label col-lg-3{% if in_array('required', d3hpPaymentFormular.attributes) %} req{% endif %}"
|
||||
for="d3HeidelpayBToBBillPurchase_{{ sPaymentID }}_{{ d3hpPaymentFormular.parameter }}">
|
||||
{{ translate({ ident: d3hpPaymentFormular.name }) }}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input class="form-control" type="text"
|
||||
id="d3HeidelpayBToBBillPurchase_{{ sPaymentID }}_{{ d3hpPaymentFormular.parameter }}"
|
||||
name="d3heidelpay[{{ sPaymentID }}][{{ d3hpPaymentFormular.parameter }}]"
|
||||
value="{% if d3hpPaymentFormularValue %}{{ d3hpPaymentFormularValue }}{% endif %}"
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.attributes %}
|
||||
{{ attributeName }}="{{ attributeValue }}"
|
||||
{% endfor %}
|
||||
{% for attributeName, attributeValue in d3hpPaymentFormular.translationAttributes %}
|
||||
{{ attributeName }}="{{ translate({ ident: attributeValue, noerror: 1 }) }}"
|
||||
{% endfor %}
|
||||
>
|
||||
</div>
|
||||
</div>
|
5
views/twig/apex/forms/title.html.twig
Normal file
5
views/twig/apex/forms/title.html.twig
Normal file
@ -0,0 +1,5 @@
|
||||
<div class="row form-group {% if d3hpPaymentFormular.registrationType %}{{ d3hpPaymentFormular.registrationType }}{% endif %}">
|
||||
<h4 class="col-lg-11 offset-lg-1">
|
||||
{{ translate({ ident: d3hpPaymentFormular.name }) }}
|
||||
</h4>
|
||||
</div>
|
17
views/twig/apex/messages.html.twig
Normal file
17
views/twig/apex/messages.html.twig
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="alert alert-danger">
|
||||
{% if d3heidelpayErrorCodes.OXCODE %}
|
||||
{% set langident = d3heidelpayErrorCodes.OXCODE %}
|
||||
{{ translate({ ident: "d3heidelpay" ~ langident }) }}
|
||||
{% else %}
|
||||
{{ translate({ ident: "D3PAYMENT_EXT_NOTEXT" }) }}
|
||||
{% endif %}
|
||||
<br>
|
||||
|
||||
{% if d3heidelpayErrorCodes.OXTYPE == "1" %} {# Fehlerkategorie: Eingabefehler #}
|
||||
{{ translate({ ident: "D3PAYMENT_EXT_CHECK" }) }}
|
||||
{% elseif d3heidelpayErrorCodes.OXTYPE == "2" %} {# Fehlerkategorie: Technischer Fehler #}
|
||||
{{ translate({ ident: "D3PAYMENT_EXT_TRYLATER" }) }}
|
||||
{% elseif d3heidelpayErrorCodes.OXTYPE == "3" %} {# Fehlerkategorie: Betrugsversuch? #}
|
||||
{{ translate({ ident: "D3PAYMENT_EXT_CHANGEPAYMENT" }) }}
|
||||
{% endif %}
|
||||
</div>
|
28
views/twig/apex/mgw/banktransferdata.html.twig
Normal file
28
views/twig/apex/mgw/banktransferdata.html.twig
Normal file
@ -0,0 +1,28 @@
|
||||
<div class="alert alert-info">
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_INFOTEXT1" }) }}
|
||||
<br/>
|
||||
<span>{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_INFOTEXT2" }) }}</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if oPrePaymentData.holder %}
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_ACCOUNTHOLDER" }) }} {{ oPrePaymentData.holder }}<br/>
|
||||
{% endif %}
|
||||
{% if oPrePaymentData.iban %}
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_IBAN" }) }} {{ oPrePaymentData.iban }}<br/>
|
||||
{% endif %}
|
||||
{% if oPrePaymentData.bic %}
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_BIC" }) }} {{ oPrePaymentData.bic }}<br/>
|
||||
{% endif %}
|
||||
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_AMOUNT" }) }} {{ oPrePaymentData.formattedAmount }} {{ oPrePaymentData.currency }}
|
||||
<br/>
|
||||
{% if oPrePaymentData.descriptor %}
|
||||
{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_REASON" }) }} {{ oPrePaymentData.descriptor }}
|
||||
{% endif %}
|
||||
{% if oPrePaymentData.paymentReference %}
|
||||
{{ oPrePaymentData.paymentReference }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
72
views/twig/apex/mgw/missingfields.html.twig
Normal file
72
views/twig/apex/mgw/missingfields.html.twig
Normal file
@ -0,0 +1,72 @@
|
||||
{% if isset(d3UnzerMissingUserParameter[oxidPaymentId]) %}
|
||||
<style>
|
||||
.d3UnzerMissingFields .oxDate .row label {
|
||||
position: absolute;
|
||||
left: -3000px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="d3UnzerMissingFields">
|
||||
{% for oxidFieldname, unzerFieldname in d3UnzerMissingUserParameter[oxidPaymentId] %}
|
||||
{% if oxidFieldname == 'oxbirthdate' %}
|
||||
<div class="form-group oxDate">
|
||||
<label class="control-label col-12 req">
|
||||
{{ translate({ ident: "BIRTHDATE", suffix: "COLON" }) }}
|
||||
</label>
|
||||
<div class="row">
|
||||
<div class="col col-3">
|
||||
<label for="unzerDayField">{{ translate({ ident: "DAY" }) }}</label>
|
||||
<input id="unzerDayField"
|
||||
class="oxDay form-control"
|
||||
name="d3UnzerMissingUserData[{{ sPaymentID }}][{{ oxidFieldname }}][day]"
|
||||
type="text"
|
||||
maxlength="2" value=""
|
||||
placeholder="{{ translate({ ident: "DAY" }) }}" required>
|
||||
</div>
|
||||
<div class="col col-6">
|
||||
<label for="unzerMonthField">{{ translate({ ident: "MONTH" }) }}</label>
|
||||
<select id="unzerMonthField"
|
||||
class="oxMonth form-control"
|
||||
name="d3UnzerMissingUserData[{{ sPaymentID }}][{{ oxidFieldname }}][month]"
|
||||
required="">
|
||||
<option value="" label="-">-</option>
|
||||
{% for month in 1..12 %}
|
||||
<option value="{{ loop.index }}">
|
||||
{{ translate({ ident: "MONTH_NAME_" ~ loop.index }) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col col-3">
|
||||
<label for="unzerYearField">{{ translate({ ident: "YEAR" }) }}</label>
|
||||
<input id="unzerYearField"
|
||||
class="oxYear form-control js-oxValidate js-oxValidate_notEmpty"
|
||||
name="d3UnzerMissingUserData[{{ sPaymentID }}][{{ oxidFieldname }}][year]"
|
||||
type="text"
|
||||
maxlength="4" value=""
|
||||
placeholder="{{ translate({ ident: "YEAR" }) }}" required="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 req" for="{{ sPaymentID }}_{{ oxidFieldname }}">
|
||||
{{ translate({ ident: "D3UNZER_PAYMENT_MGW_MISSINGFIELD_INPUT_" ~ oxidFieldname, suffix: "COLON" }) }}
|
||||
</label>
|
||||
<div class="col-lg-5">
|
||||
<input id="{{ sPaymentID }}_{{ oxidFieldname }}"
|
||||
type="text"
|
||||
class="form-control js-oxValidate js-oxValidate_notEmpty"
|
||||
size="20"
|
||||
data-validation-required-message="{{ translate({ ident: "ERROR_MESSAGE_INPUT_NOTALLFIELDS" }) }}"
|
||||
required
|
||||
minlength="1"
|
||||
name="d3UnzerMissingUserData[{{ sPaymentID }}][{{ oxidFieldname }}]"
|
||||
value="">
|
||||
<div class="help-block"></div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
10
views/twig/apex/order/easycreditcriterions.html.twig
Normal file
10
views/twig/apex/order/easycreditcriterions.html.twig
Normal file
@ -0,0 +1,10 @@
|
||||
{% if easyCreditInformations %}
|
||||
<tr>
|
||||
<th>{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_ACCRUINGINTEREST" }) }}</th>
|
||||
<td>{{ format_price(easyCreditInformations.criterion_easycredit_accruinginterest, { currency: currency }) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_TOTALAMOUNT" }) }}</th>
|
||||
<td>{{ format_price(easyCreditInformations.criterion_easycredit_totalamount, { currency: currency }) }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
190
views/twig/apex/order_iframe.html.twig
Normal file
190
views/twig/apex/order_iframe.html.twig
Normal file
@ -0,0 +1,190 @@
|
||||
{{ script({ include: oViewConf.getModuleUrl('d3unzer', 'out/src/js/jquery.simple.timer/jquery.simple.timer.js'): 'out/src/js/jquery.simple.timer/jquery.simple.timer.js'), dynamic: __oxid_include_dynamic }) }}
|
||||
|
||||
{% set payment = oView.getPayment() %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(payment) %}
|
||||
{% set cardTypeTimeOut = oHeidelpayViewConfig.getHeidelpayConfVar('cardtypetimeout') %}
|
||||
{% if false == cardTypeTimeOut %}
|
||||
{% set cardTypeTimeOut = "600" %}
|
||||
{% endif %}
|
||||
|
||||
<form id="paymentFrameForm">
|
||||
<div class="d3timeOut">
|
||||
{{ translate({ ident: "D3UNZER_TIMEOUT_TIMER" }) }}
|
||||
<div class='timer' data-seconds-left="{{ cardTypeTimeOut }}"></div>
|
||||
</div>
|
||||
{% if isThreeDSecure %}
|
||||
{% set o3DSecure = oHeidelpayViewConfig.get3dSecureResponse() %}
|
||||
{% set iframeUrl = o3DSecure.sRedirectURL %}
|
||||
{% for key, value in o3DSecure.aRedirectRarams %}
|
||||
<input type="hidden" name="{{ key }}" value="{{ value }}">
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% set iframeUrl = oHeidelpayViewConfig.getHeidelpayNgwIFrameUrl(oHeidelPayment) %}
|
||||
{% endif %}
|
||||
|
||||
{# <input type="hidden" name="PROCESSING.RECOVERABLE" value="TRUE"/> #}
|
||||
|
||||
{% if iframeUrl %}
|
||||
<iframe id="paymentFrameIframe" src="{{ iframeUrl }}" frameborder="0" scrolling="no">
|
||||
Your Browser doesn\'t support iFrames
|
||||
</iframe>
|
||||
{% endif %}
|
||||
|
||||
{% if payment.oxpayments__oxlongdesc.value %}
|
||||
<div class="alert alert-info">
|
||||
{{ payment.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="card bg-light cart-buttons">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<a href="{{ seo_url({ ident: oViewConf.getSelfLink() ~ "cl=order" }) }}" class="btn btn-outline-dark float-left prevStep submitButton largeButton" id="userBackStepBottom"><i class="fa fa-caret-left"></i> {{ translate({ ident: "D3UNZER_ORDER_PAGE_BACKSTEPT" }) }}</a>
|
||||
</div>
|
||||
{% if iframeUrl %}
|
||||
<div class="col-12 col-md-6 text-right">
|
||||
<button id="paymentNextStepBottom" class="btn btn-primary pull-right submitButton largeButton nextStep" name="userform" type="submit">{{ translate({ ident: "D3UNZER_ORDER_PAGE_NEXTSTEP" }) }} <i class="fa fa-caret-right"></i></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
{% if iframeUrl %}
|
||||
{% set emptyCapture %}
|
||||
<script type="text/javascript">
|
||||
{% set d3JavaScript %}
|
||||
var targetOrigin = getDomainFromUrl('{{ iframeUrl }}');
|
||||
|
||||
// ### Sending postMessages ###
|
||||
var paymentFrameForm = document.getElementById('paymentFrameForm');
|
||||
var paymentFrameIframe = document.getElementById('paymentFrameIframe');
|
||||
|
||||
// Add an event listener that will execute the sendMessage() function
|
||||
// when the send button is clicked.
|
||||
if (paymentFrameForm.addEventListener) { // W3C DOM
|
||||
paymentFrameForm.addEventListener('submit', sendMessage);
|
||||
} else if (paymentFrameForm.attachEvent) { // IE DOM
|
||||
paymentFrameForm.attachEvent('onsubmit', sendMessage);
|
||||
}
|
||||
|
||||
// A function to handle sending messages.
|
||||
function sendMessage(e) {
|
||||
|
||||
{% if isHeidelpayDebugMode %}
|
||||
console.log("sendMessage");
|
||||
{% endif %}
|
||||
|
||||
// Prevent any default browser behaviour.
|
||||
if (e.preventDefault) {
|
||||
e.preventDefault();
|
||||
} else {
|
||||
e.returnValue = false;
|
||||
}
|
||||
|
||||
// save the form data in an object
|
||||
var data = {};
|
||||
for (var i = 0, len = paymentFrameForm.length; i < len; ++i) {
|
||||
var input = paymentFrameForm[i];
|
||||
if (input.name) {
|
||||
data[input.name] = input.value;
|
||||
}
|
||||
}
|
||||
{% if isHeidelpayDebugMode %}
|
||||
console.log(targetOrigin);
|
||||
console.log(data);
|
||||
{% endif %}
|
||||
|
||||
// Send a json message with the form data to the iFrame receiver window.
|
||||
paymentFrameIframe.contentWindow.postMessage(JSON.stringify(data), targetOrigin);
|
||||
}
|
||||
|
||||
// ### Utils ###
|
||||
// extract protocol, domain and port from url
|
||||
function getDomainFromUrl(url) {
|
||||
var arr = url.split("/");
|
||||
return arr[0] + "//" + arr[2];
|
||||
}
|
||||
|
||||
// Setup an event listener that calls receiveMessage() when the window
|
||||
// receives a new MessageEvent.
|
||||
if (window.addEventListener) { // W3C DOM
|
||||
window.addEventListener('message', receiveMessage);
|
||||
} else if (window.attachEvent) { // IE DOM
|
||||
window.attachEvent('onmessage', receiveMessage);
|
||||
}
|
||||
|
||||
// ### Receiving postMessages ###
|
||||
function receiveMessage(e) {
|
||||
{% if isHeidelpayDebugMode %}
|
||||
console.log('recieveMessage');
|
||||
{% endif %}
|
||||
// Check to make sure that this message came from the correct domain.
|
||||
if (e.origin !== targetOrigin) {
|
||||
{% if isHeidelpayDebugMode %}
|
||||
console.log('recieveMessage -> out');
|
||||
{% endif %}
|
||||
return;
|
||||
}
|
||||
$('#d3HeidelpayWait').modal('hide');
|
||||
$('#paymentNextStepBottom').attr('disabled', false);
|
||||
// Do something with the data
|
||||
{% if isHeidelpayDebugMode %}
|
||||
console.log(e.data);
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
$('#paymentFrameForm').submit(function () {
|
||||
//$('#d3HeidelpayWait').dialog('open');
|
||||
$('#d3HeidelpayWait').modal({
|
||||
keyboard: false,
|
||||
backdrop: 'static'
|
||||
});
|
||||
$('#paymentNextStepBottom').attr('disabled', true);
|
||||
});
|
||||
|
||||
$('.timer').startTimer({
|
||||
onComplete: function (element) {
|
||||
element.addClass('isComplete');
|
||||
$('#paymentFrameForm').find('input, button, textarea').attr('disabled', 'disabled');
|
||||
$('#d3HeidelpayOutOfTime').modal({
|
||||
keyboard: false,
|
||||
backdrop: 'static'
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{% endif %}
|
||||
{{ script({ add: d3JavaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
||||
<div id="d3HeidelpayWait" class="modal" tabindex="-1" role="dialog" aria-hidden="true" aria-labelledby="d3HeidelpayWaitTitle">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-info">{{ translate({ ident: "D3UNZER_SENDING_FORMULAR" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="d3HeidelpayOutOfTime" class="modal" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
{% set cardTypeTimeOut = cardTypeTimeOut|date_format("i:s") %}
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-danger">{{ translate({ ident: "D3UNZER_OUTOFTIME_FORMULAR", args: cardTypeTimeOut }) }}</div>
|
||||
<div class="well well-sm text-center">
|
||||
<a href="{{ seo_url({ ident: oViewConf.getOrderLink() }) }}"
|
||||
class="btn btn-default prevStep submitButton largeButton">{{ translate({ ident: "D3UNZER_OUTOFTIME_LINK" }) }}</a>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
89
views/twig/apex/payment/btobbillpurchase.html.twig
Normal file
89
views/twig/apex/payment/btobbillpurchase.html.twig
Normal file
@ -0,0 +1,89 @@
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
|
||||
{% if empty(attribute(d3hpPaymentFormulars, sPaymentID)) %}
|
||||
{% set blD3HeidelpayAllowBtoBBillPurchase = false %}
|
||||
{% endif %}
|
||||
|
||||
{% block heidelpay_btobbillpurchase %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blD3HeidelpayAllowBtoBBillPurchase %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
<img src="{{ sImageUrl }}unzer_invoice.png" alt="{{ paymentmethod.oxpayments__oxdesc.value }}" style="vertical-align: middle;">
|
||||
</label>
|
||||
{% if false == blD3HeidelpayAllowBtoBBillPurchase %}
|
||||
<dfn class="d3HeidelayBToBBillpurchaseNotice alert alert-danger desc">{{ translate({ ident: "D3UNZER_PAYMENT_BTOBBILLPURCHASESECURED_NOTICE", args: iD3HeidelpayBtoBBillPurchaseLimits }) }}</dfn>
|
||||
{% endif %}
|
||||
{% if false == blD3HeidelpayHasSameAdresses %}
|
||||
<dfn class="alert alert-danger d3HeidelaySameAddressNotice">{{ translate({ ident: "D3UNZER_PAYMENT_NOTSAMEADDRESS_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if blD3HeidelpayAllowBtoBBillPurchase %}
|
||||
{% for d3hpPaymentID, d3hpPaymentFormular in attribute(d3hpPaymentFormulars, sPaymentID) %}
|
||||
{% include "@d3unzer/apex/forms/" ~ d3hpPaymentFormular.type ~ ".html.twig" with {d3hpPaymentFormular: d3hpPaymentFormular, d3HeidelpayB2BParameters: attribute(d3HeidelpayParameters, sPaymentID)} %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info">{{ translate({ ident: "COMPLETE_MARKED_FIELDS" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
function toggleD3HpB2Bpurchase() {
|
||||
var currentClass = $("input.d3heidelpayB2BPurchase:checked").val();
|
||||
$('.registered, .not_registered').hide();
|
||||
$('.'+currentClass).show();
|
||||
}
|
||||
|
||||
toggleD3HpB2Bpurchase();
|
||||
$('.d3heidelpayB2BPurchase').click(function(){
|
||||
toggleD3HpB2Bpurchase();
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
{% endif %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
57
views/twig/apex/payment/cards.html.twig
Normal file
57
views/twig/apex/payment/cards.html.twig
Normal file
@ -0,0 +1,57 @@
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
|
||||
{% block heidelpay_cards %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% for sBrandIdent, sBrandName in aBrands %}
|
||||
{% set sBrandIdent = sBrandIdent|lower %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_' ~ sBrandIdent ~ '.jpg' %}
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
{% endfor %}
|
||||
</label>
|
||||
</dt>
|
||||
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-danger">{{ translate({ ident: "D3PAYMENT_EXT_AFTERSTEP4_INFO_STEP4" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
186
views/twig/apex/payment/directdebit.html.twig
Normal file
186
views/twig/apex/payment/directdebit.html.twig
Normal file
@ -0,0 +1,186 @@
|
||||
{% set dynvalue = oView.getDynValue() %}
|
||||
{% set iPayError = oView.getPaymentError() %}
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sBrandIdentELV = 'ELV' %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'unzer_direct_debit.png' %}
|
||||
{% set blShowPaymentMethod = true %}
|
||||
{% if get_class(oHeidelPayment) === "D3\Unzer\Application\Model\Payment\Directdebit\Secured" %}
|
||||
{% set blShowPaymentMethod = blD3HeidelpayHasSameAdresses %}
|
||||
{% endif %}
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
$('#sCountrySelected_{{ sPaymentID }}').on('change', function (e) {
|
||||
var valueSelected = this.value;
|
||||
var hideableLi = $('#sBIC_{{ sPaymentID }}').first();
|
||||
|
||||
if (valueSelected == 'DE') {
|
||||
hideableLi.hide();
|
||||
hideableLi.find('input').attr('disabled', 'disabled');
|
||||
} else {
|
||||
hideableLi.show();
|
||||
hideableLi.find('input').removeAttr('disabled');
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
||||
{% block heidelpay_debitnote %}
|
||||
{% if get_class(oHeidelPayment) === "D3\Unzer\Application\Model\Payment\Directdebit\Secured" %}
|
||||
{% set iBirthdayMonth = 0 %}
|
||||
{% set iBirthdayDay = 0 %}
|
||||
{% set iBirthdayYear = 0 %}
|
||||
|
||||
{% if oxcmp_user.oxuser__oxbirthdate.value and oxcmp_user.oxuser__oxbirthdate.value != "0000-00 - 00" %}
|
||||
{% set iBirthdayMonth = oxcmp_user.oxuser__oxbirthdate.value|regex_replace("/^([0-9]{4)})[-]/":""|regex_replace('/[-]([0-9]{1,) 2})$/':"" %}
|
||||
{% set iBirthdayDay = oxcmp_user.oxuser__oxbirthdate.value|regex_replace("/^([0-9]{4)})[-]([0-9]{1, 2})[-]/":"" %}
|
||||
{% set iBirthdayYear = oxcmp_user.oxuser__oxbirthdate.value|regex_replace('/[-]([0-9]{1,) 2})[-]([0-9]{1, 2})$/':"" %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blShowPaymentMethod %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% if sPaymentID != 'oxiddebitnote' %}
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: paymentmethod.oxpayments__oxdesc.value} %}
|
||||
{% endif %}
|
||||
</label>
|
||||
{% if false == blShowPaymentMethod %}
|
||||
<dfn class="alert alert-danger d3HeidelaySameAddressNotice">{{ translate({ ident: "D3UNZER_PAYMENT_NOTSAMEADDRESS_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if get_class(oHeidelPayment) === "D3\Unzer\Application\Model\Payment\Directdebit\Secured" %}
|
||||
<div class="form-group oxDate">
|
||||
<label class="col-xs-12 col-lg-3 req">
|
||||
{{ translate({ ident: "BIRTHDATE" }) }}
|
||||
{% if oView.getPaymentError() == 1 %}*{% endif %}
|
||||
</label>
|
||||
<div class="col-xs-3 col-lg-3">
|
||||
<input class="oxDay form-control" name="d3birthdate[{{ sPaymentID }}][day]" type="text"
|
||||
maxlength="2" value="{% if iBirthdayDay > 0 %}{{ iBirthdayDay }}{% endif %}"
|
||||
placeholder="{{ translate({ ident: "DAY" }) }}" required="">
|
||||
</div>
|
||||
<div class="col-xs-6 col-lg-3">
|
||||
<select class="oxMonth form-control" name="d3birthdate[{{ sPaymentID }}][month]"
|
||||
required="">
|
||||
<option value="" label="-">-</option>
|
||||
{% for month in 1..13 %}
|
||||
<option value="{{ loop.index0 }}"
|
||||
label="{{ loop.index0 }}"
|
||||
{% if iBirthdayMonth == loop.index %} selected="selected" {% endif %}>
|
||||
{{ translate({ ident: "MONTH_NAME_" ~ loop.index }) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-3 col-lg-3">
|
||||
<input class="oxYear form-control" name="d3birthdate[{{ sPaymentID }}][year]" type="text"
|
||||
maxlength="4" value="{% if iBirthdayYear %}{{ iBirthdayYear }}{% endif %}"
|
||||
placeholder="{{ translate({ ident: "YEAR" }) }}" required="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info">{{ translate({ ident: "COMPLETE_MARKED_FIELDS" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="form-group">
|
||||
<label class="req col-lg-3"
|
||||
for="sCountrySelected_{{ sPaymentID }}">{{ translate({ ident: "D3UNZER_CC_INPUT_COUNTRY" }) }}</label>
|
||||
<div class="col-lg-9">
|
||||
<select class="form-control" id="sCountrySelected_{{ sPaymentID }}" name="dynvalue[lsland]">
|
||||
<option value="">{{ translate({ ident: "D3PAYMENT_EXT_SELECTPLEASE" }) }}</option>
|
||||
{% for sBrandIdent, sBrandName in aBrands %}
|
||||
<option value="{{ sBrandIdent }}">{{ sBrandName }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% if not empty(dynvalue.lsland) %}
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
$('#sCountrySelected_{{ sPaymentID }}').val('{{ dynvalue.lsland }}').trigger('change');
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="sBIC_{{ sPaymentID }}">
|
||||
<label class="req col-lg-3"
|
||||
for="sCountrySelected_{{ sPaymentID }}lsblz">{{ translate({ ident: "D3UNZER_PAYMENT_INPUT_BANK_BIC" }) }}</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="sCountrySelected_{{ sPaymentID }}lsblz" type="text" class="form-control js-oxValidate"
|
||||
size="20"
|
||||
maxlength="64" name="dynvalue[lsblz]" autocomplete="off" value="{{ dynvalue.lsblz }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="req col-lg-3"
|
||||
for="sCountrySelected_{{ sPaymentID }}lsktonr">{{ translate({ ident: "D3UNZER_PAYMENT_INPUT_BANK_IBAN" }) }}</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="sCountrySelected_{{ sPaymentID }}lsktonr" type="text"
|
||||
class="form-control js-oxValidate js-oxValidate_notEmpty" size="20" maxlength="64"
|
||||
name="dynvalue[lsktonr]" autocomplete="off" value="{{ dynvalue.lsktonr }}"
|
||||
required="required">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="req col-lg-3"
|
||||
for="sCountrySelected_{{ sPaymentID }}lsktoinhaber">{{ translate({ ident: "D3UNZER_PAYMENT_INPUT_BANK_ACCOUNTHOLDER" }) }}</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="sCountrySelected_{{ sPaymentID }}lsktoinhaber" type="text"
|
||||
class="form-control js-oxValidate js-oxValidate_notEmpty" size="20" maxlength="64"
|
||||
name="dynvalue[lsktoinhaber]"
|
||||
required="required"
|
||||
value="{% if dynvalue.lsktoinhaber %}{{ dynvalue.lsktoinhaber }}{% else %}{{ oxcmp_user.oxuser__oxfname.value }} {{ oxcmp_user.oxuser__oxlname.value }}{% endif %}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
82
views/twig/apex/payment/easycredit.html.twig
Normal file
82
views/twig/apex/payment/easycredit.html.twig
Normal file
@ -0,0 +1,82 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set returnParameter = { 'configoptintext': 'configoptintext', 'accountbrand': 'accountbrand', 'transactionid': 'transactionid', 'd3transactionlogid': 'd3transactionlogid' } %}
|
||||
{% set responseParameter = oHeidelpayViewConfig.getAction(oHeidelPayment, 'IN', returnParameter) %}
|
||||
{% set sBrandIdent = responseParameter.accountbrand %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_ratenkauf_ec.jpg' %}
|
||||
|
||||
{% block heidelpay_easycredit %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blD3HeidelpayHasSameAdresses and blD3HeidelpayAllowEasyCredit %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
{% if false == blD3HeidelpayAllowEasyCredit %}
|
||||
<dfn id="d3HeidelayEasycreditNotice"
|
||||
class="alert alert-danger desc">{{ translate({ ident: "D3UNZER_PAYMENT_EASYCREDIT_NOTICE", args: iD3HeidelpayEasycreditLimits }) }}</dfn>
|
||||
{% endif %}
|
||||
{% if false == blD3HeidelpayHasSameAdresses %}
|
||||
<dfn class="alert alert-danger d3HeidelaySameAddressNotice">{{ translate({ ident: "D3UNZER_PAYMENT_NOTSAMEADDRESS_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if blD3HeidelpayAllowEasyCredit and blD3HeidelpayHasSameAdresses %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
{% if blD3HeidelpayEasycreditNotChecked %}
|
||||
<div class="alert alert-danger desc">
|
||||
{{ translate({ ident: "D3UNZER_PAYMENT_EASYCREDIT_CHECKBOX_NOT_CHECKED" }) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="alert alert-info desc">
|
||||
<input type="hidden" name="d3heidelpayEasycreditTransactionLogid[{{ sPaymentID }}]"
|
||||
value="0"/>
|
||||
<label>
|
||||
<input type="checkbox" name="d3heidelpayEasycreditTransactionLogid[{{ sPaymentID }}]"
|
||||
value="{{ responseParameter.d3transactionlogid }}"/>
|
||||
{{ responseParameter.configoptintext }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
79
views/twig/apex/payment/eps.html.twig
Normal file
79
views/twig/apex/payment/eps.html.twig
Normal file
@ -0,0 +1,79 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set dynvalue = oView.getDynValue() %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sBrandIdentEPS = 'EPS' %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_eps.jpg' %}
|
||||
|
||||
{% block heidelpay_eps %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blD3HeidelpayAllowEPS %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
{% if false == blD3HeidelpayAllowEPS %}
|
||||
<dfn id="d3HeidelayEpsNotice"
|
||||
class="alert alert-danger">{{ translate({ ident: "D3UNZER_PAYMENT_EPS_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
<div class="form-group">
|
||||
<label class="req col-lg-3" for="d3heidelpay_eps_{{ paymentmethod.oxpayments__oxid.value }}">
|
||||
{{ translate({ ident: "D3UNZER_PAYMENT_INPUT_BANK_ACCOUNTHOLDER" }) }}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text"
|
||||
class="form-control js-oxValidate js-oxValidate_notEmpty"
|
||||
size="20"
|
||||
maxlength="64"
|
||||
id="d3heidelpay_eps_{{ paymentmethod.oxpayments__oxid.value }}"
|
||||
name="dynvalue[lsktoinhaber]"
|
||||
title="{{ translate({ ident: "D3UNZER_PAYMENT_INPUT_BANK_ACCOUNTHOLDER" }) }}"
|
||||
value="{% if dynvalue.lsktoinhaber %}{{ dynvalue.lsktoinhaber }}{% else %}{{ oxcmp_user.oxuser__oxfname.value }} {{ oxcmp_user.oxuser__oxlname.value }}{% endif %}">
|
||||
</div>
|
||||
</div>
|
||||
{% if blD3HeidelpayAllowEPS %}
|
||||
<div class="form-group">
|
||||
<label class="req col-lg-3"
|
||||
for="payment_{{ sPaymentID }}_1">{{ translate({ ident: "D3UNZER_PAYMENT_INPUT_BANK" }) }}</label>
|
||||
<input type="hidden" name="dynvalue[lsland]" value="AT">
|
||||
<div class="col-lg-9">
|
||||
<select class="form-control" id="payment_{{ sPaymentID }}_1" name="dynvalue[lsbankname]">
|
||||
<option value="">{{ translate({ ident: "D3PAYMENT_EXT_SELECTPLEASE" }) }}</option>
|
||||
{% for sBrandIdent, sBrandName in aBrands %}
|
||||
<option value="{{ sBrandIdent }}"
|
||||
{% if (dynvalue.lsbankname == sBrandIdent) %}selected{% endif %}>{{ sBrandName }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
50
views/twig/apex/payment/giropay.html.twig
Normal file
50
views/twig/apex/payment/giropay.html.twig
Normal file
@ -0,0 +1,50 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sBrandIdent = aBrands.GIROPAY %}
|
||||
{% set sFullImageUrl = sBrandIdent|lower|truncate(4, '') %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_' ~ sFullImageUrl ~ '.jpg' %}
|
||||
|
||||
{% block heidelpay_giropay %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
86
views/twig/apex/payment/ideal.html.twig
Normal file
86
views/twig/apex/payment/ideal.html.twig
Normal file
@ -0,0 +1,86 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set dynvalue = oView.getDynValue() %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sBrandIdentIdeal = 'iDeal' %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_ideal.jpg' %}
|
||||
|
||||
{% block heidelpay_ideal %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blD3HeidelpayAllowIdeal %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdentIdeal} %}
|
||||
</label>
|
||||
{% if false == blD3HeidelpayAllowIdeal %}
|
||||
<dfn id="d3HeidelayPrzelewy24Notice"
|
||||
class="alert alert-danger">{{ translate({ ident: "D3UNZER_PAYMENT_IDEAL_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if blD3HeidelpayAllowIdeal %}
|
||||
{% if aBrands is iterable and 1 < count(aBrands) %}
|
||||
<div class="form-group">
|
||||
<label class="req col-lg-3"
|
||||
for="payment_{{ sPaymentID }}_1">{{ translate({ ident: "D3UNZER_PAYMENT_INPUT_BANK" }) }}</label>
|
||||
<input type="hidden" name="dynvalue[lsland]" value="NL">
|
||||
<div class="col-lg-9">
|
||||
<select class="form-control js-oxValidate js-oxValidate_notEmpty"
|
||||
id="payment_{{ sPaymentID }}_1"
|
||||
name="dynvalue[lsbankname]">
|
||||
<option>{{ translate({ ident: "D3PAYMENT_EXT_SELECTPLEASE" }) }}</option>
|
||||
{% for sBrandIdent, sBrandName in aBrands %}
|
||||
<option value="{{ sBrandIdent }}"
|
||||
{% if (dynvalue.lsbankname == sBrandIdent) %}selected{% endif %}>{{ sBrandName }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{% elseif aBrands is iterable %}
|
||||
{% set current = aBrands|current %}
|
||||
<input type="hidden" name="dynvalue[lsbankname]" value="{{ current }}"/>
|
||||
{% else %}
|
||||
<input type="hidden" name="dynvalue[lsbankname]" value="IDEAL_BRAND"/>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
106
views/twig/apex/payment/invoice.html.twig
Normal file
106
views/twig/apex/payment/invoice.html.twig
Normal file
@ -0,0 +1,106 @@
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set blShowPaymentMethod = true %}
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% if get_class(oHeidelPayment) === "D3\Unzer\Application\Model\Payment\Invoice\Secured" %}
|
||||
{% set blShowPaymentMethod = blD3HeidelpayAllowInvoiceSecured %}
|
||||
{% endif %}
|
||||
|
||||
{% block heidelpay_invoice %}
|
||||
{% set iBirthdayMonth = 0 %}
|
||||
{% set iBirthdayDay = 0 %}
|
||||
{% set iBirthdayYear = 0 %}
|
||||
|
||||
{% if oxcmp_user.oxuser__oxbirthdate.value and oxcmp_user.oxuser__oxbirthdate.value != "0000-00 - 00" %}
|
||||
{% set iBirthdayMonth = oxcmp_user.oxuser__oxbirthdate.value|regex_replace("/^([0-9]{4)})[-]/":""|regex_replace('/[-]([0-9]{1,) 2})$/':"" %}
|
||||
{% set iBirthdayDay = oxcmp_user.oxuser__oxbirthdate.value|regex_replace("/^([0-9]{4)})[-]([0-9]{1, 2})[-]/":"" %}
|
||||
{% set iBirthdayYear = oxcmp_user.oxuser__oxbirthdate.value|regex_replace('/[-]([0-9]{1,) 2})[-]([0-9]{1, 2})$/':"" %}
|
||||
{% endif %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blShowPaymentMethod %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
<img src="{{ sImageUrl }}unzer_invoice.png" alt="{{ paymentmethod.oxpayments__oxdesc.value }}" style="vertical-align: middle;">
|
||||
</label>
|
||||
{% if false == blShowPaymentMethod %}
|
||||
<dfn id="d3HeidelayInvoiceSecuredNotice"
|
||||
class="alert alert-danger desc">{{ translate({ ident: "D3UNZER_PAYMENT_INVOICESECURED_NOTICE", args: iD3HeidelpayInvoiceSecuredLimits }) }}</dfn>
|
||||
{% endif %}
|
||||
{% if false == blD3HeidelpayHasSameAdresses %}
|
||||
<dfn class="alert alert-danger d3HeidelaySameAddressNotice">{{ translate({ ident: "D3UNZER_PAYMENT_NOTSAMEADDRESS_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if blShowPaymentMethod %}
|
||||
<div class="form-group oxDate">
|
||||
<label class="col-xs-12 col-lg-3 req">
|
||||
{{ translate({ ident: "BIRTHDATE" }) }}
|
||||
{% if oView.getPaymentError() == 1 %}*{% endif %}
|
||||
</label>
|
||||
<div class="col-sm-3 col-lg-3">
|
||||
<input class="oxDay form-control" name="d3birthdate[{{ sPaymentID }}][day]" type="text"
|
||||
maxlength="2" value="{% if iBirthdayDay > 0 %}{{ iBirthdayDay }}{% endif %}"
|
||||
placeholder="{{ translate({ ident: "DAY" }) }}" required="">
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-3">
|
||||
<select class="oxMonth form-control" name="d3birthdate[{{ sPaymentID }}][month]"
|
||||
required="">
|
||||
<option value="" label="-">-</option>
|
||||
{% for month in 1..13 %}
|
||||
<option value="{{ loop.index0 }}"
|
||||
label="{{ loop.index0 }}"
|
||||
{% if iBirthdayMonth == loop.index %} selected="selected" {% endif %}>
|
||||
{{ translate({ ident: "MONTH_NAME_" ~ loop.index }) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3 col-lg-3">
|
||||
<input class="oxYear form-control" name="d3birthdate[{{ sPaymentID }}][year]" type="text"
|
||||
maxlength="4" value="{% if iBirthdayYear %}{{ iBirthdayYear }}{% endif %}"
|
||||
placeholder="{{ translate({ ident: "YEAR" }) }}" required="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info">{{ translate({ ident: "COMPLETE_MARKED_FIELDS" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
49
views/twig/apex/payment/masterpass.html.twig
Normal file
49
views/twig/apex/payment/masterpass.html.twig
Normal file
@ -0,0 +1,49 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sBrandIdent = aBrands.MASTERPASS|lower %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_' ~ sBrandIdent ~ '.jpg' %}
|
||||
|
||||
{% block heidelpay_masterpass %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/cards.html.twig
Normal file
47
views/twig/apex/payment/mgw/cards.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_cards %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}creditcard.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/cards.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
46
views/twig/apex/payment/mgw/directdebit.html.twig
Normal file
46
views/twig/apex/payment/mgw/directdebit.html.twig
Normal file
@ -0,0 +1,46 @@
|
||||
{% block heidelpay_directdebit %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label"
|
||||
for="payment_{{ sPaymentID }}">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/directdebit.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
49
views/twig/apex/payment/mgw/directdebit_secured.html.twig
Normal file
49
views/twig/apex/payment/mgw/directdebit_secured.html.twig
Normal file
@ -0,0 +1,49 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_directdebit_secured %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}unzer_direct_debit.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% if false is same as d3HeidelpayShowSepaGuranteedCustomerFormular %}
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% endif %}
|
||||
{% include "@d3unzer/generic/mgw/directdebit_secured.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/eps.html.twig
Normal file
47
views/twig/apex/payment/mgw/eps.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_eps %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}eps.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/eps.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/flexipaydirect.html.twig
Normal file
47
views/twig/apex/payment/mgw/flexipaydirect.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_flexipaydirect %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}unzer_bank_transfer.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/flexipaydirect.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/giropay.html.twig
Normal file
47
views/twig/apex/payment/mgw/giropay.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_giropay %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}giropay.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/giropay.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/ideal.html.twig
Normal file
47
views/twig/apex/payment/mgw/ideal.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_ideal %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}ideal.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/ideal.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/invoice_b2b.html.twig
Normal file
47
views/twig/apex/payment/mgw/invoice_b2b.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_invoice_b2b %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}unzer_invoice.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/invoice_b2b.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/invoice_secured.html.twig
Normal file
47
views/twig/apex/payment/mgw/invoice_secured.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_invoice_secured %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}unzer_invoice.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/invoice_secured.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
46
views/twig/apex/payment/mgw/invoice_unsecured.html.twig
Normal file
46
views/twig/apex/payment/mgw/invoice_unsecured.html.twig
Normal file
@ -0,0 +1,46 @@
|
||||
{% block heidelpay_invoice_unsecured %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label"
|
||||
for="payment_{{ sPaymentID }}">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/invoice_unsecured.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/paypal.html.twig
Normal file
47
views/twig/apex/payment/mgw/paypal.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_paypal %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}paypal.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/paypal.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/prepayment.html.twig
Normal file
47
views/twig/apex/payment/mgw/prepayment.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_prepayment %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}unzer_prepayment.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/prepayment.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/przelewy24.html.twig
Normal file
47
views/twig/apex/payment/mgw/przelewy24.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_przelewy24 %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}przelewy24.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/przelewy24.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
47
views/twig/apex/payment/mgw/sofort.html.twig
Normal file
47
views/twig/apex/payment/mgw/sofort.html.twig
Normal file
@ -0,0 +1,47 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/mgw/') %}
|
||||
{% block heidelpay_sofortueberweisung %}
|
||||
<div class="payment-option">
|
||||
<div class="payment-option-form">
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.getId() %}checked{% endif %}>
|
||||
<label class="form-check-label unzerimg"
|
||||
for="payment_{{ sPaymentID }}" style="background-image: url('{{ sImageUrl }}sofort.png')">
|
||||
{{ paymentmethod.oxpayments__oxdesc.value }}
|
||||
</label>
|
||||
<div class="payment-option-info">
|
||||
{% include "@d3unzer/apex/mgw/missingfields.html.twig" with {oxidPaymentId: sPaymentID} %}
|
||||
{% include "@d3unzer/generic/mgw/sofort.html.twig" with {paymentId: sPaymentID, selectorId: "payment_" ~ sPaymentID } %}
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
<div class="payment-option-price">
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
{% apply spaceless %}
|
||||
{{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
{{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
57
views/twig/apex/payment/paypal.html.twig
Normal file
57
views/twig/apex/payment/paypal.html.twig
Normal file
@ -0,0 +1,57 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sBrandIdent = aBrands.PAYPAL|lower %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_' ~ sBrandIdent ~ '.png' %}
|
||||
|
||||
{% block heidelpay_paypal %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blD3HeidelpayHasSameAdresses %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
{% if false == blD3HeidelpayHasSameAdresses %}
|
||||
<dfn class="alert alert-danger d3HeidelaySameAddressNotice">{{ translate({ ident: "D3UNZER_PAYMENT_NOTSAMEADDRESS_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
58
views/twig/apex/payment/postfinance.html.twig
Normal file
58
views/twig/apex/payment/postfinance.html.twig
Normal file
@ -0,0 +1,58 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
|
||||
{% block heidelpay_postfinance %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blD3HeidelpayAllowPostFinance %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sImageUrl ~ 'logo_postfinance.png', sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
{% if false == blD3HeidelpayAllowPostFinance %}
|
||||
<dfn id="d3HeidelayPostfinanceNotice" class="alert alert-danger">{{ translate({ ident: "D3UNZER_PAYMENT_POSTFINANCE_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% if blD3HeidelpayAllowPostFinance %}
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4"
|
||||
for="payment_{{ sPaymentID }}_1">{{ translate({ ident: "D3UNZER_PAYMENT_POSTFINANCE_PAYMENTS" }) }}</label>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="payment_{{ sPaymentID }}_1" name="dynvalue[lsbankname]">
|
||||
{% for sBrandIdent, sBrandName in aBrands %}
|
||||
<option value="{{ sBrandIdent }}"
|
||||
{% if (dynvalue.lsbankname == sBrandIdent) %}selected{% endif %}>{{ sBrandName }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
46
views/twig/apex/payment/prepayment.html.twig
Normal file
46
views/twig/apex/payment/prepayment.html.twig
Normal file
@ -0,0 +1,46 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
|
||||
{% block heidelpay_prepayment %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
</label>
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
54
views/twig/apex/payment/przelewy24.html.twig
Normal file
54
views/twig/apex/payment/przelewy24.html.twig
Normal file
@ -0,0 +1,54 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set sBrandIdent = 'przelewy24' %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_' ~ sBrandIdent ~ '.png' %}
|
||||
|
||||
{% block heidelpay_przelewy %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input type="radio"
|
||||
{% if blD3HeidelpayAllowPrzelewy24 %}
|
||||
id="payment_{{ sPaymentID }}"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
||||
{% else %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
{% if false == blD3HeidelpayAllowPrzelewy24 %}
|
||||
<dfn class="alert alert-danger">{{ translate({ ident: "D3UNZER_PAYMENT_PRZELEWY24_NOTICE" }) }}</dfn>
|
||||
{% endif %}
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
50
views/twig/apex/payment/sofort.html.twig
Normal file
50
views/twig/apex/payment/sofort.html.twig
Normal file
@ -0,0 +1,50 @@
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
||||
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
||||
{% set sBrandIdent = aBrands.SOFORT %}
|
||||
{% set sFullImageUrl = sBrandIdent|lower|truncate(6, '') %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_' ~ sFullImageUrl ~ '.png' %}
|
||||
|
||||
{% block heidelpay_sofortueberweisung %}
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_{{ sPaymentID }}"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="{{ sPaymentID }}"
|
||||
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}>
|
||||
<label for="payment_{{ sPaymentID }}">
|
||||
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</label>
|
||||
</dt>
|
||||
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
||||
{% set oPaymentPrice = paymentmethod.getPrice() %}
|
||||
{% if oPaymentPrice.getPrice() %}
|
||||
{% if oViewConf.isFunctionalityEnabled('blShowVATForPayCharge') %}
|
||||
({{ format_price(oPaymentPrice.getNettoPrice(), { currency: currency }) }}
|
||||
{% if oPaymentPrice.getVatValue() > 0 %}
|
||||
{{ translate({ ident: "PLUS_VAT" }) }} {{ format_price(oPaymentPrice.getVatValue(), { currency: currency }) }}
|
||||
{% endif %})
|
||||
{% else %}
|
||||
({{ format_price(oPaymentPrice.getBruttoPrice(), { currency: currency }) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block checkout_payment_longdesc %}
|
||||
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
||||
<div class="alert alert-info desc">
|
||||
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
19
views/twig/apex/shippingandpayment.html.twig
Normal file
19
views/twig/apex/shippingandpayment.html.twig
Normal file
@ -0,0 +1,19 @@
|
||||
{% if d3HpShowEasyCreditParameter %}
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set sBrandIdent = 'EASYCREDIT' %}
|
||||
{% set sFullImageUrl = sImageUrl ~ 'logo_ratenkauf_ec.jpg' %}
|
||||
<div class="card card-default d3EasyCreditNotes">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_TITLE" }) }}
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sFullImageUrl, sBrandIdent: sBrandIdent} %}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div>{{ d3HPEASYCREDIT_AMORTISATIONTEXT }}</div>
|
||||
<a href="{{ d3HPEASYCREDIT_PRECONTRACTINFORMATIONURL }}" target="easyCredit"
|
||||
class="fontunderline">{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_LINK" }) }}</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
59
views/twig/apex/storeduid.html.twig
Normal file
59
views/twig/apex/storeduid.html.twig
Normal file
@ -0,0 +1,59 @@
|
||||
{% set payment = oView.getPayment() %}
|
||||
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
||||
{% set oHeidelPayment = oHeidelPaySettings.getPayment(payment) %}
|
||||
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
||||
{% set storeDatas = oView.getUserHPStoreData(payment.getId()) %}
|
||||
{% set d3HeidelpayPostparameter = oView.d3GetHeidelpayPostparameter() %}
|
||||
<form action="{{ oViewConf.getSslSelfLink()|add_url_parameters("&heidelpaytemplate=@d3unzer/apex/cc_input.html.twig") }}"
|
||||
method="post">
|
||||
{% for inputName, inputValue in d3HeidelpayPostparameter %}
|
||||
<input type="hidden" name="{{ inputName }}" value="{{ inputValue }}">
|
||||
{% endfor %}
|
||||
{{ oViewConf.getHiddenSid()|raw }}
|
||||
{{ oViewConf.getNavFormParams() }}
|
||||
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||||
<input type="hidden" name="fnc" value="d3PayWithStoreData">
|
||||
<input type="hidden" name="challenge" value="{{ challenge }}">
|
||||
<input type="hidden" name="sDeliveryAddressMD5" value="{{ oView.getDeliveryAddressMD5() }}">
|
||||
<div class="list-group">
|
||||
{% for storeDataId, storeData in storeDatas %}
|
||||
<div class="radio list-group-item">
|
||||
<label style="width:100%">
|
||||
<input type="radio" name="usehpstore"
|
||||
value="{{ storeDataId }}"{% if loop.first %} checked{% endif %}>
|
||||
{% set sBrandIdent = storeData.aDynValue.kktype %}
|
||||
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sImageUrl ~ "logo_" ~ sBrandIdent|lower ~ ".jpg", sBrandIdent: sBrandIdent} %}
|
||||
{{ storeData.aDynValue.kknumber }}
|
||||
{{ translate({ ident: "D3UNZER_CC_INPUT_EXPIRES" }) }} {{ storeData.aDynValue.kkmonth }}
|
||||
/{{ storeData.aDynValue.kkyear }}
|
||||
{{ translate({ ident: "D3UNZER_CC_INPUT_OWNER" }) }} {{ storeData.aDynValue.kkname }}
|
||||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="radio list-group-item">
|
||||
<label style="width:100%">
|
||||
<input type="radio" name="usehpstore" value="0">
|
||||
{{ translate({ ident: "D3PAYMENT_EXT_STOREDUID_NEW_CARD" }) }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
{{ translate({ ident: "D3PAYMENT_EXT_STOREDUID_CC_SECURITYINFO" }) }}
|
||||
</div>
|
||||
|
||||
<div class="card bg-light cart-buttons">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<a href="{{ seo_url({ ident: oViewConf.getSelfLink() ~ "cl=order" }) }}" class="btn btn-outline-dark float-left prevStep submitButton largeButton" id="userBackStepBottom"><i class="fa fa-caret-left"></i> {{ translate({ ident: "D3UNZER_ORDER_PAGE_BACKSTEPT" }) }}</a>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 text-right">
|
||||
<button id="paymentNextStepBottom" class="btn btn-primary pull-right submitButton largeButton nextStep" name="userform" type="submit">{{ translate({ ident: "D3UNZER_ORDER_PAGE_NEXTSTEP" }) }} <i class="fa fa-caret-right"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
12
views/twig/apex/thankyou/easycreditcriterions.html.twig
Normal file
12
views/twig/apex/thankyou/easycreditcriterions.html.twig
Normal file
@ -0,0 +1,12 @@
|
||||
{% if easyCreditInformations %}
|
||||
<div class="alert alert-info">
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_ACCRUINGINTEREST" }) }} {{ format_price(easyCreditInformations.criterion_easycredit_accruinginterest, { currency: currency }) }}
|
||||
<br/>
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_TOTALAMOUNT" }) }} {{ format_price(easyCreditInformations.criterion_easycredit_totalamount, { currency: currency }) }}
|
||||
<br/>
|
||||
<a href="{{ easyCreditInformations.criterion_easycredit_precontractinformationurl }}" target="easyCredit"
|
||||
class="btn">{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_LINK" }) }}</a>
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
10
views/twig/extensions/themes/admin_twig/headitem.html.twig
Normal file
10
views/twig/extensions/themes/admin_twig/headitem.html.twig
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends "headitem.html.twig" %}
|
||||
|
||||
{% block admin_headitem_inccss %}
|
||||
{{ parent() }}
|
||||
{% if (oViewConf.getActiveClassName() == 'd3_unzer_controllers_admin_adminlist') or (oViewConf.getActiveClassName() == 'd3_unzer_controllers_admin_order_unzer') %}
|
||||
{% set sCssUrl = oViewConf.getModuleUrl('d3unzer', 'out/src/css/d3unzer_admin.css') %}
|
||||
<link rel="stylesheet" href="{{ sCssUrl }}?236">
|
||||
<script type="text/javascript" src="{{ oViewConf.getResourceUrl() }}js/libs/jquery.min.js"></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,78 @@
|
||||
{% extends "email/html/order_cust.html.twig" %}
|
||||
|
||||
{% block email_html_order_cust_paymentinfo %}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
|
||||
{% if mod_d3unzer %}
|
||||
{% set oPrePaymentData = order.getHeidelpayBankTransferData() %}
|
||||
{% set easyCreditInformations = order.getHeidelpayEasyCreditInformations() %}
|
||||
|
||||
{% if is_object(oPrePaymentData) %}
|
||||
<div>
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT1" }) }}
|
||||
<br/>
|
||||
<span style="color: red;">{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT2" }) }}</span>
|
||||
</p>
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_ACCOUNTHOLDER" }) }} {{ oPrePaymentData.Holder }}<br/>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_IBAN" }) }} {{ oPrePaymentData.Iban }}<br/>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_BIC" }) }} {{ oPrePaymentData.Bic }}<br/>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_AMOUNT" }) }} {{ oPrePaymentData.Amount }} {{ oPrePaymentData.Currency }}
|
||||
<br/>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_REASON" }) }} {{ oPrePaymentData.Reference }}
|
||||
</p>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
{% endif %}
|
||||
{% if oPrePaymentData is iterable %}
|
||||
<div>
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT1" }) }}
|
||||
<br/>
|
||||
<span style="color: red;">{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT2" }) }}</span>
|
||||
</p>
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_REASON" }) }} {{ oPrePaymentData.Reference }}
|
||||
{% if oPrePaymentData.holder %}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_ACCOUNTHOLDER" }) }} {{ oPrePaymentData.holder }}<br/>
|
||||
{% endif %}
|
||||
{% if oPrePaymentData.iban %}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_IBAN" }) }} {{ oPrePaymentData.iban }}<br/>
|
||||
{% endif %}
|
||||
{% if oPrePaymentData.bic %}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_BIC" }) }} {{ oPrePaymentData.bic }}<br/>
|
||||
{% endif %}
|
||||
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_AMOUNT" }) }} {{ oPrePaymentData.formattedAmount }} {{ oPrePaymentData.currency }}
|
||||
<br/>
|
||||
{% if oPrePaymentData.descriptor %}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_REASON" }) }} {{ oPrePaymentData.descriptor }}
|
||||
{% endif %}
|
||||
{% if oPrePaymentData.paymentReference %}
|
||||
{{ oPrePaymentData.paymentReference }}
|
||||
{% endif %}
|
||||
<br/>
|
||||
</p>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
{% endif %}
|
||||
|
||||
{% if easyCreditInformations %}
|
||||
<div>
|
||||
<p>
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_ACCRUINGINTEREST" }) }} {{ format_price(easyCreditInformations.criterion_easycredit_accruinginterest, { currency: currency }) }}
|
||||
<br/>
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_TOTALAMOUNT" }) }} {{ format_price(easyCreditInformations.criterion_easycredit_totalamount, { currency: currency }) }}
|
||||
<br/>
|
||||
<a href="{{ easyCreditInformations.criterion_easycredit_precontractinformationurl }}" target="easyCredit"
|
||||
>{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_LINK" }) }}</a>
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
@ -0,0 +1,39 @@
|
||||
{% extends "email/plain/order_cust.html.twig" %}
|
||||
|
||||
{% block email_html_order_cust_paymentinfo %}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
{% if mod_d3unzer %}{% set oPrePaymentData = order.getHeidelpayBankTransferData() %}
|
||||
{% set easyCreditInformations = order.getHeidelpayEasyCreditInformations() %}
|
||||
{% if is_object(oPrePaymentData) %}##########################################################
|
||||
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT1" }) }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT2" }) }}
|
||||
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_ACCOUNTHOLDER" }) }} {{ oPrePaymentData.Holder }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_IBAN" }) }} {{ oPrePaymentData.Iban }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_BIC" }) }} {{ oPrePaymentData.Bic }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_AMOUNT" }) }} {{ oPrePaymentData.Amount }} {{ oPrePaymentData.Currency }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_REASON" }) }} {{ oPrePaymentData.Reference }}
|
||||
|
||||
##########################################################{% endif %}
|
||||
{% if oPrePaymentData is iterable %}##########################################################
|
||||
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT1" }) }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_INFOTEXT2" }) }}
|
||||
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_ACCOUNTHOLDER" }) }} {{ oPrePaymentData.holder }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_IBAN" }) }} {{ oPrePaymentData.iban }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_BIC" }) }} {{ oPrePaymentData.bic }}
|
||||
{{ translate({ ident: "D3UNZER_EMAIL_PREPAYMENT_AMOUNT" }) }} {{ oPrePaymentData.formattedAmount }} {{ oPrePaymentData.currency }}
|
||||
{% if oPrePaymentData.descriptor %}{{ translate({ ident: "D3UNZER_THANKYOU_PREPAYMENT_REASON" }) }} {{ oPrePaymentData.descriptor }}{% endif %}
|
||||
{% if oPrePaymentData.paymentReference %}{{ oPrePaymentData.paymentReference }}{% endif %}
|
||||
|
||||
##########################################################{% endif %}
|
||||
{% if easyCreditInformations %}##########################################################
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_ACCRUINGINTEREST" }) }} {{ format_price(easyCreditInformations.criterion_easycredit_accruinginterest, { currency: currency }) }}
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_TOTALAMOUNT" }) }} {{ format_price(easyCreditInformations.criterion_easycredit_totalamount, { currency: currency }) }}
|
||||
{{ translate({ ident: "D3UNZER_ORDER_EASYCREDIT_LINK" }) }}: {{ easyCreditInformations.criterion_easycredit_precontractinformationurl }}
|
||||
##########################################################{% endif %}
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
13
views/twig/extensions/themes/default/layout/base.html.twig
Normal file
13
views/twig/extensions/themes/default/layout/base.html.twig
Normal file
@ -0,0 +1,13 @@
|
||||
{% extends "layout/base.html.twig" %}
|
||||
|
||||
{% block base_style %}
|
||||
{{ parent() }}
|
||||
|
||||
{% if (oViewConf.getActiveClassName() == 'payment') or (oViewConf.getActiveClassName() == 'order') %}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
|
||||
{% if mod_d3unzer %}
|
||||
{{ style({ include: oViewConf.getModuleUrl('d3unzer', 'out/src/css/d3unzer.css') }) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,13 @@
|
||||
{% extends "page/checkout/inc/basketcontents.html.twig" %}
|
||||
|
||||
{% block checkout_basketcontents_grandtotal %}
|
||||
{{ parent() }}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
|
||||
{% if mod_d3unzer and oViewConf.getActiveClassname() is same as('order') %}
|
||||
{% set easyCreditInformations = oView.getHeidelpayEasyCreditInformations() %}
|
||||
{% if isset(easyCreditInformations) %}
|
||||
{% include oView.d3GetTemplateName('order_easycreditcriterions') with {easyCreditInformations: easyCreditInformations} %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,10 @@
|
||||
{% extends "page/checkout/order.html.twig" %}
|
||||
|
||||
{% block shippingAndPayment %}
|
||||
{{ parent() }}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
|
||||
{% if mod_d3unzer %}
|
||||
{% include oView.d3GetTemplateName('shippingandpayment') %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,63 @@
|
||||
{% extends "page/checkout/payment.html.twig" %}
|
||||
|
||||
{# workaround for PR #}
|
||||
{% block checkout_payment %}
|
||||
{% set originalContent = parent() %}
|
||||
{% set re = '/(?<=onclick=["\\\']{1})document\\\.getElementById\\\(["\\\']{1}payment["\\\']{1}\\\)\\\.submit\\\(\\\);(?=["\\\']{1}>)/ms' %}
|
||||
{% set replacement = "document.querySelector('#payment').requestSubmit(); return false;" %}
|
||||
{{ originalContent|preg_replace( re, replacement )|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% block change_payment %}
|
||||
{% if not oUnzerViewConfig %}
|
||||
{{ parent() }}
|
||||
{% else %}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
{% if mod_d3unzer %}
|
||||
{{ parent() }}
|
||||
|
||||
{% set doNotUse %}
|
||||
<script type="text/javascript">
|
||||
{% set d3JavaScriptForHeidelpay %}
|
||||
let ddna = $('#payment').find('dl dd').not('.activePayment');
|
||||
ddna.find('input, select, textarea').attr('disabled', 'disabled');
|
||||
{# required for flow themes only #}
|
||||
ddna.find('.bootstrap-select, .bootstrap-select .dropdown-toggle').addClass("disabled");
|
||||
$('#payment dl dt input[type=radio]').click(function () {
|
||||
let dds = $('#payment').find('dd')
|
||||
dds.find('input, select, textarea').attr('disabled', 'disabled');
|
||||
{# required for flow themes only #}
|
||||
dds.find('.bootstrap-select, .bootstrap-select .dropdown-toggle').addClass("disabled");
|
||||
let dls = $(this).parents('dl');
|
||||
dls.find('input, select, textarea').removeAttr('disabled');
|
||||
{# required for flow themes only #}
|
||||
dls.find('.bootstrap-select, .bootstrap-select .dropdown-toggle').removeClass('disabled');
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
|
||||
{{ script({ add: d3JavaScriptForHeidelpay.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block select_payment %}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
|
||||
{% if mod_d3unzer and oView.d3IsHeidelpayPaymentMethode(paymentmethod) %}
|
||||
{% include oView.d3GetPaymentFormTemplateName(paymentmethod) %}
|
||||
{% else %}
|
||||
{{ parent() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block checkout_payment_errors %}
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
|
||||
{% if mod_d3unzer and d3heidelpayErrorCodes and oHeidelpayViewConfig.getPaymentError() == -99 %}
|
||||
{% include oView.d3GetMessageTemplateName() %}
|
||||
{% else %}
|
||||
{{ parent() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,21 @@
|
||||
{% extends "page/checkout/thankyou.html.twig" %}
|
||||
|
||||
{% block checkout_thankyou_info %}
|
||||
{{ parent() }}
|
||||
|
||||
{% d3modcfgcheck modid="d3unzer" %}{% endd3modcfgcheck %}
|
||||
|
||||
{% if mod_d3unzer %}
|
||||
{% set oPrePaymentData = order.getHeidelpayBankTransferData() %}
|
||||
{% set easyCreditInformations = order.getHeidelpayEasyCreditInformations() %}
|
||||
|
||||
{% if oPrePaymentData %}
|
||||
{% include oView.d3GetTemplateName('banktransferdata') %}
|
||||
{% endif %}
|
||||
|
||||
{% if isset(easyCreditInformations) %}
|
||||
{% set currency = oView.getActCurrency() %}
|
||||
{% include oView.d3GetTemplateName('thankyou_easycreditcriterions') with {easyCreditInformations: easyCreditInformations} %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
9
views/twig/generic/email/html/chargeback_owner.html.twig
Normal file
9
views/twig/generic/email/html/chargeback_owner.html.twig
Normal file
@ -0,0 +1,9 @@
|
||||
{% set shop = oEmailView.getShop() %}
|
||||
{% set oViewConf = oEmailView.getViewConfig() %}
|
||||
{% set currency = oEmailView.getCurrency() %}
|
||||
{% set user = oEmailView.getUser() %}
|
||||
|
||||
{% set title %}{% include_content 'd3_hp_chargeback_owner_subj_twig' %}{% endset %}
|
||||
{% include "email/html/header.html.twig" with {title: title} %}
|
||||
{% include_content 'd3_hp_chargeback_owner_text_twig' %}
|
||||
{% include "email/html/footer.html.twig" %}
|
@ -0,0 +1 @@
|
||||
{% include_content 'd3_hp_chargeback_owner_subj_twig' %}
|
9
views/twig/generic/email/html/partlypaid_owner.html.twig
Normal file
9
views/twig/generic/email/html/partlypaid_owner.html.twig
Normal file
@ -0,0 +1,9 @@
|
||||
{% set shop = oEmailView.getShop() %}
|
||||
{% set oViewConf = oEmailView.getViewConfig() %}
|
||||
{% set currency = oEmailView.getCurrency() %}
|
||||
{% set user = oEmailView.getUser() %}
|
||||
|
||||
{% set title %}{% include_content 'd3_hp_partlypaid_owner_subj_twig' %}{% endset %}
|
||||
{% include "email/html/header.html.twig" with { title: title } %}
|
||||
{% include_content 'd3_hp_partlypaid_owner_text_twig' %}
|
||||
{% include "email/html/footer.html.twig" %}
|
@ -0,0 +1 @@
|
||||
{% include_content 'd3_hp_partlypaid_owner_subj_twig' %}
|
9
views/twig/generic/email/html/prepayment_cust.html.twig
Normal file
9
views/twig/generic/email/html/prepayment_cust.html.twig
Normal file
@ -0,0 +1,9 @@
|
||||
{% set shop = oEmailView.getShop() %}
|
||||
{% set oViewConf = oEmailView.getViewConfig() %}
|
||||
{% set currency = oEmailView.getCurrency() %}
|
||||
{% set user = oEmailView.getUser() %}
|
||||
|
||||
{% set title %}{% include_content 'd3_hp_vorkassemail_cust_sub_twig' %}{% endset %}
|
||||
{% include "email/html/header.html.twig" with {title: title} %}
|
||||
{% include_content 'd3_hp_vorkassemail_cust_tex_twig' %}
|
||||
{% include "email/html/footer.html.twig" %}
|
@ -0,0 +1 @@
|
||||
{% include_content 'd3_hp_vorkassemail_cust_sub_twig' %}
|
9
views/twig/generic/email/html/prepayment_owner.html.twig
Normal file
9
views/twig/generic/email/html/prepayment_owner.html.twig
Normal file
@ -0,0 +1,9 @@
|
||||
{% set shop = oEmailView.getShop() %}
|
||||
{% set oViewConf = oEmailView.getViewConfig() %}
|
||||
{% set currency = oEmailView.getCurrency() %}
|
||||
{% set user = oEmailView.getUser() %}
|
||||
|
||||
{% set title %}{% include_content 'd3_hp_vorkassemail_owner_su_twig' %}{% endset %}
|
||||
{% include "email/html/header.html.twig" with {title: title} %}
|
||||
{% include_content 'd3_hp_vorkassemail_owner_te_twig' %}
|
||||
{% include "email/html/footer.html.twig" %}
|
@ -0,0 +1 @@
|
||||
{% include_content 'd3_hp_vorkassemail_owner_su_twig' %}
|
@ -0,0 +1,3 @@
|
||||
{% include_content 'd3_hp_chargeback_owner_pl_twig' %}
|
||||
|
||||
{% include_content 'oxemailfooterplain' %}
|
@ -0,0 +1,3 @@
|
||||
{% include_content 'd3_hp_partlypaid_owner_pl_twig' %}
|
||||
|
||||
{% include_content 'oxemailfooterplain' %}
|
3
views/twig/generic/email/plain/prepayment_cust.html.twig
Normal file
3
views/twig/generic/email/plain/prepayment_cust.html.twig
Normal file
@ -0,0 +1,3 @@
|
||||
{% include_content 'd3_hp_vorkassemail_cust_pl_twig' %}
|
||||
|
||||
{% include_content 'oxemailfooterplain' %}
|
@ -0,0 +1,3 @@
|
||||
{% include_content 'd3_hp_vorkassemail_owner_pl_twig' %}
|
||||
|
||||
{% include_content 'oxemailfooterplain' %}
|
97
views/twig/generic/mgw/cards.html.twig
Normal file
97
views/twig/generic/mgw/cards.html.twig
Normal file
@ -0,0 +1,97 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="card-element-id-card-holder-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div id="card-element-id-number-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="two fields">
|
||||
<div class="field ten wide">
|
||||
<div id="card-element-id-expiry-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field six wide">
|
||||
<div id="card-element-id-cvc-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance= new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
|
||||
var Card_{{ paymentId|escape('url') }} = unzerInstance.Card();
|
||||
Card_{{ paymentId|escape('url') }}.create('holder',
|
||||
{
|
||||
containerId: 'card-element-id-card-holder-{{ paymentId }}', onlyIframe: false
|
||||
});
|
||||
Card_{{ paymentId|escape('url') }}.create('number',
|
||||
{
|
||||
containerId: 'card-element-id-number-{{ paymentId }}', onlyIframe: false
|
||||
});
|
||||
Card_{{ paymentId|escape('url') }}.create('expiry',
|
||||
{
|
||||
containerId: 'card-element-id-expiry-{{ paymentId }}', onlyIframe: false
|
||||
});
|
||||
Card_{{ paymentId|escape('url') }}.create('cvc',
|
||||
{
|
||||
containerId: 'card-element-id-cvc-{{ paymentId }}', onlyIframe: false
|
||||
});
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
Card_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage, form);
|
||||
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
}, 1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
84
views/twig/generic/mgw/directdebit.html.twig
Normal file
84
views/twig/generic/mgw/directdebit.html.twig
Normal file
@ -0,0 +1,84 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="sepa-iban-{{ paymentId }}" class="unzerInput"></div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
<div class="d3UnzerSepaNote">
|
||||
{% if false is same as d3UnzerDontShowDirectDebitMandateCheckbox and isD3UnzerSepaMandatNotConfirmed %}
|
||||
<div class="d3UnzerErrorNotice">{{ translate({ ident: "D3UNZER_PAYMENT_MGW_SEPA_MANDAT_CHECKBOX_INVALID" }) }}</div>
|
||||
{% endif %}
|
||||
{{ d3UnzerSepaMandatText|raw }}
|
||||
|
||||
{% if false is same as d3UnzerDontShowDirectDebitMandateCheckbox %}
|
||||
<br><br>
|
||||
<input type="hidden" name="unzerSepaValidation[{{ paymentId }}]" value="0">
|
||||
<label>
|
||||
<input type="checkbox" name="unzerSepaValidation[{{ paymentId }}]" value="1">
|
||||
{{ translate({ ident: "D3UNZER_PAYMENT_MGW_SEPA_MANDAT_CHECKBOX_LABEL" }) }}
|
||||
</label>
|
||||
<br>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var SepaDirectDebit_{{ paymentId|escape('url') }} = unzerInstance.SepaDirectDebit();
|
||||
SepaDirectDebit_{{ paymentId|escape('url') }}.create('sepa-direct-debit', {
|
||||
containerId: 'sepa-iban-{{ paymentId }}'
|
||||
});
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $( "#unzerWaitingDialog-{{ paymentId }}" ).modal('show');
|
||||
SepaDirectDebit_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text( error.message);
|
||||
form.parentNode.insertBefore(errorMessage, form);
|
||||
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
}, 1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal( "hide" );
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
147
views/twig/generic/mgw/directdebit_secured.html.twig
Normal file
147
views/twig/generic/mgw/directdebit_secured.html.twig
Normal file
@ -0,0 +1,147 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="sepa-guaranteed-iban-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
{% if d3UnzerShowSepaGuranteedCustomerFormular %}
|
||||
<div class="field">
|
||||
<div id="customer-{{ paymentId }}" class="unzerInput"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
<div class="d3UnzerSepaNote">
|
||||
{% if false is same as d3UnzerDontShowDirectDebitMandateCheckbox and isD3UnzerSepaMandatNotConfirmed %}
|
||||
<div class="d3UnzerErrorNotice">{{ translate({ ident: "D3UNZER_PAYMENT_MGW_SEPA_MANDAT_CHECKBOX_INVALID" }) }}</div>
|
||||
{% endif %}
|
||||
{{ d3UnzerSepaMandatText|raw }}
|
||||
|
||||
{% if false is same as d3UnzerDontShowDirectDebitMandateCheckbox %}
|
||||
<br><br>
|
||||
<input type="hidden" name="unzerSepaValidation[{{ paymentId }}]" value="0">
|
||||
<label>
|
||||
<input type="checkbox" name="unzerSepaValidation[{{ paymentId }}]" value="1">
|
||||
{{ translate({ ident: "D3UNZER_PAYMENT_MGW_SEPA_MANDAT_CHECKBOX_LABEL" }) }}
|
||||
</label>
|
||||
<br>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if ("undefined" === typeof unzerInstance) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}',
|
||||
{locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var SepaDirectDebitSecured_{{ paymentId|escape('url') }} = unzerInstance.SepaDirectDebitSecured();
|
||||
SepaDirectDebitSecured_{{ paymentId|escape('url') }}.create('sepa-direct-debit-guaranteed',{
|
||||
containerId: 'sepa-guaranteed-iban-{{ paymentId }}'
|
||||
});
|
||||
{% if d3UnzerShowSepaGuranteedCustomerFormular %}
|
||||
// Creating a customer instance
|
||||
var Customer = unzerInstance.Customer();
|
||||
|
||||
{% block d3initForm %}
|
||||
{% set user = oView.getUser() %}
|
||||
{% if user.getFieldData('oxbirthdate') and user.getFieldData('oxbirthdate') != "0000-00 - 00" %}
|
||||
{% set iBirthdayMonth = user.getFieldData('oxbirthdate')|preg_replace("/^([0-9]{4})[-]/", "")|preg_replace("/[-]([0-9]{1,2})$/", "") %}
|
||||
{% set iBirthdayDay = user.getFieldData('oxbirthdate')|preg_replace("/^([0-9]{4})[-]([0-9]{1,2})[-]/", "") %}
|
||||
{% set iBirthdayYear = user.getFieldData('oxbirthdate')|preg_replace("/[-]([0-9]{1,2})[-]([0-9]{1,2})$/", "") %}
|
||||
{% endif %}
|
||||
// Rendering the customer form
|
||||
Customer.initFormFields({
|
||||
"lastname": "{{ user.getFieldData("oxlname") }}",
|
||||
"firstname": "{{ user.getFieldData("oxfname") }}",
|
||||
"salutation": "{{ user.getFieldData("oxsal") }}",
|
||||
"birthDate": "{{ iBirthdayYear }}-{{ iBirthdayMonth }}-{{ iBirthdayDay }}",
|
||||
"address": {
|
||||
"street": "{{ user.getFieldData("oxstreet") }} {{ user.getFieldData("oxstreetnr") }}",
|
||||
"zip": "{{ user.getFieldData("oxzip") }}",
|
||||
"city": "{{ user.getFieldData("oxcity") }}",
|
||||
"country": "{{ oView.d3getCountryCode() }}"
|
||||
}
|
||||
});
|
||||
{% endblock %}
|
||||
|
||||
// Rendering the customer form
|
||||
Customer.create({
|
||||
containerId: 'customer-{{ paymentId }}'
|
||||
});
|
||||
{% endif %}
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
var SepaGuaranteedPromise_{{ paymentId|escape('url') }} = SepaDirectDebitSecured_{{ paymentId|escape('url') }}.createResource();
|
||||
{% if d3UnzerShowSepaGuranteedCustomerFormular %}
|
||||
var customerPromise_{{ paymentId|escape('url') }} = Customer.createCustomer();
|
||||
{% endif %}
|
||||
Promise.all([
|
||||
SepaGuaranteedPromise_{{ paymentId|escape('url') }}
|
||||
{% if d3UnzerShowSepaGuranteedCustomerFormular %}, customerPromise_{{ paymentId|escape('url') }}{% endif %}
|
||||
])
|
||||
.then(function (result) {
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
$(errorMessage).prop('id',
|
||||
'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage,
|
||||
form);
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
},
|
||||
1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
{% block d3javaScript %}
|
||||
{# ** Address label ** #}
|
||||
$("#customer-{{ paymentId }} .unzerUI > .checkboxLabel").hide();
|
||||
$("#customer-{{ paymentId }} .fields.salutation-customer-{{ paymentId }}").hide();
|
||||
$("#customer-{{ paymentId }} .field.firstname").hide();
|
||||
$("#customer-{{ paymentId }} .field.lastname").hide();
|
||||
{# ** name containing element ** #}
|
||||
$("#customer-{{ paymentId }} .unzerUI > .two.fields:nth-child(4)").hide();
|
||||
{# ** Address headline ** #}
|
||||
$("#customer-{{ paymentId }} .unzerUI > .unzerUI:nth-child(6)").hide();
|
||||
$("#customer-{{ paymentId }} .field.street").hide();
|
||||
$("#customer-{{ paymentId }} .field.zip").hide();
|
||||
$("#customer-{{ paymentId }} .field.city").hide();
|
||||
{# ** country select box ** #}
|
||||
$("#customer-{{ paymentId }} .unzerUI > .field:nth-child(9)").hide();
|
||||
{% endblock %}
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
72
views/twig/generic/mgw/eps.html.twig
Normal file
72
views/twig/generic/mgw/eps.html.twig
Normal file
@ -0,0 +1,72 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="eps-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Eps_{{ paymentId|escape('url') }} = unzerInstance.EPS();
|
||||
Eps_{{ paymentId|escape('url') }}.create('eps', {
|
||||
containerId: 'eps-{{ paymentId }}'
|
||||
});
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
Eps_{{ paymentId|escape('url') }}.create('eps', {
|
||||
containerId: 'eps-element'
|
||||
});
|
||||
Eps_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage,
|
||||
form);
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
},
|
||||
1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
66
views/twig/generic/mgw/flexipaydirect.html.twig
Normal file
66
views/twig/generic/mgw/flexipaydirect.html.twig
Normal file
@ -0,0 +1,66 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="flexipaydirect-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var FlexiPayDirect_{{ paymentId|escape('url') }} = unzerInstance.FlexiPayDirect();
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
FlexiPayDirect_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage,
|
||||
form);
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
},
|
||||
1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
48
views/twig/generic/mgw/giropay.html.twig
Normal file
48
views/twig/generic/mgw/giropay.html.twig
Normal file
@ -0,0 +1,48 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="giropay-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Giropay_{{ paymentId|escape('url') }} = unzerInstance.Giropay();
|
||||
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
if ($('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
Giropay_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
72
views/twig/generic/mgw/ideal.html.twig
Normal file
72
views/twig/generic/mgw/ideal.html.twig
Normal file
@ -0,0 +1,72 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="ideal-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Ideal_{{ paymentId|escape('url') }} = unzerInstance.Ideal();
|
||||
Ideal_{{ paymentId|escape('url') }}.create('ideal', {
|
||||
containerId: 'ideal-{{ paymentId }}'
|
||||
});
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
Ideal_{{ paymentId|escape('url') }}.create('ideal', {
|
||||
containerId: 'ideal-element'
|
||||
});
|
||||
Ideal_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage,
|
||||
form);
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
},
|
||||
1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
107
views/twig/generic/mgw/invoice_b2b.html.twig
Normal file
107
views/twig/generic/mgw/invoice_b2b.html.twig
Normal file
@ -0,0 +1,107 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="b2b-customer-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance= new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var InvoiceSecured_{{ paymentId|escape('url') }} = unzerInstance.InvoiceSecured();
|
||||
var B2BCustomer_{{ paymentId|escape('url') }} = unzerInstance.B2BCustomer();
|
||||
|
||||
{% block d3initForm %}
|
||||
{% set user = oView.getUser() %}
|
||||
{% if user.getFieldData('oxbirthdate') and user.getFieldData('oxbirthdate') != "0000-00 - 00" %}
|
||||
{% set iBirthdayMonth = user.getFieldData('oxbirthdate')|preg_replace("/^([0-9]{4})[-]/", "")|preg_replace("/[-]([0-9]{1,2})$/", "") %}
|
||||
{% set iBirthdayDay = user.getFieldData('oxbirthdate')|preg_replace("/^([0-9]{4})[-]([0-9]{1,2})[-]/", "") %}
|
||||
{% set iBirthdayYear = user.getFieldData('oxbirthdate')|preg_replace("/[-]([0-9]{1,2})[-]([0-9]{1,2})$/", "") %}
|
||||
{% endif %}
|
||||
// Rendering the customer form
|
||||
B2BCustomer_{{ paymentId|escape('url') }}.initFormFields({
|
||||
"lastname": "{{ user.getFieldData("oxlname") }}",
|
||||
"firstname": "{{ user.getFieldData("oxfname") }}",
|
||||
"salutation": "{{ user.getFieldData("oxsal") }}",
|
||||
"company": "{{ user.getFieldData("oxcompany") }}",
|
||||
"birthDate": "{{ iBirthdayYear }}-{{ iBirthdayMonth }}-{{ iBirthdayDay }}",
|
||||
"email": "{{ user.getFieldData("oxusername") }}",
|
||||
"address": {
|
||||
"street": "{{ user.getFieldData("oxstreet") }} {{ user.getFieldData("oxstreetnr") }}",
|
||||
"zip": "{{ user.getFieldData("oxzip") }}",
|
||||
"city": "{{ user.getFieldData("oxcity") }}",
|
||||
"country": "{{ oView.d3getCountryCode() }}"
|
||||
}
|
||||
});
|
||||
{% endblock %}
|
||||
|
||||
B2BCustomer_{{ paymentId|escape('url') }}.create({
|
||||
containerId: 'b2b-customer-{{ paymentId }}'
|
||||
})
|
||||
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
var paymentPromise = InvoiceSecured_{{ paymentId|escape('url') }}.createResource();
|
||||
var b2bCustomerPromise = B2BCustomer_{{ paymentId|escape('url') }}.createCustomer();
|
||||
Promise.all([paymentPromise, b2bCustomerPromise])
|
||||
.then(function (result) {
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text( error.message);
|
||||
form.parentNode.insertBefore(errorMessage, form);
|
||||
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
}, 1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal( "hide" );
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
{% block d3javaScript %}
|
||||
{# ** not hidden, because company field isn't mandatory in default ** #}
|
||||
{# $("#b2b-customer-{{ paymentId }} .field.company").hide(); #}
|
||||
$("#b2b-customer-{{ paymentId }} .field.street").hide();
|
||||
$("#b2b-customer-{{ paymentId }} .field.zip").hide();
|
||||
$("#b2b-customer-{{ paymentId }} .field.city").hide();
|
||||
$("#b2b-customer-{{ paymentId }} .unzerUI > .field:nth-child(4)").hide();
|
||||
{% endblock %}
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
58
views/twig/generic/mgw/invoice_secured.html.twig
Normal file
58
views/twig/generic/mgw/invoice_secured.html.twig
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var InvoiceSecured_{{ paymentId|escape('url') }} = unzerInstance.InvoiceSecured();
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $( "#unzerWaitingDialog-{{ paymentId }}" ).modal('show');
|
||||
InvoiceSecured_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text( error.message);
|
||||
form.parentNode.insertBefore(errorMessage, form);
|
||||
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
}, 1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal( "hide" );
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
58
views/twig/generic/mgw/invoice_unsecured.html.twig
Normal file
58
views/twig/generic/mgw/invoice_unsecured.html.twig
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance= new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Invoice_{{ paymentId|escape('url') }} = unzerInstance.Invoice();
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $( "#unzerWaitingDialog-{{ paymentId }}" ).modal('show');
|
||||
Invoice_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text( error.message);
|
||||
form.parentNode.insertBefore(errorMessage, form);
|
||||
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
}, 1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal( "hide" );
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
66
views/twig/generic/mgw/paypal.html.twig
Normal file
66
views/twig/generic/mgw/paypal.html.twig
Normal file
@ -0,0 +1,66 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="paypal-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Paypal_{{ paymentId|escape('url') }} = unzerInstance.Paypal();
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
Paypal_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage,
|
||||
form);
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
},
|
||||
1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
66
views/twig/generic/mgw/prepayment.html.twig
Normal file
66
views/twig/generic/mgw/prepayment.html.twig
Normal file
@ -0,0 +1,66 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="prepayment-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Prepayment_{{ paymentId|escape('url') }} = unzerInstance.Prepayment();
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
Prepayment_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage,
|
||||
form);
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
},
|
||||
1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
48
views/twig/generic/mgw/przelewy24.html.twig
Normal file
48
views/twig/generic/mgw/przelewy24.html.twig
Normal file
@ -0,0 +1,48 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="przelewy24-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Przelewy24_{{ paymentId|escape('url') }} = unzerInstance.Przelewy24();
|
||||
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
if ($('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
Przelewy24_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
66
views/twig/generic/mgw/sofort.html.twig
Normal file
66
views/twig/generic/mgw/sofort.html.twig
Normal file
@ -0,0 +1,66 @@
|
||||
<div class="unzerUI form">
|
||||
<div class="field">
|
||||
<div id="sofort-{{ paymentId }}" class="unzerInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="unzerWaitingDialog-{{ paymentId }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center">{{ translate({ ident: "D3UNZER_PAYMENT_PLEASE_WAIT" }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set doNotShow %}
|
||||
<script type="text/javascript">
|
||||
{% set javaScript %}
|
||||
var unzerInstance;
|
||||
if( "undefined" === typeof unzerInstance ) {
|
||||
unzerInstance = new unzer('{{ d3UnzerPublicKey }}', {locale: '{{ d3UnzerLanguageLocale }}'});
|
||||
}
|
||||
var Sofort_{{ paymentId|escape('url') }} = unzerInstance.Sofort();
|
||||
var form = document.getElementById('payment');
|
||||
form.addEventListener('submit',
|
||||
function (event) {
|
||||
let isFormValid = $().d3UnzerValidateMissingUserParameter();
|
||||
|
||||
if (isFormValid && $('#{{ selectorId }}').is(':checked')) {
|
||||
event.preventDefault();
|
||||
$('#error-{{ paymentId }}').remove();
|
||||
var modalDialog = $("#unzerWaitingDialog-{{ paymentId }}").modal('show');
|
||||
Sofort_{{ paymentId|escape('url') }}.createResource()
|
||||
.then(function (result) {
|
||||
// Success
|
||||
var hiddenField = document.createElement("input");
|
||||
hiddenField.value = JSON.stringify(result);
|
||||
hiddenField.type = 'hidden';
|
||||
hiddenField.name = "unzer-result";
|
||||
form.appendChild(hiddenField);
|
||||
form.submit();
|
||||
})
|
||||
.catch(function (error) {
|
||||
var errorMessage = document.createElement("p");
|
||||
$(errorMessage).prop('id', 'error-{{ paymentId }}');
|
||||
$(errorMessage).addClass('alert');
|
||||
$(errorMessage).addClass('alert-danger');
|
||||
$(errorMessage).text(error.message);
|
||||
form.parentNode.insertBefore(errorMessage,
|
||||
form);
|
||||
$([document.documentElement, document.body]).animate({
|
||||
scrollTop: $('#error-{{ paymentId }}').offset().top
|
||||
},
|
||||
1000);
|
||||
})
|
||||
.finally(function () {
|
||||
modalDialog.modal("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endset %}
|
||||
</script>
|
||||
{% endset %}
|
||||
{{ script({ add: javaScript.__toString(), dynamic: __oxid_include_dynamic }) }}
|
||||
|
1
views/twig/generic/payment_img.html.twig
Normal file
1
views/twig/generic/payment_img.html.twig
Normal file
@ -0,0 +1 @@
|
||||
<img src="{{ sImageUrl }}" alt="{{ sBrandIdent }}" style="vertical-align: middle; width: 65px">
|
18
views/twig/generic/redirect_postformular.html.twig
Normal file
18
views/twig/generic/redirect_postformular.html.twig
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE HTML>
|
||||
{% set sLanguage = oView.getActiveLangAbbr() %}
|
||||
<html {% if sLanguage %}lang="{{ sLanguage }}"{% endif %}>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={{ oView.getCharSet() }}">
|
||||
</head>
|
||||
<body>
|
||||
<form action="{{ sRedirectURL }}" method="post" name="frm">
|
||||
{% for sParameterName, sParameterValue in aRedirectParameter %}
|
||||
<input type="hidden" name="{{ sParameterName }}" value="{{ sParameterValue|htmlentities }}">
|
||||
{% endfor %}
|
||||
|
||||
<noscript><input type="submit" value="{{ translate({ ident: "D3_UNZER_REDIRECT_NOSCRIPT" }) }}"/></noscript>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
document.frm.submit();
|
||||
</script>
|
||||
</body>
|
Verwijs in nieuw issue
Block a user