After fighting legislation that would require out-of-state online retailers to collect sales taxes if they had affiliates, offices, workers or other ties to the state, the company ponied up millions of dollars to put the issue to taxpayers via a ballot referendum.