i want to generate that Url
https://MyWebSiteUrl/order-received/thank-you/?key=wc_order_l58l4LPNKIgXB&order_id=2762
i have tried that code
// Return thankyou redirect
return array(
'result' => 'success',
'redirect' => get_site_url( $order ).'order-received/thank-you/'.$order->order_key&order_id=.$order->id.'
);
but it gives me syntax error
can any body help in that ?