Magento Paypal issues with base currency INR [clos

2020-04-07 04:17发布

问题:


Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 2 years ago.

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

回答1:

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.



回答2:

This FREE Magento Extension that supports PayPal payments for not supported currencies by PayPal might be helpful for you.

https://github.com/Meabed/Paypal-Multi-Currency-Magento

Detailed answer here: https://magento.stackexchange.com/questions/79071/paypal-express-checkout-for-aed-currency