The clerks of cities and towns, except the city of Boston, may retain for their own use $.75 cents for each license issued, unless otherwise provided by law, and shall certify under penalties of perjury the amounts of money thus received and paid over to them.