If I was your customer, there would be a requirements traceability matrix and an acceptance test plan. You wouldn't get paid until the requirements were satisfied 100% per the contract. There are plenty of people in India willing to write crappy code at lower rates.