meabed / Paypal-Multi-Currency-Magento

Paypal Multi Currency Magento
27 stars 5 forks source link

The totals of the cart item amounts do not match order amounts #8

Open babyasishhira opened 8 years ago

babyasishhira commented 8 years ago

When ever i am selecting paypal this error message is coming up shopping cart

vishaladmyrin commented 8 years ago

Even i am facing the same issue.

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.

vishaladmyrin commented 8 years ago

Hello mgeorgiev1,

As per your above information about the changing core files. I have check this solution on my local system. This have some issue with express checkout. Before redirection to paypal there was no review order step in magento one page checkout. Also on paypal there was no details about the product description and prices. so i think there is not proper solution of this. Even we may have multiple non supported currency that also need to be done dynamically by overriding the "Mage_Paypal_Model_Express_Checkout" class.

Waiting for your reply. Hoping the best solution from your side.

Thanks & regards,

mgeorgiev1 commented 8 years ago

Hello, this patch is only changing AMT and CURRENCYCODE variables. For review step you have to change "Skip Order Review Step" in paypal configuration or something else.

Regards.

vishaladmyrin commented 8 years ago

Hello,

That i can understand we can do the configuration regarding the "Review Step". But there is issue in paypal. In the paypal listing of the products details and individual price there is issue.

Waiting for your reply. Hoping the best solution from your side.

Thanks & regards,

iamjinaal commented 6 years ago

Hello,

I am still getting this error when request come back from paypal for order review page. My request is sending good and amount is also get converted into USD.But on order review page i am getting below error.

"PayPal gateway has rejected request. 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)."

I can't understand even papal is accepting request and after some time is giving me below error.