diff --git a/Frontend/MoptPaymentPayone/Components/Classes/PayonePaymentHelper.php b/Frontend/MoptPaymentPayone/Components/Classes/PayonePaymentHelper.php index c6da2084..dd9791d0 100755 --- a/Frontend/MoptPaymentPayone/Components/Classes/PayonePaymentHelper.php +++ b/Frontend/MoptPaymentPayone/Components/Classes/PayonePaymentHelper.php @@ -1356,7 +1356,8 @@ public function groupCreditcards($paymentMeans) $creditCard['description'] = $paymentmean['description']; $creditCardData[] = $creditCard; - $creditCardDescriptions[$creditCard['name']] = ''; + $display = (count($creditCardData) === 1) ? '' : 'display:none'; + $creditCardDescriptions[$creditCard['name']] = '
' . $paymentmean['additionaldescription'] . '
'; if ($firstHit != $key) { unset($paymentMeans[$key]); diff --git a/Frontend/MoptPaymentPayone/Views/frontend/_resources/javascript/mopt_payment.js b/Frontend/MoptPaymentPayone/Views/frontend/_resources/javascript/mopt_payment.js index 06965a9e..35df9215 100755 --- a/Frontend/MoptPaymentPayone/Views/frontend/_resources/javascript/mopt_payment.js +++ b/Frontend/MoptPaymentPayone/Views/frontend/_resources/javascript/mopt_payment.js @@ -857,9 +857,9 @@ function moptPaymentReady() { function poBindCCSelectChange() { // show already pre selected description - $('.payone_additionalDescriptions').hide(); if ($('#mopt_payone__cc_cardtype').val()) { var selected = $('#mopt_payone__cc_cardtype').val().toLowerCase(); + $('.payone_additionalDescriptions').hide(); $('#' + selected + '_additionalDescription').show(); } $('#mopt_payone__cc_cardtype').on('change', function () {