Merge pull request #29 from simoendem/generate-invoice

i hope this is the last initiation of payment
fixing generate-invoice & payment process