From 14d3889f6a0afc7cda4ee525f1272273c50e6ed0 Mon Sep 17 00:00:00 2001 From: stranac Date: Wed, 30 Jun 2021 11:42:30 +0200 Subject: [PATCH] Fix rounding (switch to 8 decimals) --- catalog/controller/payment/coingate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog/controller/payment/coingate.php b/catalog/controller/payment/coingate.php index 8b0943e..ca0af25 100755 --- a/catalog/controller/payment/coingate.php +++ b/catalog/controller/payment/coingate.php @@ -67,7 +67,7 @@ public function confirm() try { $order = \CoinGate\Merchant\Order::createOrFail(array( 'order_id' => $order['order_id'], - 'price_amount' => number_format($order['total'] * $this->currency->getvalue($order['currency_code']), 2, '.', ''), + 'price_amount' => number_format($order['total'] * $this->currency->getvalue($order['currency_code']), 8, '.', ''), 'price_currency' => $order['currency_code'], 'receive_currency' => $this->config->get('coingate_receive_currency'), 'cancel_url' => $this->url->link('payment/coingate/cancel', '', $this->config->get('config_secure')),