1556. A valid payment may only be made by a person having a right in the thing due which entitles him to give it in payment.
However, payment of a sum of money or of any other thing due that is consumed by use may not be recovered against a creditor who has used it in good faith, even though it was made by a person who was not authorized to make it.