The town council by ordinance shall have the power to require any individual or corporation who transacts business in this town or who practices or offers to practice any profession or calling within the town to obtain a license or permit for such activity from the town and pay a reasonable fee for such license or permit where such activities are not now regulated by general law in such a way as to preclude town regulations. Such fees may reflect the total cost to the town of regulating the activity and, if unpaid, shall be collected as provided in Section 6.18 of this charter. The town council by ordinance may establish reasonable requirements for obtaining or keeping such licenses as the public health, safety, and welfare necessitate.