In order that compensation may be proper, it is required:
(1) That each of the persons bound should be so principally, and that he be at the same time the principal creditor of the other.
(2) That both debts consist of a sum of money or, when the things due are perishable, that they be of the same kind and also of the same quality, if the latter should have been stipulated.
(3) That both debts are due.
(4) That they be determined and demandable.
(5) That none of them is subject to any retention or suit instituted by a third person, and of which due notice has been given the debtor.
History
—Civil Code, 1930, § 1150.