Tariffs are paid by the importers, normally. The final cost to the consumer is then raised by an equivalent amount to offset the tariffs and make a profit.
I’m not sure why anyone else would pay tariffs. Either way, the cost goes up and the government rakes in some money.