programmaticaly extract the shipping service name
I am not a developer, just found a code sample from @googletorp on the link below. Just modified that and got the result.

https://www.drupal.org/node/1555994#comment-5963680

    foreach ($order_wrapper-&gt;commerce_line_items as $delta =&gt; $line_item_wrapper) {
    if ($line_item_wrapper-&gt;type-&gt;value() == 'shipping' ){
    $form['merchant_defined_data6'] = array(
    '#type' =&gt; 'hidden',
    '#value' =&gt; $line_item_wrapper-&gt;commerce_shipping_service-&gt;value(),
  );

  break;
  }
}