Pairing mechanism in multiband superconductors