The ex-doorman for a Trump property in Manhattan was paid $30,000 by the National Enquirer to spill allegations that Donald Trump had an out-of-wedlock child, but the story was never published.

On Thursday, he identified the woman who had the child as a former housekeeper for the future president.

“Today I awoke to learn that a confidential agreement I had with AMI (The National Enquirer) with regard to a story about President Trump was leaked to the press,” Dino Sajudin said in a statement.

“I can confirm that while working at Trump World Tower I was instructed not to criticize President Trump’s former housekeeper due to a prior relationship she had with President Trump that produced a child.”

American Media Inc., which paid $150,000 to a former Playboy Playmate who claimed she’d had an affair with Trump, made the payment to Sajudin in exchange for him signing over the rights “in perpetuity” to a rumor he heard about Trump’s sex life, the Associated Press reported.

The contract stipulated that he would have to pay a $1 million penalty if he talked about the rumor or the deal to remain quiet.

The unidentified woman at the center of the story “emphatically” denied to the wire service that she had an affair with Trump.

“This is all fake,” she said.

After the Trump Organization called Sajudin’s claims “completely false,” he denied making up the allegations.

“You know I took a polygraph test,” he told The Washington Post, claiming the story was killed because American Media has a history of protecting Trump from negative stories.

“It seems like the writing is on the wall about that, it’s pretty clear,” Sajudin said before referring more questions to his lawyer.

But his ex-wife, Nikki Benfatto, reportedly said that her former hubby was nutso and a pathological liar.

“He’s infamous for making up stories. He’s seen the chupacabra,” she said, referring to a monstrous, dog-like mythical figure that kills and drinks the blood of livestock.

“He’s seen Bigfoot. One of our friends who passed away, he saw him too, walking down the street.”

Dylan Howard, the Enquirer’s editor-in-chief and an executive at American Media, acknowledged paying Sajudin but said the story ultimately was spiked because it “lacked any credibility,” the AP reported.

“Unfortunately … Dino Sajudin is one fish that swam away,” he told sister publication RadarOnline, which wrote Wednesday about a “disaffected former Trump staffer who is peddling” the allegation to other media outlets.