In the book (1900): The Wizard demands nothing upfront. He agrees to grant wishes if they kill the Wicked Witch of the West and bring her broomstick.
No quid pro quo for Dorothy's return. The Wizard cannot send her home (no magic). Glinda reveals the shoes' power after the Witch is dead.
Dorothy's real payment: Courage, compassion, self-knowledge — earned on the journey.