TransWikia.com

Magento 2.3.5p2: Can't hide payment method in last step any more

Magento Asked by Hawkeye_00 on November 30, 2020

I have an urgent problem with magento 2.3.5p2. I can’t hide a payment method based one previous step in the last checkout screen anymore.

  • It works quite well if I hide the method on the first step using a "payment_method_is_active" observer. In the last step the payment method is hidden as expected.
  • The same observer is triggered during the last step and worked flawless setting the is_available" to false. But the method is shown. If the customer chooses this, magento shows an "unavailable" error (which is nice, but not enough).

The "payment_method_is_active" observer is defined in the global events.xml. So this could not be the mistake.

Is there anybody else with this error?

Hawkeye

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP