You can use this line using the : get_checkout_order_received_url()
'redirect' => add_query_arg( 'key', $order->order_key, $order->get_checkout_order_received_url() )
Also in the Admin panel: Woocommerce->Setting->Checkout page
add the “order-received” in to the Order Received field.
Thanks