Enable/Disable Payment methods based on condition in Magento 1.9

There may be some condition where we need to Enable/disable any specific payment method based on condition.

For example a gift card product, virtual product or any other condition,

We are going to create a simple module say .

Create following files:




After that you need to flush cache.

You can download module:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.