Skip to content

Commit

Permalink
AM-120: added if-statement for cc in paymentpage, added translation
Browse files Browse the repository at this point in the history
  • Loading branch information
maexware-danny committed Feb 20, 2024
1 parent 538b4a2 commit 21054b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions translations/de/osc_adyen_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
'OSC_ADYEN_RETURN_NOT_SUCCESSFUL' => 'Die Zahlung war aus folgendem Grund nicht erfolgreich'
. ', wählen sie ggf. eine andere Zahlart.',
'OSC_ADYEN_PAYMENT_STATUS_PENDING' => 'Die Zahlung ist derzeit noch schwebend.',
'OSC_ADYEN_CHECKOUT_CC' => 'Kreditkarte',
];
1 change: 1 addition & 0 deletions translations/en/osc_adyen_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
'OSC_ADYEN_RETURN_NOT_SUCCESSFUL' => 'The payment was not successful for the following reason'
. ', choose another payment method if applicable.',
'OSC_ADYEN_PAYMENT_STATUS_PENDING' => 'The payment is currently pending.',
'OSC_ADYEN_CHECKOUT_CC' => 'Creditcard',
];
5 changes: 4 additions & 1 deletion views/frontend/tpl/payment/adyen_payment.tpl
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<div class="well well-sm">
<input
style="display:none;"
style="[{if $sPaymentID != 'oscadyencreditcard'}]display:none;[{/if}]"
id="payment_[{$sPaymentID}]"
type="radio"
name="paymentid"
value="[{$sPaymentID}]"
data-showpaymentctrl="[{$paymentmethod->showInPaymentCtrl()}]"
[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]
/>
[{if $sPaymentID == 'oscadyencreditcard'}]
<label for="payment_oscadyencreditcard"><b>[{oxmultilang ident="OSC_ADYEN_CHECKOUT_CC"}]</b></label>
[{/if}]
<div id="[{$sPaymentID}]-container" data-paymentid="payment_[{$sPaymentID}]"></div>
</div>

0 comments on commit 21054b0

Please sign in to comment.