If any member of the governing body of a municipality shall knowingly vote for the payment of any claim not authorized by law, he shall be subject to indictment and, upon conviction, be fined by a sum not exceeding double the amount of such unlawful claim or appropriation, or by imprisonment in the county jail for not more than three months, or by both such fine and imprisonment.