Cal. Gov't Code § 51304
The city may provide in the contract for the payment to the county of a consideration agreed upon, which shall be paid to the county treasurer.