In no case shall the building inspector retain any compensation from his collections, but the full amount of such collections shall be paid into the municipal treasury and his compensation shall thereafter be paid by allowance thereof by the governing authorities of the municipality, and the issuance of warrants, as in other cases.