Bugfix: Wrong total order value on shops with different base currency (multiple currencies) #9
printminion
added
some commits
Oct 26, 2015
|
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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