(a)
(1) The constable of the township shall receive all money that may be tendered to him in payment of any judgment obtained before a justice of the peace of the township and shall give the person paying the money a receipt therefor. The receipt shall specify on what account the money was paid.
(2) The payment shall be valid against the judgment and, upon the production to the justice of the peace of the receipt therefor, shall be credited thereon.
(b) No payment of money upon a judgment made to a justice of the peace, either before or after execution thereon, shall be valid against the judgment, nor shall the justice of the peace be authorized or empowered to collect and receipt for the money.
(c) The person entitled to the money paid shall have the same remedies against the constable and his securities for the recovery thereof as if the money had been collected by the constable on execution.