meabed / Paypal-Multi-Currency-Magento

Paypal Multi Currency Magento
27 stars 5 forks source link

Help regarding issue #7

Open rajneshwebtecz opened 8 years ago

rajneshwebtecz commented 8 years ago

I am getting issue while configuring this.

i have done all but while click express checkout getting this message

PayPal gateway has rejected request. Currency is not supported (#10605: Transaction refused because of an invalid argument. See additional error messages for details). The totals of the cart item amounts do not match order amounts (#10413: Transaction refused because of an invalid argument. See additional error messages for details).

and on main checkout pages its not redirecting.

Please help me

mgeorgiev1 commented 8 years ago

Try this little modification and change XXX with our currency:

./app/code/core/Mage/Paypal/Model/Express/Checkout.php

lines 304,305: $this->_api->setAmount($this->_quote->getBaseGrandTotal()) ->setCurrencyCode($this->_quote->getBaseCurrencyCode())

change with: $convertedPrice = Mage::helper('directory')->currencyConvert($this->_quote->getBaseGrandTotal(), 'XXX', 'EUR'); //$this->_api->setAmount($this->_quote->getBaseGrandTotal()) $this->_api->setAmount($convertedPrice) //->setCurrencyCode($this->_quote->getBaseCurrencyCode()) ->setCurrencyCode('EUR')

It works on 1.9.2.

meabed commented 8 years ago

Thanks @mgeorgiev1 could you please open PR