PAYONE-GmbH/shopware-5

Payment method credit cart doesn't show additionalDescription any more

Closed this issue · 4 comments

Our team is working on a shopware 5 project which relies on payone to accept credit card payments. After an update from probably 4.2.2 to 4.3.0, the additional description including the logo is now only visible when you select credit card as payment method and then VISA as card explicitly. To see how the checkout looks now, see now.png.

now

In the current setup, you have to select the payment method. In the past, the checkout showed the payment logo(s) without this step. Kinda like when you explicitly select a payment method now:

after

But: the additionalDescription is already available in the HTML. It was hidden by JavaScript (seems like this is happening in mopt_payment.js), changeAdditionalDescription. If I remove display: none, it is visible just like before.

Do you have any pointers? Can you help?

Hi @luckyduck sorry for the late reply. This looks like our automatic credit card type detection got switched off somehow.
grafik
could you try switching it on in the PAYONE credit card configuration? Please re-compile the theme after switching the option to on.

Hi. It is in fact off. But if I turn it on, it is still only visible after I enter a Credit Card Number and I am not able to choose between cards manually. It still doesnt show the logo without having selected "Kreditkarte" (as shown in the screenshot before)

Sorry for the late reply, I seem to have missed the notification.
I also think I finally got your actual issue. I've setup two shops for reproduction. One with Version 4.2.0 and one with 4.4.0 and I found the same behavior:
In 4.2.0, html in the additional description of the payone visa payment method showed up, even when the payment method wasn't expanded:
grafik
results in
grafik
However in 4.4.0
grafik
results in
grafik

I agree, there should be a possibility to show additional text or html when the payment methods aren't expanded. I'll check internally what commit was responsible and how we can revert the behavior to the pre-4.4.0 one.

Thank you so much! In the meantime I applied a hotfix. It happened due to some call of .hide(). Just not 100% sure which one.