Buying and reselling products online is not trademark infringement unless you are representing that you are company N or you are selling knock offs of N's products and represening them as actual N products.  So long as you are not involved in a misrepresentation, you are not infringing.  If they have a trademark, you should put the TM in a circle when using the name of the product.