mirror of
https://github.com/bumi/faraday_ln_paywall
synced 2025-06-16 17:25:35 +00:00
Update README.md
This commit is contained in:
parent
246f11d7af
commit
44aa378861
@ -7,7 +7,7 @@ and sends Bitcoin [lightning payments](https://lightning.network/).
|
|||||||
## How does it work?
|
## How does it work?
|
||||||
|
|
||||||
This Faraday middleware checks if the server responds with a `402 Payment Required` HTTP status code and
|
This Faraday middleware checks if the server responds with a `402 Payment Required` HTTP status code and
|
||||||
a lightning invoice ([BOLT311](https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md)).
|
a lightning invoice ([BOLT11](https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md)).
|
||||||
If so it pays the invoice through the connected [lnd node](https://github.com/lightningnetwork/lnd/) and performs
|
If so it pays the invoice through the connected [lnd node](https://github.com/lightningnetwork/lnd/) and performs
|
||||||
a second request with the proof of payment.
|
a second request with the proof of payment.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user