The governing body may provide in any ordinance authorizing a local improvement that a certain proportion, or a definite and fixed amount of the whole cost thereof, be paid by the municipality.