wallee-payment / shopware-6

Wallee integration for Shopware 6.5 and greater
Apache License 2.0
3 stars 4 forks source link

No payment methods shown in development environment #19

Open cundd opened 1 month ago

cundd commented 1 month ago

When APP_ENV is set to dev a PHP warning is thrown if the array key does not exist.

https://github.com/wallee-payment/shopware-6/blob/d550160a9a383e9eb9c60f5404ce7d231cb060fc/src/Core/Storefront/Checkout/Subscriber/CheckoutSubscriber.php#L227

If I understand the bug correctly this invalid array access can occur if there are payment methods activated that are not allowed in the current Sales Channel.

Once this error is thrown, all of the plugins payment methods will be removed from checkout.

https://github.com/wallee-payment/shopware-6/blob/d550160a9a383e9eb9c60f5404ce7d231cb060fc/src/Core/Storefront/Checkout/Subscriber/CheckoutSubscriber.php#L173

amoroso-wallee commented 3 weeks ago

Thank you for your request.

I will be happy to forward your request internally.

As a workaround, it should be ensured that a valid payment method is active.

Can you tell me which payment methods are not available, and what is causing the crash?

Please also let us know which store system version and which wallee version you are currently using.

Sincerely, Alex

BStadlerWallee commented 2 weeks ago

Dear cundd,

please see the previous message of my colleague Alex. In order to ensure privacy and efficiency on this case, please contact us directly over our ticketing system on info@wallee.com using the ticket number in the subject like this: "#310288"

Please provide us the asked details on the above mail so we can take a further look with our dev-team.

Looking forward hearing from you.

Kind Regards B.Stadler Wallee Support

BStadlerWallee commented 1 week ago

Dear cundd,

we haven't yet received any feedback from you regarding this case. I will therefore close this case for now on our end.

You can however reopen it at anytime by simply replying to us again either on here or directly over the ticket.

Kind Regards B.Stadler Wallee Support

cundd commented 1 week ago

Dear B. Stadler

Sorry for the late reply.

As a workaround, it should be ensured that a valid payment method is active.

Can you tell me which payment methods are not available, and what is causing the crash?

Please also let us know which store system version and which wallee version you are currently using.

To be honest: I don't use the wallee-payment module itself. To me it looked like Wallee is providing a whitelabel-solution for other payment providers. I originally found the bug in the PostFinance Checkout module, but over there the issues tab is disabled.

Anyways, I think this bug/UX problem could be fixed upstream.

Does this response help in some way?

BStadlerWallee commented 1 week ago

Hi cundd,

thanks for the Feedback. This helps alot now, since The PostFinance Checkout Module is not a part of our products but only of PostFinance themself. Unfortuantely we cannot directly give any support for their products. Therefore, please directly get in touch with PostFinance / their technical Support for this inquiry and provide them with the details and your Space/Account ID, and they will gladly take a look at it. Sorry again that I couldn't help you directly here.

Kind Regards B.Stadler Wallee Support