Craft Commerce 2 - get order data for plugin
$order = \craft\commerce\elements\Order::find()-&gt;id($id)-&gt;one();

if($order)
{
  foreach ($order-&gt;getLineItems() as $item) {
   // $item-&gt;description
   // $item-&gt;qty
  }

  $billingAddress = $order-&gt;getBillingAddress();
  $shippingAddress = $order-&gt;getShippingAddress();
}