1643. A debtor may set up against the assignee any payment made to the assignor before the assignment could be set up against him, as well as any other cause of extinction of the obligation that occurred before that time.
A debtor may also set up any payment made in good faith by himself or his surety to an apparent creditor, even if the required formalities whereby the assignment may be set up against the debtor and third persons have been accomplished.