public function getOrder($orderCode = false)
    {
        if (empty($orderCode) || !is_string($orderCode)) {
            Error::throwError('ip', Error::$errors['orderInput']['orderCode']);
        }
        $response = OrderService::getOrder($orderCode);

        if (!isset($response["orderCode"])) {
            Error::throwError("apierror");
        }
        return $response;
    }
public function getOrder($orderCode = false)
    {
        if (empty($orderCode) || !is_string($orderCode)) {
            Error::throwError('ip', Error::$errors['orderInput']['orderCode']);
        }
        $response = OrderService::getOrder($orderCode);

        if (!isset($response["orderCode"])) {
            Error::throwError("apierror");
        }
        return $response;
    }
public function getOrder ( $ orderCode = false ) { if ( empty ( $ orderCode ) || ! is_string ( $ orderCode ) ) { Error :: throwError ( 'ip' , Error :: $ errors [ 'orderInput' ] [ 'orderCode' ] ) ; } $ response = OrderService :: getOrder ( $ orderCode ) ; if ( ! isset ( $ response [ "orderCode" ] ) ) { Error :: throwError ( "apierror" ) ; } return $ response ; }
Get a Worldpay order
@param string $orderCode
@return array Worldpay order response
Get a Worldpay order