Magento payment method on selected currency


Magento payment method on selected currency, if you want to use your custom payment module for selected currencies, no worries you can do it by adding few lines of code in your module.

In config.xml


In Observer file

   public function paymentMethodIsActive(Varien_Event_Observer $observer) {
        $event           = $observer->getEvent();
        $method          = $event->getMethodInstance();
        $result          = $event->getResult();
        $currencyCode    = Mage::app()->getStore()->getCurrentCurrencyCode();
        if($method->getCode() == 'modulename_paymentmethodname'){
            if($currencyCode == 'INR'){
                $result->isAvailable = true;
                $result->isAvailable = false;
        return $result;

No Comments yet, your thoughts are most welcome