Skip to content

Commit

Permalink
Fix amount for non default currency
Browse files Browse the repository at this point in the history
  • Loading branch information
NastyaGos committed May 18, 2021
1 parent f92b12a commit bb7543d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload/catalog/model/extension/payment/coinpayments.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public function createInvoice($order_info)
$currency_code = $order_info['currency_code'];
$coin_currency = $this->coinpayments->getCoinCurrency($currency_code);

$amount = number_format($order_info['total'], $coin_currency['decimalPlaces'], '', '');;
$order_info['total'] = $this->currency->format($order_info['total'], $order_info['currency_code'], '', false);
$amount = number_format($order_info['total'], $coin_currency['decimalPlaces'], '', '');
$display_value = $order_info['total'];

$hostname = $this->coinpayments->getShopHostname();
Expand Down

0 comments on commit bb7543d

Please sign in to comment.