-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
WoompaLoompa edited this page Jul 22, 2026
·
3 revisions
Complete guide to install and set up the CLINK payment plugin for Medusa.
- Medusa v2.x store
- Node.js 18+
- Lightning wallet/node with CLINK support
| Wallet | Platform | Link |
|---|---|---|
| ShockWallet | iOS/Android/Web | shockwallet.app |
| Lightning.Pub | Self-hosted | lightning.pub |
| ZEUS | iOS/Android | zeusln.com |
| Electrum | Desktop | requires plugin |
# In your Medusa project root
npm install medusa-plugin-bitcoin-lightning-via-clinkimport { Modules } from "@medusajs/framework/utils"
module.exports = defineConfig({
modules: [
{
resolve: "@medusajs/medusa/payment",
options: {
providers: [
{
resolve: "medusa-plugin-bitcoin-lightning-via-clink",
id: "clink",
options: {
// Required: Your CLINK offer string
noffer: "noffer1...",
// Optional: Currency source (default: coingecko)
currencySource: "coingecko",
// Optional: Invoice timeout in seconds (default: 600)
invoiceTimeout: 600,
// Optional: Enable subscriptions
enableSubscriptions: false,
// Optional: Debug logging
debug: false
}
}
]
}
}
]
})Using ShockWallet (Recommended):
- Download ShockWallet
- Create/import your Lightning wallet
- Go to Menu → Static Offer
- Copy the
noffer1...string - Paste into your config
npm run dev- Go to Medusa Admin → Settings → Regions
- Edit your region
- Under Payment Providers, enable Lightning (CLINK)
- Save
- Add a product to cart
- Go to checkout
- Select Lightning (CLINK)
- Scan the QR code with your wallet
- Pay!
- Configuration - All available options
- Subscriptions - Enable auto-renewal
- Troubleshooting - Common issues