contingency fee

NOUN

a sum of money that a lawyer receives as a fee only if the case is won.