This is a great contribution! There are content creators that wish to publish their content and ask for tips (SN), and there are others that want subscription based model (substack), but this enables another option where you can pay-as-you-go. There is a wordpress plugin that does something similar, but really... is wordpress usable by mere mortals anymore? It would be interesting to release the paywall after an expiry period so only new content (maybe something newer than 6 months) would need to be paid for. Something also valuable would be for the readers to have a lnauth account so they don't need to pay for the content again the next time they visit the site. You might also have a threshold for readers so if they pay so much per month they will gain access to all content until their pay-per-month quota falls back below that threshold.
Question: is there a sample site where the code is running?