Menu

Lightning checkout for static digital products with OpenReceive, NWC, and Netlify Functions
📰

Lightning checkout for static digital products with OpenReceive, NWC, and Netlify Functions

DEV Community: javascript·SecondWindMC·10 days ago
#9sTlveIL
#devtojavascript#devto#dev#checkout#payment
Long article (902 words) — no AI summary yet.
Reading 0:00
15s threshold

I recently needed a way to sell small digital downloads from a static GitHub Pages site without adding a conventional backend, merchant account, database, or card processor.

The store now has a working Lightning checkout built from three pieces:

a static HTML form

a Netlify Function that owns prices and creates invoices

OpenReceive connected to a receive-only Nostr Wallet Connect (NWC) wallet

The live checkout is used for the SecondWindMC digital products store and the Circuit UI SFX pack . This article is the implementation pattern and the important caveats.

The shape of the checkout

The static page does not mint invoices in the browser.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.