Toy guns are seen on a table as State Attorney General Eric Schneiderman announces that retailers have agreed to halt the sales of life-like toy guns in New York on Aug. 3, 2015. (credit: Peter Haskell/WCBS 880)

NEW YORK (CBSNewYork/AP) — Retailers including Walmart, Sears and Amazon have agreed to halt the sales of life-like toy guns in New York.

State Attorney General Eric Schneiderman said Monday that the retailers also have agreed to pay over $300,000 in penalties.

Schneiderman’s office found that over 6,400 toy guns sold from 2012 to 2014 violated New York laws. Most of the toys were sold online. The deal requires those retailers to apply New York City’s strict standards to sales statewide.