Correct way to getOrderByNumber() from my Plugin in Commerce 2 I am migrating my plugin to Craft 3 / Commerce 2.

What is the best way to call another plugins method like craft()-&gt;commerce_orders-&gt;getOrderByNumber($number) from my plugins service?
All of Craft’s core services are available via the Craft::$app-&gt;getServiceName()-&gt;callServiceMethod() signature.

For example, the Elements service would be Craft::$app-&gt;getElements()-&gt;saveElement()

In the case of other plugins, most will make their Singleton “instance” available as a property on (or method of) their primary plugin class:

use craft/commerce/Plugin as Commerce;
// Maybe a class declaration, and inside your own method…
Commerce::getInstance()-&gt;getOrders()-&gt;getOrderByNumber('abc123...');