Whenever any principal enters into an oral or written contract with a sales representative for services to be rendered within this state and the contemplated method of compensation of the sales representative involves a commission, the contract shall set forth the means by which the commission shall be computed and paid.