Rendering Commerce Order API function commerce_order_build_content was deprecated, but I couldn't find one that was supposed to replace that. How do I drupal_render() a loaded commerce order? As of now, I'm getting "call to undefined function" commerce_order_build_content
Use entity_view:

$build = entity_view('commerce_order', $order, 'full');
$markup = drupal_render($build);