In case brought by Prince Harry and others, Daniel Portley-Hanks says he received about $1m for work for Associated Newspapers Ltd

A US-based private detective bought a large house in California and had $150,000 in savings “almost entirely” from work he did for the publisher of the Daily Mail, the high court has heard.

Daniel Portley-Hanks, also known as “Detective Danno”, said he received about $1m for work carried out for the Mail on Sunday, another title published by Associated Newspapers Ltd (ANL).

Giving evidence, Portley-Hanks said he went bankrupt after the publisher stopped using his services after the 2012 Leveson inquiry into the practices of the press. He said he had been told he could keep working for the publisher only if he gave up his private investigator’s licence.

Portley-Hanks, 79, was giving evidence in a case brought by seven claimants, including Prince Harry, who accuse ANL of using unlawful information gathering techniques over decades.