1

The task is to make some restrictions on payment method, but only after they are loaded on checkout page. User select one of payment methods and after that I need to do some logic and if it return false show message to user and hide this method.

I have overried Magento_Checkout/js/action/select-payment-method like here Magento 2 - discount depend on Payment Method does not work but don't know what to do next?

2
  • Need to use Observer magento.stackexchange.com/questions/137738/…
    – Jackson
    Jan 6, 2017 at 3:03
  • I use observer for event 'payment_method_is_active'. And there I use $result->setData('is_available', false); to disable method. But how to fire this event again, after the payment method was selected on checkout page? Jan 6, 2017 at 10:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.