Skip to content

Source code

Crypto Payment Gateway Source Code

Is the crypto payment gateway open source? Some are. A few self-hosted projects publish their full source code on GitHub, and you can run them on your own servers without paying a license fee. What you get is the on-chain core, the part that creates payment requests and watches the blockchain. What you don't get is the license, the fiat side or the operations team.

This page compares the main open source projects as of November 16, 2026, explains what their licenses let you do with the code, and lists the work that still sits with whoever runs it.

Crypto payment gateway open source projects

These are well-known self-hosted cryptocurrency payment gateway open source projects, with figures read from each GitHub repository on November 16, 2026. They differ in which assets they handle and how much of a gateway they include.

Project What it describes itself as License Language GitHub stars
BTCPay Server A free, open-source and self-hosted Bitcoin payment processor MIT C# 7,921
SHKeeper A self-hosted, open-source cryptocurrency payment gateway that integrates with popular CMS and e-commerce platforms GPL 3.0 Python 649
LNbits A free, open-source Lightning wallet and accounts system MIT Python 1,251

BTCPay Server has the largest community of the three and focuses on Bitcoin. SHKeeper aims at merchants who want a cryptocurrency gateway with shop plugins. LNbits is a wallet and accounts system for the Lightning network, which can serve as a building block rather than a full gateway.

What the licenses mean for you

MIT is permissive. Change the code, run it inside a paid service and keep your changes private, provided the license notice stays in place. BTCPay Server and LNbits use it.

GPL 3.0 is a copyleft license. If you distribute software built on GPL code, you have to make your source available under the same license, so check how that applies to your setup before building a product on SHKeeper. Read the license of every plugin and dependency too, not only the main repository.

What crypto payment gateway source code covers, and what it doesn't

Crypto payment gateway source code gives you the on-chain functions for the assets it supports: payment requests, address handling, blockchain monitoring and confirmation logic. That's a real head start, since those parts are tricky to get right.

Everything around them stays with you. That includes running and updating nodes, keeping keys safe, screening transactions for AML purposes, converting crypto to fiat, paying merchants and handling refunds. Authorization comes on top: in the EU, crypto-asset service providers must hold MiCA authorization from July 1, 2026. Each of those is a step of its own when you build a crypto gateway, and none of them comes with the code.

Safety checks before you run downloaded code

Code that handles money deserves a closer look than ordinary open source. Check these before running any crypto gateway project in production.

  • recent commits and releases, and how quickly security issues get fixed
  • who maintains the project and how releases are signed
  • the dependencies it pulls in and their licenses
  • how keys are generated and stored, and whether hot wallets can be kept small
  • whether the code has had an independent security review

A project that hasn't been updated for a long time is a risk on its own, since blockchains, libraries and attack methods keep changing.

Where the fiat side fits

Crypto businesses still need traditional payments for deposits and payouts, and crypto source code projects focus on the chain, not on card acquiring or local bank methods across countries. That's the part our gateway handles, through one connection to 700+ integrations, with routing across several acquirers and reconciliation by a single ID per payment attempt.

We provide the fiat payment layer only, so custody, authorization and the on-chain part stay with your stack or your custody provider.

Questions

Is the crypto payment gateway open source?

Some are. BTCPay Server and LNbits publish their code under the MIT license, and SHKeeper under GPL 3.0, all as self-hosted projects on GitHub.

Can I use crypto payment gateway source code commercially?

Under MIT, yes, with the license notice kept. Under GPL 3.0, distributing software built on the code means sharing your source under the same license, so check your setup with a lawyer.

Do I need a license to run an open source crypto gateway?

The code license doesn't replace a regulatory one. If running the gateway makes you a crypto-asset service provider in the EU, you need MiCA authorization.

Is it safe to run a crypto payment gateway from GitHub?

It can be, if the project is actively maintained, its releases are signed, its dependencies are checked and your key management is sound. Review the code before trusting it with funds.

Pair crypto code with a fiat gateway

Tell us which crypto stack you run and where your customers deposit, and we'll show how the fiat side would work on our gateway.