CHICAGO (AP) — Online retail giant Amazon will start collecting sales tax from Illinois consumers next month to comply with a new state law.

Amazon spokesman Ty Rogers said Friday the online retailer will be required to collect the 6.25 percent tax starting Feb. 1. The Amazon spokesman says the online retailer “offers the best prices with or without sales tax.”

READ MORE: Red Cross Day Of Giving: Here's How You Can Help!

Illinois lawmakers passed the measure last summer after the Illinois Supreme Court threw out an earlier attempt at legislation. The court ruled the earlier law violated federal rules against “discriminatory taxes” on digital transactions.

READ MORE: California, North Carolina Now Off Chicago's Travel Advisory, No New States Added But 38 Remain

The updated law addressed the court’s concerns. Illinois retailers supported the legislation to level the playing field for brick-and-mortar businesses.

It’s unclear how much sales tax Amazon sales will generate, but it could amount to tens of millions of dollars.

MORE NEWS: Red Cross Honors 16-Year-Old Hero Blair Holt, Who Lost His Life While Shielding Classmate From Gunfire

(© 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)