Civil Code § 2335
ARTICLE 3. Mutual Obligations of Principals and Third Persons
If exclusive credit is given to an agent by the person dealing with him, his principal is exonerated by payment or other satisfaction made by him to his agent in good faith, before receiving notice of the creditor’s election to hold him responsible.