"I haven't paid him for the ticket."
What is the translation of this sentence? Translating directly would give
Je ne l'ai pas payé pour le billet.
where the direct object is the person.
However, looking at the verb payer, it seems that the thing that is paid for should be the direct object. Does that mean the sentence should instead be the following?
Je ne lui ai pas payé le billet.
where the indirect object is the person.