Skip to content
WoompaLoompa edited this page Aug 1, 2026 · 5 revisions

Bitcoin Lightning CLINK Plugin for Vendure

Accept Bitcoin Lightning payments in your Vendure store via the CLINK protocol — Nostr-native static payment codes.

Features

  • CLINK Protocol: Nostr-native payment codes (noffer format)
  • BTC Price Oracle: Real-time conversion via CoinGecko, Kraken, or custom providers
  • Per-Channel Config: Separate Nostr keys and relays per channel
  • HTTP Webhook Fallback: For wallets without Nostr support
  • Storefront Component: React component with relay info display

Quick Start

npm install vendure-plugin-bitcoin-lightning-via-clink
import { ClinkPlugin } from 'vendure-plugin-bitcoin-lightning-via-clink';

export const config = {
  plugins: [
    ClinkPlugin.init({
      relays: ['wss://relay.damus.io'],
      webhookSecret: 'your-secure-random-hex',
      network: 'mainnet',
      oracle: {
        provider: 'coingecko',
        cacheTtlMs: 60000,
        fallbackProviders: ['kraken'],
      },
    }),
  ],
};

Note: webhookSecret is required when using the HTTP webhook fallback. Generate with: openssl rand -hex 32

Documentation

Links

Conversations

Clone this wiki locally