After the issuing of execution against property, any person indebted to the judgment debtor may pay to the sheriff the amount of his debt, or so much thereof as may be necessary to satisfy the execution; and the sheriff's receipt shall be a sufficient discharge for the amount so paid, or directed to be credited by the judgment creditor on the execution.
R.L. 1910, § 5194.