Because the purpose of signing a contract is the labor achievement of the contractor, the contractor can only be paid if he has completed the labor achievement. Trademark infringement is obviously an unfinished work, and you can bring a lawsuit to the people's court.
If you can give detailed information, you can give a more detailed answer.