The Indian Contract Act of 1872 defines contracting competence in Section 11.
Section 11 states that everyone has the legal capacity to contract:
Who, according to the legislation to which he is subject, has reached the age of majority,
They are of sound mind, and
He is not prohibited from entering into a contract by any legislation he is subject to.