Helper/Cart.php
public function getOrderByIncrementId($incrementId)
    {
        $searchCriteria = $this->searchCriteriaBuilder
            ->addFilter('increment_id', $incrementId, 'eq')->create();
        $collection = $this->orderRepository->getList($searchCriteria)->getItems();
        return reset($collection);
    }
public function getOrderByIncrementId($incrementId)
    {
        $searchCriteria = $this->searchCriteriaBuilder
            ->addFilter('increment_id', $incrementId, 'eq')->create();
        $collection = $this->orderRepository->getList($searchCriteria)->getItems();
        return reset($collection);
    }
public function getOrderByIncrementId ( $ incrementId ) { $ searchCriteria = $ this -> searchCriteriaBuilder -> addFilter ( 'increment_id' , $ incrementId , 'eq' ) -> create ( ) ; $ collection = $ this -> orderRepository -> getList ( $ searchCriteria ) -> getItems ( ) ; return reset ( $ collection ) ; }
Load Order by increment id
@param $incrementId
@return \Magento\Sales\Api\Data\OrderInterface|mixed
Load Order by increment id