The New Jersey Supreme Court has agreed to determine whether Princeton-based Heartland Payment Systems will be allowed to collect more than $2 million in counsel fees after it successfully fought an ex-employee’s lawsuit.

The court agreed to hear the company’s appeal on June 15. The justices will likely hear oral arguments in the court term that begins in September.