Since July 2014 I read for the first time about affiliate marketing, I never heard of this way of working before. Until then, I have worked in MLM (multi-level-marketing). Which wasn't that suitable for me. MLM is a very aggressive way of marketing, and you do need to harass everyone around you to join. That's not quite me. Affiliate marketing works very different. You write reviews about products of a company, and when people decide to buy something after reading your review, you get a few percentage of the sale. That's more my line of work.
Your small business must pay state income tax in the state you operate in. Depending on how your business is organized, you could pay corporate tax or a limited liability company tax in addition to your personal income tax. You may pay taxes in the state the selling company is located in if that state taxes entities who earn money within their borders (even if the earner is located out of state). Your affiliate marketing company is considered a separate entity from the selling company when it comes to figuring state income taxes.