Even if you haven't paid the accommodation fee, you won't give a diploma. The one that passed and failed should not be a problem. Just make-up exams.
Your friend is unlucky. He either has the means to make money or has a good relationship with the teacher to deliver things. In short, it depends on human efforts. It depends on which way you choose. Others may tell you the result, but not the process.