1
0
mirror of https://github.com/bumi/faraday_ln_paywall synced 2025-06-16 09:15:35 +00:00

Update README.md

This commit is contained in:
bumi 2018-10-27 18:04:35 +00:00 committed by GitHub
parent 246f11d7af
commit 44aa378861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ and sends Bitcoin [lightning payments](https://lightning.network/).
## How does it work?
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
a second request with the proof of payment.