/**
 * Returns the response object.
 * 
 * @param unknown $params        	
 * @param unknown $salt        	
 * @throws Exception
 * @return number
 */
function response($params, $salt)
{
    if (!is_array($params)) {
        throw new Exception('PayU response params is empty');
    }
    if (empty($salt)) {
        throw new Exception('Salt is empty');
    }
    if (empty($params['status'])) {
        throw new Exception('Status is empty');
    }
    $response = new Response($salt);
    $result = $response->get_response($_POST);
    unset($response);
    return $result;
}