Amazon.com Inc. said Wednesday that it will stop working with online affiliates based in California since the state passed a new rule that forces online retailers to collect sales tax there.