Gov. Bob McDonnell’s administration has reached a deal with Inc. for the giant online retailer to start collecting sales taxes in Virginia.

The agreement calls for Amazon to start collecting the taxes of purchases made by Virginians on Sept. 1, 2013.

The Richmond Times-Dispatch reports that the company would be collecting the taxes about 10 months after Amazon plans to open two large distribution centers in Chesterfield and Dinwiddie counties.

The House of Delegates finance committee on Wednesday approved legislation authorizing the state to require an out-of-state seller with distribution facilities or other related entities in the state to collect sales taxes.

The bill’s fiscal impact statement estimates that Virginia could gain up to $24 million in uncollected tax revenue annually.