Any person pledging his credit or collateral as an endorser, guarantor, or accommodator to another person or corporation for the purpose of assisting another in obtaining credit shall not be, or construed to be, an investor in said borrower as to the amount so borrowed, nor shall any payments by said borrower on the indebtedness be, or construed to be, dividend to the endorser, guarantor or accommodator.