Setting Up Lightning
Lightning Network support enables instant payments on your store pages. Buyers pay via Lightning and receive their games immediately — no waiting for block confirmations.
Prerequisites
You need a Lightning address from a compatible wallet or service. Popular options:
- Alby (
you@getalby.com) - Wallet of Satoshi (
you@walletofsatoshi.com) - Strike (
you@strike.me) - Zeus (self-hosted)
- Any LNURL-compatible service
Adding a Lightning Wallet
- Go to Payment Destinations (
/seller/payment-destinations) - Click Add Wallet
- Select Lightning Address as the type
- Enter your Lightning address (e.g.
alice@getalby.com) - Save
Enabling Lightning on a Store Page
- Go to Store Pages → Edit your page
- Toggle Lightning Enabled
- Select your Lightning payment destination
- Save
How It Works
When a buyer pays via Lightning:
Buyer scans Lightning invoice
→ Payment settles on seller's Lightning node
→ Webhook notification sent to Ludilol
→ Order immediately fulfilled
→ Games unlock in buyer's libraryWebhook
Lightning payments use a webhook to notify Ludilol of settlements. The webhook endpoint is:
POST /api/lightning/webhook/{webhookSecret}Each payment destination has a unique webhookSecret for authentication. The webhook validates:
- The secret matches the payment destination
- The payment amount matches the order
- The order exists and is in an open state
Lightning vs On-Chain
Lightning is optional — you can offer both payment methods on the same store page:
| Feature | On-Chain | Lightning |
|---|---|---|
| Setup | xpub/descriptor | Lightning address |
| Speed | Minutes to hours | Seconds |
| Buyer experience | QR code + wait | QR code + instant |
| Fees | Mining fee | Routing fee |