Inter must pay €17m for Hernandez