Yes, digital lending is legal in India. Depending on the type of entity offering lending services, these will either come under RBI governance or government laws.