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

Bugfix: Wrong total order value on shops with different base currency (multiple currencies) #9

Merged
merged 5 commits into from
Sep 27, 2016

Conversation

printminion
Copy link
Contributor

Currently liqpay/plugin-magento is sending wrong total order value via liqpay api.
It happens if you have magento shop with multiple currencies (base currency != payment currency)

IS:
$amount = $order->getBaseGrandTotal(); //6 <------- UAH value is expected
$currency = $order->getOrderCurrencyCode(); //UAH

Must be:
$amount = $order->getGrandTotal(); //155.0400
$currency = $order->getOrderCurrencyCode(); //UAH

or
$amount = $order->getBaseGrandTotal(); //6.0000
$currency = $order->getBaseCurrencyCode(); //USD

Also added russian translation

and modman file

@viplifes viplifes merged commit 5409397 into liqpay:master Sep 27, 2016
@viplifes
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants