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

Merged
merged 5 commits into from Sep 27, 2016

Projects

None yet

2 participants

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
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment