Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
babyasishhira opened this issue May 24, 2016 · 6 comments
Open

Comments

@babyasishhira
Copy link

babyasishhira commented May 24, 2016

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

@vishaladmyrin
Copy link

Even i am facing the same issue.

@mgeorgiev1
Copy link

mgeorgiev1 commented Jul 8, 2016

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
Copy link

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
Copy link

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
Copy link

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
Copy link

iamjinaal commented May 23, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants