woocommerce offtopic – How to add order status class to the body tag?

do you know how can we add CSS class into the body tag when a user has an (any) order which is on pending payment status?

I tried this one but no luck

add_filter( 'body_class', 'order_class');

function order_class($orderclasses) {

$order = wc_get_order( $order_id );
$order_status  = $order->get_status();

    if( is_page( 30 ))  {
        $orderclasses() = $order_status;
    return $orderclasses;

Thank you