pull down to refresh

A tutorial on how to build a simple paywall in React which is payed with bitcoin over the Lightning Network. We dynamically create new invoices by using an API from LNBits.

The lightning browser extension I use: https://getalby.com/

Tutorial for the WebLN package: https://www.youtube.com/watch?v=fTzW9iJhiNg&t=29s

Start code for coding along: https://github.com/theGrape1337/ln-paywall/tree/start-code

Final code: https://github.com/theGrape1337/ln-paywall

Timecodes:

00:00 Introduction 01:08 Code walk through 03:10 Manage payment 07:00 Create invoices 11:35 Payment routing