Skip to content

Commit

Permalink
Release/2.5.34 (#133)
Browse files Browse the repository at this point in the history
* Payment mappers refactorization and code improvements

* small fix

* bump up version

* small fixes

* small fix on total amount formating
bump up version
  • Loading branch information
cristianbalajosf authored Oct 14, 2024
1 parent d130867 commit a309b29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Model/RequestBuilder/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public function getTotalAmount($order)
{
$amountUSD = null;
if ($order->getOrderCurrency()->getCurrencyCode() === 'USD') {
$amountUSD = number_format($order->getGrandTotal(), 2, '.');
$amountUSD = number_format($order->getGrandTotal(), 2, '.', '');
}
return [
"amountUSD" => $amountUSD,
"amountLocalCurrency" => strval(number_format($order->getGrandTotal(), 2,'.')),
"amountLocalCurrency" => strval(number_format($order->getGrandTotal(), 2,'.', '')),
"currency" => $order->getOrderCurrency()->getCurrencyCode() . ""
];
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": [
"proprietary"
],
"version": "2.5.33",
"version": "2.5.34",
"authors": [{
"name": "Forter Dev",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Forter_Forter" setup_version="2.5.33"/>
<module name="Forter_Forter" setup_version="2.5.34"/>
</config>

0 comments on commit a309b29

Please sign in to comment.