Any witness who may have been summoned to attend any of the courts of this state, to testify in a civil case, and shall have attended, claimed and received a certificate therefor, shall not again be compelled to obey any summons for attending said court in the case, at a subsequent term, until he be paid by the party by whom he was summoned; provided, the witness shall have made a demand for payment in writing upon the party who had him summoned, or his attorney, when he resides out of the parish, not less than thirty days before the first day of the subsequent term at which his attendance may be then required.
La. R.S. § 13:3669