How to manage payment and invoicing