The clerk, magistrate, or foreman of the grand jury issuing said process, immediately upon the return of said subpoena, if issued as provided in Article 24.16, shall issue to such officer a certificate for the amount furnished such witness, together with the amount of his fees for executing the same, showing the amount of each item; which certificate shall be approved by the district judge and recorded by the district clerk in a book kept for that purpose; and said certificate transmitted to the officer executing such subpoena, which amount shall be paid by the State, as costs are paid in other criminal matters.
Tex. Code Crim. Proc. § 24.19