Integration Module 2.0 for Medusa is outRead the announcement
Medusa logo

Medusa

Accept Bitcoin Lightning payments in Medusa with your own wallet and optional USDT, USDC, SOL and ETH swaps.

npm install @openreceive/medusa
Category
Built by
Regions
Worldwide
Version
0.4.35
Last updated
5 days ago
Monthly downloads
Loading downloads

@openreceive/medusa

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

Install

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.

What the plugin adds

  • A payment provider: a session is captured once its payment settles in the wallet, and Medusa refuses to complete the cart before that. A refund made in the admin is recorded only; send it from your own wallet.
  • The checkout's routes under , behind Medusa's publishable API key.
  • A job every minute that finds a payment whose buyer left the page and has Medusa place the order.
  • A migration script that creates and .

Part of OpenReceive. MIT licensed.