(CNN) A New Jersey woman faces four years in state prison for her role in scamming more than $400,000 from GoFundMe donors, claiming to be collecting money for a homeless man in Philadelphia.

Katelyn McClure, 29, pleaded guilty to one count of theft by deception in the second degree Monday in Burlington County, New Jersey.

In the viral story from 2017 that made national headlines, New Jersey resident McClure ran out of gas and was stranded on Interstate 95 in Philadelphia. The homeless man, Johnny Bobbitt Jr., supposedly saw her and gave her his last $20 for gas.

McClure and her then-boyfriend, Mark D'Amico, posted about the "good deed" on social media, including a picture of her with Bobbitt on a highway ramp. They also started a GoFundMe campaign to raise money for the homeless man, saying they wanted to pay it forward to the good Samaritan and get him off the streets.

Bobbitt pleaded guilty at the local level to one count of conspiracy to commit theft by deception last Friday. He faces a five-year special probation period that requires him to enter the state Superior Court drug court program, in which he'll be expected to get a job and adhere to a structured regimen of treatment and recovery services. Any infractions could bring him a five-year prison sentence, according to Joel Bewley, a spokesman for the Burlington County Prosecutor's Office.

Read More