A shop owner has been jailed for selling illegal tobacco.