In case of a sale, the price and times of payment and the method by which the cities and towns, other than the selling city or town, shall be assessed for such payment shall be set forth in the written agreement establishing the district or an amendment thereto; provided, however, that no payments shall be made which shall extend over a period in excess of 25 years.