Accept Bitcoin Lightning payments in Medusa with your own wallet and optional USDT, USDC, SOL and ETH swaps.
Take Bitcoin Lightning payments in Medusa, straight into your own wallet. The buyer pays at the storefront's checkout, and the order is placed once the payment settles.
OpenReceive supports optional swaps from USDT, USDC, SOL, and ETH through a configured swap provider. The provider converts the payment to BTC over Lightning, which settles into the merchant's connected wallet. Available assets and networks depend on the provider; swaps are optional.
Medusa keeps carts, orders, prices and customers. The plugin keeps payment attempts in two tables of Medusa's own database, and a settled payment is captured and its cart completed through Medusa's own process-payment workflow, even when the buyer has left the page.
Docs and setup: Medusa quickstart
Requires Medusa 2 on Node 22.12 or later, with Medusa's PostgreSQL database. This package is ESM-only.
In :
Then, with (and optionally ) in the Medusa server's :
creates the two tables, the script offers the provider () in every region, and checks the codes and the wallet. The storefront shows the checkout from ; the quickstart has the code for Medusa's Next.js starter.
Part of OpenReceive. MIT licensed.
npm install @openreceive/medusa1plugins: [{ resolve: "@openreceive/medusa", options: {} }],2modules: [3 {4 resolve: "@medusajs/medusa/payment",5 options: {6 providers: [{ resolve: "@openreceive/medusa/providers/openreceive", id: "openreceive" }],7 },8 },9],1npx medusa db:migrate2npx medusa exec ./node_modules/@openreceive/medusa/dist/enable-openreceive.js3npx openreceive doctor