An obligation for the payment of money is extinguished by a due offer of payment if the amount immediately is deposited in the name of the creditor with some bank of deposit of good repute within this state, and notice thereof is given to the creditor.
N.D.C.C. § 9-12-24