How to filter payment method in one-page checkout in Magento?

Introduction Q: How will you filter the payment method in one-page checkout based on some conditions? A: There are different ways to do so. Some of them are: By overriding template: app/design/frontend/[interface]/[theme]/template/checkout/onepage/payment/methods.phtml By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::_canUseMethod() By overriding method: Mage_Payment_Model_Method_Abstract::isAvailable() By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::getMethods() By observing event: payment_method_is_active and so on. Among the above methods …

Read moreHow to filter payment method in one-page checkout in Magento?