LOS ANGELES — A secretly recorded tape of Donald Trump by his longtime personal lawyer was played on CNN Tuesday night in which the two can be heard discussing a potential payment for a Playboy model’s story about an alleged affair and the soon-to-be president is heard discussing whether to “pay with cash.”

The audio recording, surreptitiously made by Trump’s former personal lawyer Michael Cohen two months before the 2016 presidential election, was provided to CNN by Cohen’s attorney, Lanny Davis.

The conversation between Trump and Cohen came weeks after the National Enquirer’s parent company reached a $150,000 deal to pay former Playboy model Karen McDougal for her story of a 2006 affair, which it never published, a tabloid practice known as catch and kill. Trump denies the affair ever happened and his campaign had said he knew nothing about the payment.

Trump and Cohen appear to be discussing buying the rights to McDougal’s story from the Enquirer’s parent company.

Cohen can be heard on the tape saying that he needed to start a company “for the transfer of all of that info regarding our friend David,” a possible reference to David Pecker, Trump’s friend and president of the National Enquirer’s parent company, American Media Inc.

When Cohen begins to discuss financing, Trump interrupts him and asks, “What financing?”

“We’ll have to pay,” Cohen responded.

The audio is muffled, but Trump can be heard saying “pay with cash,” though it isn’t clear if he is suggesting to pay with cash or not to pay with cash. Cohen immediately says, “No, no, no” and Trump can then be heard saying, “check.”

A transcript of the conversation provided by Trump’s current attorney, Rudy Giuliani, says Trump actually said, “Don’t pay with cash…check.”

Last week, Giuliani said the recording would prove that “the president said it has to be done correctly and it has to be done by check.”

“The transcript that we provided CNN accurately reflects the taped conversation,” Giuliani told The Associated Press on Tuesday.

“Listen to the tape. Donald Trump is not shocked money is being paid about someone named Karen McDougal,” Davis said during an interview with CNN.

Davis said his client — who is under investigation by federal officials in New York — “has been disparaged and insulted and called all kinds of things.”

“He’s got truth on his side and he’ll continue to tell the truth,” Davis said.

Davis did not immediately respond to a request for comment from the AP on Tuesday night.

American Media, Inc.’s payment effectively silenced McDougal through the election, though days beforehand news of the deal emerged in The Wall Street Journal. At the time, a Trump spokeswoman said his campaign had “no knowledge of any of this.”

The FBI raided Cohen’s office, home and hotel room in April, searching in part for information about payments to McDougal and porn actress Stormy Daniels, who says she had a sexual relationship with Trump in 2006 — which Trump denies — and was paid $130,000 as part of a non-disclosure agreement signed days before the 2016 election.

A dozen audio recordings seized during those raids were forwarded to federal prosecutors last week after lawyers dropped challenges on attorney-client privilege grounds.

Trump and Cohen can also be heard discussing other legal issues, including fighting a request by The New York Times to unseal court records concerning Trump’s divorce from his first wife, Ivana.

Associated Press writers Eric Tucker in Washington and Michael R. Sisak in New York contributed to this report.