Skip to main content

Add Crypto Payments to Django

To take bitcoin and stablecoins in a Django app, with no approval necessary, add OpenReceive: free, open-source payment software. It's a Python package (openreceive[django], Python 3.10 or later, Django 5.2 or later) that you add to your project as a Django app. It mounts its URLs with one include(), calls one class of yours with three hooks, and pays straight into your own wallet. Your orders, users and database stay as they are.

The Steps​

  1. Get a receive-only wallet code. In Rizful, open the menu, then NWC Codes, and copy the receive-only code. It lets your app create invoices in your wallet, but it can't spend. Alby Hub, your own node, works too: Connections, Add Connection, Read Only.
  2. Copy the agent directions. On openreceive.org/django, under Agent directions, click Copy link (or Copy text).
  3. Paste them into your coding agent. It asks for your receive-only code first, then for a swap provider's code if you want USDT, USDC, ETH and SOL.
  4. Let it finish. It installs the package, adds the app to INSTALLED_APPS, mounts its URLs, fills in the three hooks (authorize, amount_for, on_paid), puts the checkout on your order page and runs manage.py openreceive_doctor. Its last message starts "Setup is finished".

Customers then pay in bitcoin over Lightning, or in stablecoins: a swap provider turns their coins into the same Lightning payment, for a fee fixed into the quote, and you get bitcoin.

We Tested It​

On December 1, 2026, we gave OpenReceive's Django directions (version 0.6.6) to a coding agent, on a small Django shop. It asked for the two codes, set everything up, and the doctor check passed. Then a real $5 order, paid in bitcoin from Alby Hub, landed in our Rizful wallet seconds later, and the order page turned to paid. The same order in USDT on Solana was quoted at 5.37 USDT, including the swap and network fees.