By the way, this app is quite useless.
It is just to parse the sample payload which has no real life use case.
The actual useful function is to generate the invoice payload which I am working on, that I don't think I want to share.
However, it is good to see what items are involved to study the structure of the invoice.