Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ If you are using a Content Security Policy (CSP) you must include different Unze
```
composer require unzerdev/oxid7
```
##### 2. Execute migration script to add database field OXUNZERPAYORDERNR to table oxorder
```
/vendor/bin/oe-eshop-db_migrate migrations:migrate
```

##### 2. Provide write access to /var/ directory during execution

## Support
Expand Down
7 changes: 4 additions & 3 deletions translations/de/unzerpayment_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'UNZER_PAYMENT_METHODNAME_GOOGLEPAY' => 'Google Pay',
'UNZER_PAYMENT_METHODNAME_IDEAL' => 'iDEAL',
'UNZER_PAYMENT_METHODNAME_KLARNA' => 'Klarna',
'UNZER_PAYMENT_METHODNAME_OPENBANKING_PIS' => 'Direktüberweisung',
'UNZER_PAYMENT_METHODNAME_OPENBANKING_PIS' => 'Direktüberweisung',
'UNZER_PAYMENT_METHODNAME_PAYPAL' => 'PayPal',
'UNZER_PAYMENT_METHODNAME_PAYU' => 'PayU',
'UNZER_PAYMENT_METHODNAME_POST_FINANCE_CARD' => 'PostFinance Card',
Expand All @@ -29,11 +29,12 @@
'UNZER_PAYMENT_METHODNAME_WERO' => 'Wero',
'UNZER_PAYMENT_METHODNAME_WECHATPAY' => 'WeChat Pay',

'UNZER_PLEASE_TRANSFER' => 'Bitte überweisen Sie den Betrag in Höhe von %s %s auf das folgende Konto:',
'UNZER_PLEASE_TRANSFER' => 'Bitte überweisen Sie den Betrag in Höhe von %s %s auf das folgende Konto:',
'UNZER_HOLDER' => 'Kontoinhaber',
'UNZER_IBAN' => 'IBAN',
'UNZER_BIC' => 'BIC',
'UNZER_PLEASE_USE_DESCRIPTOR' => 'Bitte nutzen Sie diese Identifikationsnummer als Verwendungszweck',
'UNZER_PAYMENT_DETAILS' => 'Zahlungsdaten für Ihre Bestellung',


];
];
3 changes: 2 additions & 1 deletion translations/en/unzerpayment_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
'UNZER_IBAN' => 'IBAN',
'UNZER_BIC' => 'BIC',
'UNZER_PLEASE_USE_DESCRIPTOR' => 'Please use only this identification number as the descriptor',
'UNZER_PAYMENT_DETAILS' => 'Payment details for your order',

];
];
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
<div class="payment-option" style="margin-bottom: 3px;">
<div class="payment-option-form">
<input class="form-check-input" id="payment_{{ sPaymentID }}" type="radio" name="paymentid" value="{{ sPaymentID }}" {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}>
<label class="form-check-label" for="payment_{{ sPaymentID }}">
<img src="{{ paymentmethod.getIcon() }}" style="max-width: 40px; height: auto; vertical-align: middle">
{{ paymentmethod.oxpayments__oxdesc.value }}
</label>
<input class="form-check-input" id="payment_{{ sPaymentID }}" type="radio" name="paymentid"
value="{{ sPaymentID }}"{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %} checked{% endif %}>
<label class="form-check-label"
for="payment_{{ sPaymentID }}"><img src="{{ paymentmethod.getIcon() }}" style="max-width: 40px; height: auto; vertical-align: middle">{{ paymentmethod.oxpayments__oxdesc.value }}</label>

{% if paymentmethod.getDynValues() or paymentmethod.oxpayments__oxlongdesc.value|striptags|trim %}
<div class="payment-option-info{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %} activePayment{% endif %}">
{% for value in paymentmethod.getDynValues() %}
<div class="form-floating mb-3">
<input type="text" size="20"
maxlength="64" name="dynvalue[{{ value.name }}]" value="{{ value.value }}"
class="form-control" id="{{ sPaymentID }}_{{ loop.index }}"
placeholder="name@example.com">
<label for="{{ sPaymentID }}_{{ loop.index }}">{{ value.name }}</label>
</div>
{% endfor %}

{% block checkout_payment_longdesc %}
{% if paymentmethod.oxpayments__oxlongdesc.value|striptags|trim %}
<div class="desc">
{{ paymentmethod.oxpayments__oxlongdesc.value|raw }}
</div>
{% endif %}
{% endblock %}
</div>
{% endif %}
</div>
<div class="payment-option-info{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %} activePayment{% endif %}">
{% block checkout_payment_longdesc %}
{% if paymentmethod.oxpayments__oxlongdesc.value|striptags|trim %}
<div class="desc">
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
</div>
{% endif %}
{% endblock %}
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

{% set sModuleId = '@' ~ constant('\\Unzer\\UnzerPayment\\Constants\\Constants::MODULE_ID') %}

{% block checkout_thankyou_info %}
{% block checkout_thankyou_payment_info %}

{% if unzerPaymentId is defined %}
<p style="font-style: italic">
Unzer Payment-ID: {{ unzerPaymentId }}<br>
Unzer Short-ID: {{ unzerShortId }}
</p>
<h5><u>{{ translate({ ident: "UNZER_PAYMENT_DETAILS" }) }}</u></h5>
{% endif %}

{% if needsUnzerPaymentInfo is defined %}
Expand All @@ -17,4 +18,4 @@

{{ parent() }}

{% endblock %}
{% endblock %}