lnbits-legend/lnbits/extensions/satspay
calle 5a12f4f237
Improved SSE listeners (#865)
* logging listeners

* comments

* generate privkey upon init

* listener queue

* remove duplicate check

* make format

* reuse channel

* error handling in sse listener

* uuid for listeners

* register named invoices

* uuid for listeners and listener list

* fix poetry lock

* setuptools

* requirements asyncio timeout

* setuptool;s

* make format

* remove async-timeout

* async_timeout readd

* try lower setuptools version

* try lower lower setuptools version

* back to current version + fix, maybe

* fix worflows to use poetry 1.2.1

* remove uneeded setuptools from build-system

* fix up formatting workflow

* debug to trace

* more traces

* debug logs to trace

Co-authored-by: dni  <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
..
static/js chore: code clean-up 2022-07-28 15:35:54 +03:00
templates/satspay chore: code clean-up 2022-07-28 15:35:54 +03:00
__init__.py feat: extract utils to static/js 2022-07-28 15:34:36 +03:00
config.json satspay ext added 2021-10-14 10:02:02 +01:00
crud.py chore: code format 2022-07-28 16:34:42 +03:00
migrations.py satspay ext added 2021-10-14 10:02:02 +01:00
models.py fix: at least one charge must be active in order to fetch balance 2022-07-28 15:35:54 +03:00
README.md satspay ext added 2021-10-14 10:02:02 +01:00
tasks.py Improved SSE listeners (#865) 2022-10-04 09:51:47 +02:00
views_api.py feat: return time_elapsed, time_left and paid fields 2022-07-28 15:35:39 +03:00
views.py Fix/tipjar desc and satspay (#824) 2022-08-02 16:16:32 +02:00

SatsPay Server

Create onchain and LN charges. Includes webhooks!

Easilly create invoices that support Lightning Network and on-chain BTC payment.

  1. Create a "NEW CHARGE"
    new charge
  2. Fill out the invoice fields
    • set a descprition for the payment
    • the amount in sats
    • the time, in minutes, the invoice is valid for, after this period the invoice can't be payed
    • set a webhook that will get the transaction details after a successful payment
    • set to where the user should redirect after payment
    • set the text for the button that will show after payment (not setting this, will display "NONE" in the button)
    • select if you want onchain payment, LN payment or both
    • depending on what you select you'll have to choose the respective wallets where to receive your payment
      charge form
  3. The charge will appear on the Charges section
    charges
  4. Your costumer/payee will get the payment page
    • they can choose to pay on LN
      offchain payment
    • or pay on chain
      onchain payment
  5. You can check the state of your charges in LNBits
    invoice state