How does the invoice payment work?