OpenReceive for Magento

Accept Bitcoin & Stablecoin Payments With Magento

Take Bitcoin Lightning in Magento with the OpenReceive module: the customer picks Bitcoin Lightning at checkout and pays on the order's pay page, straight into your own wallet. Stablecoin payments are optional.

Plugin

Copy agent directions — Paste into Claude Code, Codex or Cursor to add OpenReceive to your Magento app.

Why OpenReceive

Try the checkout your customers will see

Magento customers see this same checkout on the order's pay page; here it runs in the openreceive.org demo shop. The live demo needs JavaScript: open the OpenReceive home page.

Six steps, no code

Requires Magento Open Source 2.4.7 or later with the Luma checkout, PHP ≥ 8.2 with GMP and sodium, Magento's cron.

1. Get a receive-only NWC code — get one here. It can issue invoices and watch for payment, and it can never spend from your wallet.

2. Get an LSC code for swaps (optional) — from a swap provider, only if customers should be able to pay in USDT, USDC, ETH or SOL.

3. Install the module

composer require openreceive/magento2-module

4. Enable the module — Run bin/magento module:enable OpenReceive_Payment and bin/magento setup:upgrade, which creates the module's two tables. In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy, as after any module.

5. Connect the wallet — Open Stores > Configuration > Sales > Payment Methods > Bitcoin Lightning (OpenReceive), paste the NWC code, plus the LSC code if you want swaps, and set Enabled to Yes, or save the codes with bin/magento openreceive:configure. Saving asks the wallet first and refuses a code that can spend.

6. Install Magento's cron — Run bin/magento cron:install if Magento's cron is not installed yet. The module's reconcile job runs every minute and records payments whose customer closed the pay page.

Full Magento quickstart · Plugin source

How it runs

Tested on
Magento Open Source 2.4.8-p3 in production mode with MariaDB 11.4 and OpenSearch 2.19, in Docker
Databases
MySQL or MariaDB, Magento's own database
Secrets
Magento's configuration, encrypted with the store's own key
Refunds
Refund a settled Lightning payment from your own wallet: the wallet code is receive-only. A customer reclaims a swap deposit that never converted from the order's pay page.
Mobile apps
No app SDK. Payers pay on the store's web checkout, and an app that opens it follows the same app store rules as any web checkout.

Practical questions

Which currencies can customers pay with?
Bitcoin over Lightning, always. With a swap provider configured, also USDT on Tron, Solana or Ethereum, USDC on Solana or Ethereum, ETH and SOL, each converted into the same Lightning payment. Automated swaps guide
Where does the Bitcoin go?
Into the wallet behind the receive-only NWC code. OpenReceive never holds funds: the invoice is minted in your wallet and the sats land there. The module invoices the order, with the payment hash as the transaction id, and moves it to Processing. Magento quickstart
What wallet do I need?
Any wallet that issues receive-only NWC (Nostr Wallet Connect) codes, hosted or self-run. The code must be able to create invoices and read their status, and must not be able to spend. Get a receive-only NWC code
What does it cost?
OpenReceive is completely free and open source (MIT). For Bitcoin Lightning payments, every listed NWC provider charges 0% to receive; for stablecoin, ETH and SOL payments, your payer pays the swap provider's fee, not you. See full pricing & fee breakdown
What do I need to deploy?
Magento Open Source 2.4.7 or later with the Luma checkout (Hyvä Checkout is not supported yet), 64-bit PHP 8.2 or later with GMP and sodium, and Magento's cron. The codes are saved in Magento's configuration, encrypted with the store's own key. Already run BTCPay Server? Magento's BTCPay module, with the OpenReceive plugin in BTCPay, is the other route. Magento quickstart

Add OpenReceive to Magento

Copy agent directions · Full quickstart · Plugin source · API reference · Guides

Related

BTCPay Server