Any lawful charge, fee, cost or expense paid by or due to a lender on behalf of a borrower, with his consent, may be added to the principal amount of a loan made to such borrower under the provisions of this title or under the provisions of title 6, and such amount shall become part of the principal and interest may be charged thereon as provided by law.