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?

  • Need to use Observer magento.stackexchange.com/questions/137738/… – Ankit Shah Jan 6 '17 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? – Serhii Ziukov Jan 6 '17 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.