Sec. 24. COSTS AND EXPENSES. In all cases of extradition, the commissioners court of the county where an offense is alleged to have been committed, or in which the prosecution is then pending may in its discretion, on request of the sheriff and the recommendation of the prosecuting attorney, pay the actual and necessary expenses of the officer or person commissioned to receive the person charged, out of any county fund or funds not otherwise pledged.