BOSTON (AP) — A Massachusetts-based company that provides caregivers for children and the elderly has agreed to pay nearly half a million dollars to settle claims by the state that it misled clients on the thoroughness of caregiver background checks.

Attorney General Maura Healey says Waltham-based Care.com violated the state's Consumer Protection Act.

Care.com will pay $355,000 to the state, and refund about $127,000 to customers who purchased premium background checks from 2013 to 2016.

A nanny in 2013 stole nearly $300,000 from her client's bank account. She had been approved by Care.com despite a history of fraud convictions.

In a statement to the Boston Herald, a Care.com spokeswoman denied the company's background check descriptions violated the law, but settled to avoid the expense of litigation.