This method of funding is otherwise known as a ‘partial Conditional Fee Agreement’ or a ‘Guaranteed Fee Agreement’.
With this type of agreement legal fees are payable in full in the event of success only (with or without a success fee), but a discounted fee will apply if the case is lost. The discount applied is negotiable and depends of the merits of your case.