public static function retrieve($orderId)
    {
        if (empty($orderId)) {
            throw new OpenPayU_Exception('Empty value of orderId');
        }

        try {
            $authType = self::getAuth();
        } catch (OpenPayU_Exception $e) {
            throw new OpenPayU_Exception($e->getMessage(), $e->getCode());
        }

        $pathUrl = OpenPayU_Configuration::getServiceUrl() . self::ORDER_SERVICE . $orderId;

        $result = self::verifyResponse(OpenPayU_Http::doGet($pathUrl, $authType), 'OrderRetrieveResponse');

        return $result;
    }
public static function retrieve($orderId)
    {
        if (empty($orderId)) {
            throw new OpenPayU_Exception('Empty value of orderId');
        }

        try {
            $authType = self::getAuth();
        } catch (OpenPayU_Exception $e) {
            throw new OpenPayU_Exception($e->getMessage(), $e->getCode());
        }

        $pathUrl = OpenPayU_Configuration::getServiceUrl() . self::ORDER_SERVICE . $orderId;

        $result = self::verifyResponse(OpenPayU_Http::doGet($pathUrl, $authType), 'OrderRetrieveResponse');

        return $result;
    }
public static function retrieve ( $ orderId ) { if ( empty ( $ orderId ) ) { throw new OpenPayU_Exception ( 'Empty value of orderId' ) ; } try { $ authType = self :: getAuth ( ) ; } catch ( OpenPayU_Exception $ e ) { throw new OpenPayU_Exception ( $ e -> getMessage ( ) , $ e -> getCode ( ) ) ; } $ pathUrl = OpenPayU_Configuration :: getServiceUrl ( ) . self :: ORDER_SERVICE . $ orderId ; $ result = self :: verifyResponse ( OpenPayU_Http :: doGet ( $ pathUrl , $ authType ) , 'OrderRetrieveResponse' ) ; return $ result ; }
Retrieves information about the order
- Sends to PayU OrderRetrieveRequest

@param string $orderId PayU OrderId sent back in OrderCreateResponse
@return OpenPayU_Result $result Response array with OrderRetrieveResponse
@throws OpenPayU_Exception
Retrieves information about the order - Sends to PayU OrderRetrieveRequest