The new tax collection requirement — part of budget-related legislation — is expected to raise an estimated $317 million a year in new state and local government revenue.

But those taxes may come with a price. Amazon and online retailer Overstock.com Inc. told thousands of California Internet marketing affiliates that they will stop paying commissions for referrals of so-called click-through customers.

That’s because the new requirement applies only to online sellers based out of state that have some connection to California, such as workers, warehouses or offices here.

Both Amazon in Seattle and Overstock in Salt Lake City have told affiliates that they would have to move to another state if they wanted to continue earning commissions for referring customers.