public function getOrderStatus($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('orderStatus', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['orderStatus'] : null;
    }
public function getOrderStatus($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('orderStatus', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['orderStatus'] : null;
    }
public function getOrderStatus ( $ orderIndex = 0 ) { $ orderStatuses = $ this -> getOrderStatuses ( ) ; return array_key_exists ( 'orderStatus' , $ orderStatuses [ $ orderIndex ] ) ? $ orderStatuses [ $ orderIndex ] [ 'orderStatus' ] : null ; }
The status of the order in the payment system.

@param int $orderIndex
@return mixed|null
The status of the order in the payment system .