Chan Hsiung Lau's car was stopped by police as he attempted to enter the Wickerman Festival, near Kirkcudbright, in July 2011.
Cocaine worth £300, ecstasy worth £260 and diazepam worth £80 were found in a search of the vehicle, the Crown Office said.
The 31-year-old, from Paisley, admitted supplying drugs and was jailed for six months in October 2011.
Investigators examined Lau's financial records and identified a significant sum that he could not account for.
The £130,000 confiscation order was made at Kirkcudbright Sheriff Court.
Lindsey Miller, head of the Crown Office serious and organised crime division, said: "As Lau has now discovered, anyone convicted of drug trafficking, no matter the quantities, should expect to be made subject to the scrutiny of specialist teams from law enforcement and the Crown."
Money recovered under the Proceeds of Crime Act is given to local projects through the CashBack for Communities scheme.