Lightning Network Payments for Merchants
Instant Bitcoin payments, sub-cent fees, works for microtransactions. Setup paths explained.
Key takeaways
- Lightning = Bitcoin payments that settle in <1 second for <1 cent in fees.
- Easiest path: custodial providers (Strike, OpenNode, Coinos). 15-min setup, 0.5–1% fees.
- Self-hosted: BTCPay Server on a small box. No per-transaction fees beyond network costs. 10–40 hr learning curve.
- Auto-convert to USD: most providers let you receive Lightning, settle in fiat to your bank.
How Lightning works, briefly
Bitcoin\'s base layer processes around 7 transactions per second globally. Fees can spike to several dollars. Not suitable for $2 coffee purchases.
Lightning is a Layer-2 protocol: participants open payment channels by locking Bitcoin on-chain, then transact within the channel freely. On-chain settlement happens only when channels open or close. Routing across a network of channels lets anyone pay anyone else, even without a direct channel between them.
End result for merchants: you show a QR code or Lightning address, customer pays, confirmation in under 1 second, fee of a few satoshis.
Path 1: Custodial provider (easiest)
Strike
- Sign up for business account, verify identity
- Get a Lightning address (looks like an email: `[email protected]`)
- Integrate via API or display QR code on checkout
- Fees: ~1% transaction fee; auto-conversion to USD available
- Available in US + El Salvador + expanding; great API documentation
OpenNode
- Similar setup model, available in more countries
- Transaction fee ~1%
- Plugins for Shopify, WooCommerce, Magento
Coinos
- Lighter touch — web wallet + API
- Lower fees than Strike/OpenNode for pure Lightning use
- Less suitable for large merchants needing SLAs
Path 2: Self-hosted (BTCPay Server)
BTCPay Server is the dominant open-source merchant stack. Runs on a small computer (Raspberry Pi, small VPS, or a StartOS box). Integrates with your own LND or Core Lightning node. Provides:
- Merchant dashboard
- Invoice creation via API
- Plugins for Shopify, WooCommerce, PrestaShop, Magento, Drupal, and more
- Support for Bitcoin on-chain + Lightning + Liquid Bitcoin + some altcoins
- No per-transaction fee to a third party — only the network fee
Tradeoffs: you manage the node, including channel liquidity, backups, security, uptime. A medium-effort task; if your technical skills are limited, stay custodial.
Path 3: Hybrid — BTCPay pointing at a managed node
Some providers (Voltage, Greenlight) give you a Lightning node as a service — they manage uptime and channel liquidity, you connect BTCPay Server to it. Fees higher than pure self-hosted but lower than custodial, with less operational burden than full self-hosting.
Handling fiat settlement
Most small merchants accept Lightning but want USD in the bank — not Bitcoin price volatility. Options:
- Auto-convert via custodial provider (Strike, OpenNode): Lightning in, USD out to bank. Handles price-stability and regulatory burden.
- Keep-in-Bitcoin: receive Lightning payments, keep balance in BTC, withdraw periodically. Tax implications: you realize gain or loss each time you convert to fiat (US specifically). Not ideal for most small merchants.
Integration examples
Shopify
Install the OpenNode app, connect API key, enable at checkout. Shopify\'s regular checkout flow surfaces Lightning as a payment method.
WooCommerce
Install BTCPay for WooCommerce plugin (free), configure with your BTCPay Server URL, enable Lightning payments at checkout.
Custom (REST API)
Create an invoice via POST (provider-specific). Customer scans resulting BOLT11 invoice or Lightning address. Poll or webhook for payment confirmation. Mark order as paid. Simplest end-to-end in about 30 lines of code using a library like `lnurl-js` or a provider SDK.