(a)
Every executive or ministerial officer, employee, or appointee of the State of California, a county or city therein, or a political subdivision thereof, who asks, receives, or agrees to receive, any bribe, upon any agreement or understanding that his or her vote, opinion, or action upon any matter then pending, or that may be brought before him or her in his or her official capacity, shall be influenced thereby, is punishable by imprisonment in the state prison for two, three, or four years and, in cases in which no bribe has been actually received, by a restitution fine of not less than two thousand dollars ($2,000) or not more than ten thousand dollars ($10,000) or, in cases in which a bribe was actually received, by a restitution fine of at least the actual amount of the bribe received or two thousand dollars ($2,000), whichever is greater, or any larger amount of not more than double the amount of any bribe received or ten thousand dollars ($10,000), whichever is greater, and, in addition thereto, forfeits his or her office, employment, or appointment, and is forever disqualified from holding any office, employment, or appointment, in this state.
(b)
In imposing a restitution fine pursuant to this section, the court shall consider the defendant’s ability to pay the fine.