The actress Stephanie Clifford, who uses the stage name Stormy Daniels, arrives to perform at the Solid Gold Fort Lauderdale strip club on March 9, 2018 in Pompano Beach, Florida. Getty Images

The lawyer for adult entertainment star Stormy Daniels has filed a motion in a California court seeking to force President Donald Trump, and his lawyer Michael Cohen, to testify under oath. On the eve of the 2016 presidential election, Daniels accepted $130,000 from Cohen and signed an agreement, using a pseudonym, to not talk about an alleged relationship with Trump. Through spokespeople, Trump has denied that he had an affair with Daniels. Now Daniels' attorney, Michael Avenatti, has requested a deposition of "no greater than two hours" of the president. The main aim is to ask Trump if he knew about the payment. The deposition references Stephanie Clifford a.k.a. Stormy Daniels a.k.a. Peggy Peterson. The U.S. president is referred to as Donald J. Trump a.k.a. David Dennison.

President Donald Trump and Stormy Daniels. Getty Images

Dennison is the name used in the non-disclosure agreement (NDA) that the adult star signed with Trump's personal counsel, Michael Cohen. Daniels' lawyer has argued that the NDA is invalid as it was never signed by Trump. The request to the court also asks to depose Michael Cohen, Trump's lawyer who has said he made a $130,000 "hush money" payment to Stormy Daniels. Cohen has claimed the money was from his own funds and was done without the knowledge of the president. Daniels has previously offered to give back the money she got from Trump's lawyer in exchange for the right to publish "any text messages, photos and/or videos" she has relating to Trump.

WATCH: Trump's lawyer says he paid Stormy Daniels from his own pocket