Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

feature request: return invoice for given url parameters in useable formats for integration with external applications #458

Open
vv01f opened this issue Apr 15, 2023 · 0 comments

Comments

@vv01f
Copy link

vv01f commented Apr 15, 2023

This may be out of scope for this webservice, just dropping it anyway.

Situation: I have some other POS / stock management (maybe even think as far as web shop and lnswitch) for products and want to use your webservice for very easy integration of payment with lightning.

Currently:

  • I can hand out the link to other people and have no need to trust them with handling the received sats. awesome.
  • I can generate a link with the url parameters with many ISO currencies already. very nice, I dont need to calculate for sats value nor have to denominate in sats but still can.
    Just it is necessary to confirm again and manually operate on the invoice via qr or text.

Basic Problem: This is not a good user experience. Staff training might be difficult but an option, operation by users directly is not practical.

Solution: I'd like to be able receive the invoice in a proper format and make it directly useable by basically any application with a single request to the webservice.

such formats useable could be e.g.:

  • text of the resulting invoice
  • qr image of the resulting invoice
  • json including different encodings or parts easy to encode in the integrating applications

some more parameters useful might be

  • invoice type (bolt 11, maybe even bolt 12 in future, lnurl taking preserving the valued of given parameters, …)
  • encoding format (text, incoice as json, data as json, qr as image file, qr as data-url)
  • maybe image format (svg, png)

problems I see:

  • this might enable DOS for the webservice, some API management might be desirable
  • maybe it's regarded abuse of this service and should be a seperate one
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant