Adnan Ul-Haq became the main target of a police operation aimed at tackling the illegal trade in Class A drugs in West Lothian.
Ul-Haq, 32, was jailed for four and a half years in 2007 for a cocaine offence but was freed in the summer of 2009.
But while out of prison on licence Ul-Haq, who worked in a family Costcutter store in Blackburn, in West Lothian, returned to the cocaine trade in 2010.
Ul-Haq’s counsel Susan Duff told the High Court in Edinburgh that an agreement had been reached to settle the proceeds of crime action.
Ul-Haq was given six months to pay the £24,000 at yesterday’s hearing.