Monday 30 December 2013

Paypal Payment method not display with INR Base currency magento


Paypal Payment method not display with INR Base currency magento

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);
    }

Thats it.... Enjoy Chandresh rana's Coding... :)

15 comments:

Anonymous said...

Hello every one, here every person is sharing these kinds of know-how, so it's nice to
read this weblog, and I used to pay a visit this
webpage everyday.

Also visit my web blog; foundations contractors Ontario

Anonymous said...

It's а sbame you don't have a donate buttоn!
I'd without a douƄt donɑtе to this excellent blog! I guess for now i'll settke for book-marking andd аdding your RSS feed to my Google аccount.
I looƙ foгԝard to fresh updates ɑnd will share tthis website
with mу Facenook group. Τalk soon!

My wеb blog :: cccam

Unknown said...

Thanks Chandresh rana. Great Solution!!! It work for me =D

Unknown said...

Thanks Chandresh rana. It help me a lot and work for me!!!! =D

Anonymous said...

Very useful article. Thanks a lot!

I had to make a quick fix for my Paypal with BGN currency (since it's not supported by the building module as currency).

And it worked out just fine.

Thanks again :)))))

Nibin said...

do this convert the currency as per the rate too?

Nidhi said...

Hi Chandresh.. I read your comments they all are very fruitfull but i want help pn magento 1.9.1.0 where my base currency is INR and Paypal is express checkout because magento restricted standard paypal. Please help me soon.. please ...

Thanks,
Nidhi

Anonymous said...

Hello Chandresh,
Your post is very useful in getting the INR base currency converted to USD on PayPal.
Unfortunately whenever we apply discount coupons, we are unable to get discount value deducted on paypal.

Could you please help us out to fix this issue

Thanks in advance
Madhu

Anonymous said...

Hi,

I am getting a issue. I tried your way but now its taking same price in USD. For example, my base currency is INR. suppose a product has 1200 INR then it needs to be change in USD but its taking 1200 USD. Hope you got my point. Waiting for the reply at earliest. Many thanks in advance.

PHP Coder said...

Kindly refer below link

http://chandreshrana.blogspot.in/2014/07/inr-currency-convert-issue-with-paypal.html

Unknown said...

Hai Chandersh,
i have to work with this code but its not working properlly i got this error while put order.

PayPal gateway has rejected request. Security header is not valid (#10002: Security error).

Unknown said...

Hai boss,

i had use this tips its working fine in 1.7 and 1.8 magento but its not working in 1.9 and above now i am use this whole same to same buts its give me error like bellow.

==> PayPal gateway has rejected request. Currency is not supported (#10605: Transaction refused because of an invalid argument. See additional error messages for details).

my base currency is INR.

PHP Coder said...

Try below link :

http://chandreshrana.blogspot.in/2016/11/paypal-gateway-has-rejected-request.html

Jeeva Rathinam said...

Both tricks not working, may i know needy steps?

Unknown said...

Hello Chandresh,

Thank for such great post..

pls help me in following case..

I have set Base currency as Pakistan Rupee.

At that time PayPal Standard method doesn't seem on checkout page.

While I set base currency US Dollar then it works perfect.

But In my live store my base currency set as Pakistan Rupee. And in this case I want to show paypal method on checkout page...

I am using Magento 2.1.9 in this not find below file
Go to app/code/core/Mage/Paypal/Model/Config.php

please help me....