The New Jersey man and mastermind of a high profile GoFundMe scam that cheated donors out of more than $400,000 with a fake story about a homeless veteran -- has pleaded guilty to a state charge against him and could spend five years in prison.

He's also expected to pay restitution to those impacted by his costly deception.

Mark D'Amico entered a guilty plea in Burlington County Superior Court on Friday morning for one second-degree-felony count of misapplication of entrusted property that stemmed from the 2017 scheme. He's currently facing federal wire fraud and money laundering and his sentence is expected to run concurrently with any additional federal sentence he could face, according to WABC.

TWO NEW YORK CHILDREN, TWO ADULTS FOUND DEAD IN SUSPECTED MURDER-SUICIDE, REPORTS SAY

In 2017, D'Amico, along with his then-girlfriend Kately McClure and homeless veteran Johnny Bobbitt, made up a fictitious story about Bobbit giving them $20 to help McClure after her car had run out of gas on the side of a Philadelphia highway.

The couple then created a GoFundMe campaign they said was designed to help Bobbitt.

The scam eventually netted them $400,000 -- much of which was spent on lavish gifts, including a BMW, designer bags and trips to Las Vegas, investigators said.

"The entire campaign was predicated on a lie. It was fictitious and illegal -- and there are consequences," prosecutor Scott Coffina told the Guardian during an earlier hearing.

FATHER OF MISSING 1-YEAR-OLD CONNECTICUT GIRL ARRESTED ON WEAPONS CHARGES

Bobbit was arrested last November by U.S. Marshals after he sued the couple for not giving him his share of the money. D'Amico and McClure surrendered soon after and were charged with theft by deception, the outlet added.

Bobbitt and Katelyn McClure pleaded guilty back in March for the theft charges, according to NBC News. But federal prosecutors filed additional charges against him in October.

GoFundMe said it refunded everyone who contributed money to the fake campaign.

The CEO of GoFundMe, Rob Solomon gave his thoughts to NBC Nightly News on whether they would catch the scam if it happened today.

CLICK HERE TO GET THE FOX NEWS APP

“We would have determined the whole bank account issue if we would have figured out how to set up a bank account, make sure the funds flowed through the right way, and we would have heard from the community, just like we had in that case,” he told the Philadelphia Inquirer. “We wouldn’t let the money leave the building until we could figure out how to get the flow of funds to the beneficiary.”