No compensation, fee, profit, or reward of any kind can be paid to or received by a public officer of this state, a corporation or firm, or other person, for a service rendered in procuring from the Governor the demand mentioned in Section 1557, or the surrender of the fugitive, or for conveying him or her to this state, or detaining him or her therein, except as provided for in that section. Every person who violates any of the provisions of this section is guilty of a misdemeanor.