Pay-when-paid with no end date, months later
For the hardest version: you agreed to wait for the agency's client, the agreement has no limit, and the wait has become months.
Hi [client name],
Invoice [invoice number] for [amount] went to you on [invoice date]. I agreed to wait until your client paid, and I have.