He pleaded guilty to stealing a bottle of Calvin Klein aftershave at Hickey's Pharmacy, Phibsboro, on November 2, 2012.
The prosecuting garda told the court the accused passed all points of payment before being arrested and taken to Mountjoy Garda Station.
Kelly had since moved away from the area, where there was a "negative peer group influence" and "too much temptation", his solicitor said.
Judge Michael Walsh was told the product was often sold on the black market and was not for Kelly's own personal use.
Kelly was fined €300 at Dublin District Court for the theft.