Bitcoin Lightning via CLINK
Bitcoin Lightning payment module for Medusa eCommerce via the CLINK protocol
- Category
- Payments
- Built by
- Woompaloompa
- Regions
- Worldwide
- Service
- CLINK
- Version
- 1.0.2
- Monthly downloads
- 83
- Last updated
Quality score
2/4Security, Passed5/5
- No install scripts, Passed
- No known vulnerabilities, Passed
- No malware reports, Passed
- No secrets in the package, Passed
- No obfuscation, Passed
Compatibility, Not checked1/5 · 4 not checked
- Medusa version ranges, Passed
- Clean installNot checked
- BuildNot checked
- MigrationsNot checked
- StartupNot checked
- We haven't installed this plugin into a test Medusa project yet.
Maintenance, Failed3/5 · 1 not checked
- Public repository, Passed
- Recent release, Passed
- Up to date with MedusaNot checked
- Tests in CI, FailedThe repository has no CI workflow that runs tests.
- Open-source license, Passed
Documentation, Passed3/3
- Setup instructions, Passed
- English, Passed
- Environment variables, Passed
Version 1.0.2 was checked on Medusa 2.23.1 on Dec 1, 2026. How Gorgo verifies plugins →
Maturity
First stable release on Jul 22, 2026, 3 versions, releases in 2 of the last 12 months. How Gorgo measures maturity →

medusa-plugin-bitcoin-lightning-via-clink
Bitcoin Lightning payment module for MedusaJS eCommerce via the CLINK protocol.
Features
- ⚡ Lightning Payments - Accept Bitcoin Lightning payments via CLINK protocol
- 🔒 Self-Custodial - Your node, your funds, no third-party
- 🌐 Nostr-Native - All communication via Nostr relays, no web server needed
- 💱 Auto Conversion - CoinGecko, Kraken, Fixed rate, or Manual
- 🔄 Subscriptions - Auto-renewal via CLINK Debits (nDebit)
- 📱 QR + Copy - Beautiful QR codes with one-click copy for invoices
- 🔐 Privacy - Ephemeral Nostr keys for payment requests
- 🛡️ Dual Confirmation - Webhook (primary) + Polling (backup)
- 📊 Admin Dashboard - Configure everything from the Medusa admin panel
What's in the Box
| Component | Description |
|---|---|
| Core payment provider with CLINK SDK integration | |
| Fiat-to-sats conversion (CoinGecko, Kraken, Fixed, Manual) | |
| Recurring payments via nDebit protocol | |
| Admin Settings Widget | Configure noffer, currency source, subscriptions, refunds |
| Storefront Component | QR code + copy + countdown timer + payment status polling |
| Webhook Endpoint | Real-time payment confirmations from CLINK relay |
| Status Endpoint | Backup polling for payment verification |
Quick Start
1. Install
2. Configure
Add to your :
3. Enable in Admin
- Go to Settings > Regions
- Edit your region
- Enable Lightning (CLINK) as a payment provider
4. Accept Payments!
Customers can now pay with Lightning at checkout.
Documentation
Full documentation lives on the GitHub Wiki:
- Getting Started
- Configuration
- Guide for Merchants
- Guide for Customers
- Guide for Subscriptions
- Currency Sources
- Troubleshooting
- FAQ
- Changelog
How It Works
No web server needed for your Lightning node. All communication flows over Nostr. See the Wiki architecture page for the full data flow.
Requirements
- Medusa v2.x
- Node.js >= 18.0.0
- A CLINK-compatible Lightning wallet/node:
- ShockWallet (iOS/Android/Desktop)
- Lightning.Pub (self-hosted)
- ZEUS (iOS/Android)
- Amethyst (Android)
- Electrum with CLINK plugin (Desktop)
Configuration Options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| string | Yes | - | Your CLINK offer string | |
| string | No | Exchange rate source | ||
| number | No | - | Fixed BTC rate (if using source) | |
| number | No | Invoice expiry in seconds | ||
| number | No | Polling interval in ms | ||
| boolean | No | Enable nDebit subscriptions | ||
| string | Only for subscriptions | - | Merchant Nostr pubkey (64-hex); required when | |
| string | No | - | HMAC secret to verify webhook payloads (see Security below) | |
| string | No | - | Merchant email for refunds | |
| string | No | - | Merchant Nostr for refunds | |
| boolean | No | Enable debug logging |
Security
v1.0.2 hardened the plugin against common payment and network attacks:
- BOLT11 validation - Invoices returned by your node are validated before being shown to customers: mainnet prefix, amount matches the requested total, and a reasonable expiry. Invalid invoices are rejected and the payment session is failed.
- SSRF protection - Relay URLs are validated ( only) and IP addresses are checked for safety. Localhost, domains, private/loopback/CGNAT/link-local IPs, and unsafe IPv6 ranges (ULA, link-local, multicast, IPv4-mapped) are rejected.
- Webhook signature verification - Confirmations sent to the webhook endpoint are verified with an HMAC-SHA256 signature before the order is confirmed. Set a shared secret and the plugin will reject unsigned or tampered webhooks.
- nDebit validation - Subscription debit pointers are decoded and validated (pubkey, relay) before use. A correlation key ties each debit request to the originating subscription.
- Payment hash correlation - The webhook verifies the payment's matches the expected session before confirming the order.
Webhook secret
Two ways to set it (env var takes precedence):
If no secret is configured, webhook signatures are not checked (single-tenant setups behind a firewall). Configure one in production. See the Configuration Wiki page for details.
See the Configuration Wiki page for details on each option.
Supported Wallets
For Merchants (to get your ):
- ShockWallet - Menu > Static Offer
- Lightning.Pub - Dashboard > Offers
- ZEUS - Settings > CLINK
For Customers (to pay):
Development
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
License
GPL-3.0 - See LICENSE for details.
Support
Other Conversations
- In Medusa GH forum: https://github.com/medusajs/medusa/discussions/16162
- In Medusa Discord: https://discord.com/channels/876835651130097704/1529853260276437123

