Back in the good old days, I used to bill by the hour, just like every other lawyer. I had a simple retainer agreement with my clients which essentially provided that they agreed to pay my hourly rate for all of the hours that I spent on their matters.
When the work was done, I would send my bill to the client calculated by multiplying the time spent by my hourly rate. Then my client would pay the bill. Life was simple.