The clerk of any court before which a witness has attended on behalf of the state or county in a civil action shall give to the witness a certificate under seal of travel and attendance that entitles the witness to receive the amount stated in the certificate from the state or county treasurer.
§ 26-2-509, MCA