2021-10-14 10:02:02 +01: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"\
|
|
|
|

|
|
|
|
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\
|
|
|
|

|
|
|
|
3. The charge will appear on the _Charges_ section\
|
|
|
|

|
2022-11-19 21:10:12 +01:00
|
|
|
4. Your customer/payee will get the payment page
|
2021-10-14 10:02:02 +01:00
|
|
|
- they can choose to pay on LN\
|
|
|
|

|
|
|
|
- or pay on chain\
|
|
|
|

|
2022-11-30 14:14:31 +00:00
|
|
|
5. You can check the state of your charges in LNbits\
|
2021-10-14 10:02:02 +01:00
|
|
|

|