diff --git a/src/Gateway.php b/src/Gateway.php index be79a28a..4383cde3 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -1237,7 +1237,7 @@ private function get_order_items( $order) { * @since 1.0 */ $order_items = apply_filters('woocommerce_paytrail_gateway_get_order_items', $order->get_items([ 'line_item', 'fee', 'shipping' ]), $order); - $order_total = $this->helper->handle_currency($order->get_total()); + $order_total = intval($this->helper->handle_currency($order->get_total())); // Convert items to SDK Item objects. $items = array_map(