Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento Paypal issues with base currency INR [closed]

Is there any way in Magento where I can integrate Paypal with base currency INR? I have tried the following solutions

1) Inchoo

2) Magentocommerce

like image 548
Rushit Avatar asked Oct 01 '22 16:10

Rushit


1 Answers

From this Blog:

Go to app/code/core/Mage/Paypal/Model/Config.php

Change this array:

protected $_supportedCurrencyCodes = array('AUD', 'CAD', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MXN','NOK', 'NZD', 'PLN', 'GBP', 'SGD', 'SEK', 'CHF', 'USD', 'TWD', 'THB');

To

protected $_supportedCurrencyCodes = array('AUD', 'CAD', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MXN','NOK', 'NZD', 'PLN', 'GBP', 'SGD', 'SEK', 'CHF', 'USD', 'TWD', 'THB','INR');

Another trick :

Go to app/code/core/Mage/Paypal/Model/Standard.php

Then change this function:

   public function canUseForCurrency($currencyCode) { return $this->getConfig()->isCurrencyCodeSupported($currencyCode); }

To

   public function canUseForCurrency($currencyCode) { if($currencyCode == 'INR') { $currencyCode = 'USD'; } return $this->getConfig()->isCurrencyCodeSupported($currencyCode); }

I also found a paid extension, MageOXY paypal all currencies which assuring to solve the problem.

like image 175
Mr_Green Avatar answered Oct 04 '22 21:10

Mr_Green