Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lnbits/satspay
Create onchain and LN charges
https://github.com/lnbits/satspay
Last synced: about 1 month ago
JSON representation
Create onchain and LN charges
- Host: GitHub
- URL: https://github.com/lnbits/satspay
- Owner: lnbits
- License: mit
- Created: 2023-02-17T14:34:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T20:47:56.000Z (about 2 months ago)
- Last Synced: 2024-10-26T08:13:26.442Z (about 2 months ago)
- Language: Python
- Size: 597 KB
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lnbits - SatsPay Server - Create onchain and LN charges. Includes webhooks (Uncategorized / Uncategorized)
README
# SatsPay Server - [LNbits](https://github.com/lnbits/lnbits) extension
For more about LNBits extension check [this tutorial](https://github.com/lnbits/lnbits/wiki/LNbits-Extensions)
## Create onchain and LN charges. Includes webhooks!
Easily create invoices that support Lightning Network and on-chain BTC payment.
1. Create a "NEW CHARGE"\
![new charge](https://i.imgur.com/fUl6p74.png)
2. Fill out the invoice fields
- set a description for the payment
- the amount in sats
- the time, in minutes, the invoice is valid for, after this period the invoice can't be paid
- 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 on-chain 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](https://i.imgur.com/F10yRiW.png)
3. The charge will appear on the _Charges_ section\
![charges](https://i.imgur.com/zqHpVxc.png)
4. Your customer/payee will get the payment page
- they can choose to pay on LN\
![offchain payment](https://i.imgur.com/4191SMV.png)
- or pay on-chain\
![onchain payment](https://i.imgur.com/wzLRR5N.png)
5. You can check the state of your charges in LNbits\
![invoice state](https://i.imgur.com/JnBd22p.png)