Said municipality shall have power to fix by ordinance from time to time, and to alter and amend the same, license fees or taxes upon businesses and occupations, except, in such instances as such tax or fee or charge may be forbidden by general law, and to provide by ordinance when, how and in what manner payable. It shall have authority to adopt ordinances for the enforcement of such tax ordinances and shall have authority to adopt ordinances for the purpose of inflicting fines, penalties and punishments for violations of such ordinances.