Skip to content

Commit

Permalink
Ensure order total is integer
Browse files Browse the repository at this point in the history
  • Loading branch information
VuorelaJ-P committed Sep 22, 2023
1 parent f5522cc commit 894b780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 894b780

Please sign in to comment.