It is declared by chapter 366 of the Laws of 1864, that in the county of Onondaga, “any person who shall, in pursuance of any contract, express or implied, either with the owner of the property or any contractor, perform any labor, or furnish any materials, in building, altering or repairing any house or other building, &c., * * shall, until the end of three months after the performance of such labor, be deemed to have an equitable lien for the same upon such house or building or appurtenances, and the land upon which the same may be situated.” (§ 1.) And it is further provided by the amendment of 1866, that when such labor or material is performed or furnished to a contractor or sub-contractor, all payments made by the owner to either in good faith, to apply on his contract, shall operate to extinguish the lien aforesaid, unless written notice of the lien is served on the owner of the premises before such payment, stating that the same is then or immediately thereafter will be claimed.” (Laws of 1866, ch. 788, § 1.)
The notice sufficiently states that at the date of it there was claimed a lien to the amount of “$800 for large quantities of lumber furnished to, and used by the said James Pinkerton,” within thirty days next preceding the 3d of July, 1872.
The only important question presented by the proofs in this case relates to the amount of payments which *405had been made by the owner prior to the 3d of July, 1872.
The plaintiff makes no question in respect to the payments to the extent of $660.91, but questions the payment claimed to have been made prior to 3d of July, of any further sum.
Pinkerton, as a witness, if credited to the fullest extent, would carry out the plaintiff’s theory that on the 3d of July there remained unpaid all but the sum of $660.91.
The testimony of Merriam, corroborated to some extent by Gregory and Cummings, is to the effect that the notes were indorsed and taken up as payments upon the contract in question.
It was held, in Cox v. Broderick, (4 E. D. Smith, 721,) that it must be shown by the party seeking to establish a lien, “ that money was due from the owner at the time the lien was filed, or had subsequently become due.” (See 1 E. D. Smith, 647.)
But'that case arose under a statute in language unlike the one which applies in Onondaga county. It is declared by the act quoted from, (supra,) that the party “ shall have a lien," and the lien may be defeated by showing that payments were made before notice, or, in the words of the statute, “unless written notice of the lien is served on the owner of the premises before such payment.”
The proof of payments before notice, defeats or avoids the lien created by the first part of the section. To defeat the effect of the statute, the owner is allowed to show that payments have been made “without notice,” of all that he became liable to pay. The onus, therefore, of showing payments which will extinguish the lien, is upon the owner.
As before seen, the contract price was $2,450; the actual payments, as to which there is no dispute, were $660.91; and the question left to be disposed of upon *406the conflicting evidence relates to the two notes of $500 each.
It has been held that a party may set off claims arising out of other matters, when proceedings are instituted to enforce a mechanics’ lien. (Owens v. Ackerson, 1 E. D. Smith, 691.)
It was held in Allen v. Carman, (1 E. D. Smith, 692,) that where, in pursuance of a mutual understanding, a debt due the owner from the contractor was to be turned upon the work, such understanding and debt were equivalent to an actual payment.
The same doctrine was asserted by Cowen, J., in Miner v. Hoyt, (4 Hill, 193.)
Applying these cases to the proofs here, the conclusion is reached that when the notice was filed by the claimant, there was nothing due from the defendant Merriam to the contractor Pinkerton.
It was not absolutely necessary that the notes should have been charged up in the account; it is enough to know that Pinkerton had received the money upon the notes, or credit for them; that Merriam had become indisputably liable to pay them, in virtue of his agreement and indorsement thereof. It was an agreement made by him to pay his debt in a particular mode, and was binding upon him. (Lawrence v. Fox, 20 N. Y., 268. 43 Barb., 522. 4 N. Y, 233.)
From the time such .agreement was made to pay the two notes, as well as from the time of their actual payment by Merriam, he was entitled to have them treated as payments upon the building contract existing between him and Pinkerton.
It follows, therefore, that by payments made before the 3d of July, 1872, Merriam had so far liquidated and satisfied his indebtedness to Pinkerton, or discharged the lien upon his premises, as to preclude Smith from enforcing out of the premises payment of the demand stated in the notice filed.
*407[Onondaga Special Term, April, 1873.There must, therefore, be a judgment in favor of Merriam, with costs, and the plaintiff may have judgment against Pinkerton for the amount of the account, and interest from 3d of July, 1873, with costs.
Judgment accordingly.
Hardin, Justice.]