Paypal with multiple currency-Magento 1.8! try this...

Paypal with multiple currency-Magento 1.8! try this...


Issue – Many people facing this issue when customer redirect at paypal payment gateway with INR currency in magento websites. Paypal doesn't support INR, if you want to use paypal as INR you have to modify the magento core files.


paypal supported currency code here:




'AUD', 'CAD', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MXN', 'NOK', 'NZD', 'PLN', 'GBP', 'SGD', 'SEK', 'CHF', 'USD', 'TWD', 'THB'


  1. Download the extesion from https://github.com/Meabed/Paypal-Multi-Currency-Magento (github.com).
  2. integrate the module with your system.
  3. change the settings seen in the image below.
  4. Go to admin section and Clear the cache. 
  5. Go to app/code/core/Mage/Paypal/Block/Standard/Redirect.php
  6. Go to the code section below on Redirect.php file
foreach ($standard->getStandardCheckoutFormFields() as $field=>$value) {
$form->addField($field, 'hidden', array('name'=>$field, 'value'=>$value));
}

    6.change the above code with the code below

foreach ($standard->getStandardCheckoutFormFields() as $field=>$value) {
   if($field == 'amount_1'):
    $from = 'INR';
    $to = 'USD';
    $price = $value;
    $newPrice = number_format(Mage::helper('directory')->currencyConvert($price, $from, $to),2);
    $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$newPrice));
   elseif($field == 'amount_2'):
    $from = 'INR';
    $to = 'USD';
    $price = $value;
    $newPrice = number_format(Mage::helper('directory')->currencyConvert($price, $from, $to),2);
    $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$newPrice));
   else:
             $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$value));
   endif;

       }
7. Save the file and go to front end->checkout section then you can see the paypal with check box in payment option. 

Comments