diff --git a/src/PluginForm/Culqi/PaymentMethodAddForm.php b/src/PluginForm/Culqi/PaymentMethodAddForm.php index 044d484..32bf49e 100644 --- a/src/PluginForm/Culqi/PaymentMethodAddForm.php +++ b/src/PluginForm/Culqi/PaymentMethodAddForm.php @@ -56,7 +56,7 @@ class PaymentMethodAddForm extends PaymentOffsiteForm { 'title' => \Drupal::config('system.site')->get('name'), 'currency' => $payment->getAmount()->getCurrencyCode(), 'description' => $this->t('Order #@orderId', ['@orderId' => $orderId]), - 'amount' => ($payment->getAmount()->getNumber() * 100), + 'amount' => round($payment->getAmount()->getNumber() * 100), 'createChargeUrl' => Url::fromRoute('commerce_culqi.create_charge')->toString(), 'returnUrl' => $form['#return_url'], 'currentPaymentGateway' => $paymentGatewayOrder,