A person shall not directly or through any other person pay or receive any money or other valuable consideration before, during, or after an election in order to reward any person or as a reward for voting for or against or agreeing to vote for or against the election or endorsement of any other person as the nominee or candidate of any caucus, convention, organized assemblage of delegates, or other body representing or claiming to represent a political party, candidate, or principle, or any club, society, or association. A violation of this section shall be punishable by imprisonment pursuant to subdivision (h) of Section 1170 of the Penal Code for 16 months or two or three years.