diff --git a/src/OrderStandard/Client.php b/src/OrderStandard/Client.php index 56f42ea..a55ee74 100644 --- a/src/OrderStandard/Client.php +++ b/src/OrderStandard/Client.php @@ -313,9 +313,9 @@ public function get_order_status( $order_id ) { throw new \Exception( \sprintf( - '%s
%s', - sprintf( 'Could not get order status for order ID %s.', $order_id ), - (string) $ogone_error + 'Could not get order status for order ID %s, error: %s.', + \esc_html( $order_id ), + \esc_html( (string) $ogone_error ) ) ); }