The person offering a thing, other than money, by way of performance, must, if he means to treat it as belonging to the creditor, retain it as a depository for hire until the creditor accepts it, or until he has given reasonable notice to the creditor that he will retain it no longer; and if, with reasonable diligence, he can find a suitable depository therefor, until he has deposited it with such person.
SDCL 20-5-17