Bitcoin Payment API for Developers
Financial Rails for the Internet Economy. Accept Bitcoin and Lightning payments instantly with a non-custodial, 0% fee integration.
Nijipe provides developers with hosted checkout pages, payment links, and secure HMAC webhooks—abstracting away node infrastructure so you can focus on building.
Bitcoin Payment Processing Without the Complexity
Create Invoice
Generate invoices through a simple API.
const invoice = await nijipe.createInvoice({
amount: 15,
currency: "USD"
});Receive Payment
Monitor settlement automatically.
Receive Webhook
Trigger application workflows instantly.
app.post('/webhooks', (req, res) => {
const event = req.body;
if (event.type === 'invoice.paid') {
fulfillOrder(event.data.id);
}
res.send({ received: true });
});Direct Settlement
Funds settle directly to merchant infrastructure.
{
"network": "bitcoin",
"txid": "f4184fc5...9831e9e16",
"confirmations": 1,
"destination": "bc1qxy2kg..."
}Trustless Escrow
Enable 2-of-3 Multisig Escrow protection for high-value transactions with the isEscrow flag.
const invoice = await nijipe.createInvoice({
amount: 15000,
currency: "USD",
isEscrow: true
});How the Payment Flow Works
When a customer initiates a Bitcoin payment through Nijipe, the payment flow works as follows. First, the merchant's application calls the Nijipe REST API to create an invoice, specifying the amount in fiat currency. Nijipe converts the amount to satoshis at the live market rate, derives a unique native SegWit Bitcoin address from the merchant's XPUB using BIP84 derivation, and simultaneously generates a BOLT11 Lightning invoice via LND. The merchant's application redirects the customer to the Nijipe hosted checkout page. The customer pays using either on-chain Bitcoin or a Lightning wallet. For on-chain payments, Nijipe's Bitcoin Core ZMQ listener detects the transaction in the mempool and fires an invoice.payment_detected webhook. After the configured number of block confirmations, Nijipe fires a final invoice.confirmed webhook. For Lightning payments, settlement is detected instantly via the LND SubscribeInvoices gRPC stream and invoice.confirmed fires immediately. In both cases, funds flow directly to the merchant's wallet — Nijipe never holds or intermediates the payment.
What "Non-Custodial" Actually Means
Traditional Processor
(Custodial)
Nijipe
(API/Events)
(Non-Custodial)
Traditional cryptocurrency payment gateways operate custodially: customer funds flow to the gateway's own wallet, and merchants must request withdrawals to access their money. The gateway controls the funds at all times and can freeze, delay, or restrict withdrawals. Nijipe operates non-custodially. Instead of routing funds through a platform-controlled wallet, Nijipe uses XPUB and ZPUB extended public key derivation to generate unique receiving addresses that belong to the merchant's own wallet. When a customer pays, Bitcoin flows directly from the customer's wallet to the merchant's wallet via the Bitcoin network. Nijipe's role is purely coordination — it generates the invoice, monitors the network, and fires webhook events. It never holds, controls, or has access to merchant funds at any point.
While traditional gateways hold your funds and force withdrawals, Nijipe uses XPUB derivation (BIP84) to generate addresses directly from your master public key. Bitcoin flows directly to your wallet. We never touch your funds, guaranteeing absolute financial sovereignty.
Unified Architecture
One integration powers both seamless on-chain settlements and instant Lightning Network micro-transactions.
Store
Nijipe
Bitcoin
Lightning
Merchant Wallet
The unified architecture of Nijipe powers both seamless on-chain settlements and instant Lightning Network micro-transactions through a single integration. First, the store communicates with the Nijipe API to generate an invoice. Nijipe then splits the payment routing into two branches: on-chain Bitcoin and the Lightning Network. For on-chain Bitcoin, funds flow through the global Bitcoin network directly to the merchant's wallet. For Lightning Network, payments are routed instantly and settle to the merchant's node. Ultimately, all funds arrive directly into the Merchant Wallet, ensuring a purely non-custodial and secure settlement process without Nijipe ever holding the funds.
Unlimited invoices. Unlimited payments. Merchant controlled settlement.
Legacy Processor
Crypto Gateway
Nijipe
Legacy processors take a percentage of every sale. Custodial crypto gateways charge processing fees. Nijipe does neither.
Pay a simple $15/month SaaS subscription for API access, checkout, webhooks, and developer tools. Process payments directly to your merchant-controlled Bitcoin and Lightning infrastructure with 0% transaction fees.
Your revenue scales. Your Nijipe bill stays predictable.
The pricing and money flow diagram illustrates the cost-saving benefits of Nijipe compared to legacy processors and crypto gateways. While traditional services charge percentage-based processing fees (e.g., $320 or $100 on $10,000 of sales), Nijipe charges a flat $15/month SaaS fee with 0% transaction fees. The visual shows a direct money flow path: the customer sends funds directly to the merchant wallet. Nijipe sits outside the payment path, simply monitoring the transaction to provide API access and webhooks, ensuring the merchant's revenue scales while the software bill remains completely predictable.
Merchant Controlled by Design.
Nijipe derives a new receive address for every invoice using your XPUB or ZPUB. Private keys never leave your wallet.
Public Keys In. Private Keys Never.
Uses the same public-key derivation principles trusted by modern hardware wallets.
Why This Matters
- Private keys never leave your wallet
- Unique address for every invoice
- No address reuse (better privacy)
- No platform custody risk
- Merchant-controlled settlement
- BIP84 native SegWit support
Nijipe derives a unique Bitcoin receiving address for every invoice using the merchant's XPUB or ZPUB extended public key. The derivation follows the BIP84 standard path m/84'/0'/0'/0/{index}, where index is an integer stored in the database and incremented atomically on each invoice creation. This guarantees that no two invoices share a receiving address, which protects merchant privacy by preventing address reuse. Because derivation uses only the public extended key, it is mathematically impossible to derive private keys or spend funds from an XPUB or ZPUB. This is the same public-key derivation principle used by hardware wallets such as Ledger and Trezor. Merchants provide their ZPUB once during store setup. Nijipe stores it and handles all subsequent address generation automatically. Private keys never leave the merchant's wallet under any circumstances.
Merchant Controlled Lightning Settlement.
Customers pay directly to your Lightning node. Nijipe manages invoices, monitoring, checkout, and webhooks without taking custody of funds.
(LND, CLN, Phoenixd)
Your Node. Your Channels. Your Funds.
Nijipe never takes custody of Lightning payments. Merchants connect their own Lightning infrastructure and receive payments directly. Nijipe acts purely as the orchestration layer — providing invoice generation, checkout experiences, monitoring, settlement tracking, and webhook orchestration.
Your Node. Your Funds.
Nijipe supports non-custodial Lightning Network payments through its BYON (Bring Your Own Node) architecture. Merchants connect their own Lightning node — LND, Core Lightning, or Phoenixd — to their Nijipe store. When a Lightning invoice is created, Nijipe generates a BOLT11 payment request via the merchant's connected node. The customer pays directly to the merchant's node through Lightning Network routing. Nijipe monitors settlement via the node's invoice subscription stream and fires signed webhook events to the merchant's application on confirmation. Because payment routes to the merchant's own node, Nijipe never takes custody of Lightning funds. This contrasts with most hosted Lightning processors that pool merchant funds in a shared platform wallet and require withdrawal requests. BYON ensures the merchant's Lightning channels, balances, and funds remain entirely under merchant control.
Real-Time Bitcoin Payment Detection.
Nijipe monitors Bitcoin transactions as they enter the mempool, tracks confirmations, and sends signed webhook events to your application.
Nijipe watches the Bitcoin network in real time using Bitcoin Core ZMQ streams. When a transaction enters the mempool, Nijipe checks its outputs against pending invoice addresses. If a match is found, the invoice updates instantly and your application receives a signed webhook.
Once the transaction reaches the configured confirmation threshold, Nijipe sends the final confirmation event.
You get real-time payment state without managing mempool listeners, confirmation tracking, or webhook infrastructure.
Nijipe monitors Bitcoin transactions in real time using Bitcoin Core's ZMQ (ZeroMQ) pub/sub interface. The platform subscribes to two ZMQ streams: rawtx for mempool transactions and rawblock for confirmed blocks. When a new transaction is broadcast to the Bitcoin network, Nijipe's ZMQ listener parses the transaction outputs and checks each output address against the database of pending invoice addresses. If a match is found, the invoice status transitions from pending to payment_detected and a signed webhook fires to the merchant's endpoint immediately. Nijipe then monitors subsequent blocks for that transaction. When the transaction reaches the configured confirmation threshold (default: 1 confirmation), the invoice transitions to confirmed and a final webhook fires. If the received amount is less than 99% of the expected invoice total, the status is set to underpaid. If greater than 101%, it is set to overpaid. If no payment is detected before the invoice's expiresAt timestamp, the status transitions to expired. All nine invoice status values — pending, payment_detected, paid, confirmed, underpaid, overpaid, expired, canceled, and failed — trigger a corresponding signed HMAC-SHA256 webhook event to the merchant's configured endpoint.
Non-Custodial Flow. Managed API Experience.
Nijipe sits between custodial crypto gateways and fully self-hosted infrastructure giving merchants direct settlement without forcing developers to manage every Bitcoin backend component.
Traditional Crypto Gateways
Easy to use, but sacrifices control and charges high fees per transaction.
Self-Hosted Infrastructure
Maximum control, but requires massive operational and technical overhead.
Managed API Experience
Direct non-custodial merchant settlement with zero infrastructure burden.
Wallet
| Feature | Custodial | Self-Hosted | Nijipe |
|---|---|---|---|
| Holds merchant funds | Yes | No | No |
| Requires withdrawals | Yes | No | No |
| Transaction fee | 0.5%–1% | 0% | 0% |
| Monthly cost | Variable | Server cost | $15/mo |
| Developer API | Yes | Limited | Yes |
| Infrastructure burden | Low | High | Low |
| Non-custodial | No | Yes | Yes |
| Merchant settlement | No | Yes | Yes |
Nijipe charges 0% per transaction and a flat $15 per month, compared to 0.5–1% per transaction at custodial crypto gateways such as Coinbase Commerce and BitPay, and significant server and operational overhead for self-hosted BTCPay Server. Unlike custodial gateways, Nijipe never holds merchant funds — on-chain Bitcoin settles directly to the merchant's wallet via XPUB derivation, and Lightning payments settle to the merchant's own node via BYON. Unlike self-hosted infrastructure, Nijipe requires no Bitcoin Core or LND node management from the merchant.
Your funds never enter Nijipe controlled wallets.
Nijipe coordinates payment information. It does not custody merchant money.
Most hosted crypto gateways simplify payments by taking custody of merchant funds. Fully self-hosted systems avoid custody but require merchants to operate complex Bitcoin infrastructure themselves.
Nijipe occupies the gap between both models.
Customers pay directly to merchant-controlled Bitcoin and Lightning infrastructure, while Nijipe handles invoices, checkout, address derivation, mempool monitoring, settlement tracking, and signed webhooks.
Non-custodial by design. Managed like SaaS.
The architecture comparison illustrates three models: Traditional Crypto Gateways, Self-Hosted Infrastructure, and Nijipe's Managed API Experience. Traditional gateways route customer payments into a centralized Gateway Wallet, freezing funds and requiring the merchant to make manual withdrawal requests, accompanied by high 0.5% to 1% fees. Self-Hosted Infrastructure routes funds directly to a Merchant Node, offering non-custodial control but burdening the merchant with high maintenance overhead, including managing Bitcoin Core, LND, mempool, and security patches. Nijipe bridges the gap by offering a Managed API Experience. Customers pay directly to the Merchant Wallet without Nijipe ever taking custody. Nijipe's infrastructure simply monitors the blockchain and fires webhook events to the merchant's application, providing the ease of a managed gateway with the non-custodial security and 0% transaction fees of a self-hosted node.
Ready to accept Bitcoin?
Join the Internet Economy today. No setup fees, no percentage cuts, and full custody of your funds.