/** * Retrieves information about the order * - Sends to PayU OrderRetrieveRequest * * @access public * @param string $orderId PayU OrderId sent back in OrderCreateResponse * @return OpenPayU_Result $result Response array with OrderRetrieveResponse * @throws OpenPayU_Exception */ public static function retrieve($orderId) { if (empty($orderId)) { throw new OpenPayU_Exception('Empty value of orderId'); } $pathUrl = OpenPayU_Configuration::getServiceUrl() . self::ORDER_SERVICE . $orderId; $result = self::verifyResponse(OpenPayU_Http::get($pathUrl, $pathUrl), 'OrderRetrieveResponse'); return $result; }