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

Create self-contained index.htm for public donations #5

Closed
meeDamian opened this issue Nov 6, 2018 · 4 comments
Closed

Create self-contained index.htm for public donations #5

meeDamian opened this issue Nov 6, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@meeDamian
Copy link
Member

Change this file to:

  1. call GET /invoice upon website load
    1. extract & remember .hash from JSON returned above
    2. extract .invoice from the JSON above, then prepend it with lightning:, and finally render and display QR code for it
  2. call GET /status/<hash> and wait for invoice status change (<hash> == .hash)
  3. upon successful payment or payment expiry, hide the QR and display info message
  4. add a button to generate a new invoice

LMK if you have any further questions.

@meeDamian meeDamian added the enhancement New feature or request label Nov 6, 2018
@meeDamian
Copy link
Member Author

Example response:

macos 2018-11-06 at 12 20 11

GET /invoice
{
  "hash": "ca757a45577f8b8ff144615d00a34e54652b6e3aabe295c3185b8cab36573265",
  "invoice": "lnbc1pd7zfp5pp5ef6h532h079clu2yv9wspg6w23jjkm36403ftscctwx2kdjhxfjsdqqcqzysxqz958jn5my53xv2hw5r6y8yh9y5g9h46dvazm967m5wjc3y3k7vrp5tj5zx7fptg7nrzygddpd2065asm7g8cvtxe78qsczqyjutky0upacqngk5wy"
}

GET /status/ca757a45577f8b8ff144615d00a34e54652b6e3aabe295c3185b8cab36573265
# will wait until status changes to either:
paid

# or
expired

@IstoraMandiri
Copy link

https://github.com/lncm/invoicer-ui

Just needs to be hooked up to real endpoints, but good to go otherwise...

@meeDamian
Copy link
Member Author

Temporarily exposed and available @ :

  • http://meedamian.ddns.net:2048/
  • http://meedamian.ddns.net:2048/invoice
  • http://meedamian.ddns.net:2048/status/<hash>

@meeDamian
Copy link
Member Author

Done & temporarily deployed to http://meedamian.ddns.net:2048 . Final deployment will be posted to lncm.io

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants