This is a change to the API to enable 3rd parties that know an invoice id to check on its status. Useful for applications such as split payments where the authorizing server wants to confirm that an invoice exists to pay which will return a preimage that can be used to redeem a hodl invoice.
Also fixes bug where payment hash was not being passed to create a hodl invoice
Changes include:
bug fixes to tests
can either send invoice id in a query parameter OR make the request with an LSAT
If a valid LSAT has been sent then the preimage will also be sent back in the response otherwise just the non-sensitive invoice details
pass payment hash as ID to lnservice call to create hodl invoice
This is a change to the API to enable 3rd parties that know an invoice id to check on its status. Useful for applications such as split payments where the authorizing server wants to confirm that an invoice exists to pay which will return a preimage that can be used to redeem a hodl invoice.
Also fixes bug where payment hash was not being passed to create a hodl invoice
Changes include: