Dolibarr decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
Blokbay is a decentralized, non-custodial crypto payment gateway: payments are settled on the blockchain and reach your own wallet, never a Blokbay wallet. Accept crypto payments in Dolibarr with a free module: on the online payment page of your invoices and sales orders your customers pay in USDT, USDC, ETH, BTC or SOL, the money goes from their wallet directly to yours and the payment is registered on your bank account in Dolibarr.
Dolibarr
- Supported versions
- Dolibarr 19 to 24
- Plugin version
- 1.2.0
- File
module_blokbay-1.2.0.zip· 132 KB- SHA-256
ae3f8e106c1fbbef4b5ff703b74c4c938373788e9a951932bec834854da41cd1- License
- GPL-3.0-or-later
What the Dolibarr plugin does
The plugin adds "Pay with crypto" to your Dolibarr checkout. Your customer pays on a Blokbay payment page with your store name and logo, from any compatible wallet, then returns to your store.
The order is marked as paid when the signed webhook from Blokbay arrives, after the plugin has checked the amount and the currency of the order. If the webhook is late, the plugin asks the Blokbay API for the status when the customer comes back.
Coins and networks
Your customer chooses the coin on the payment page:
- BTC on Bitcoin, from 100 USD: two exact transfers from the customer's wallet, one of them straight to your Bitcoin address
- USDC on Ethereum, Polygon, BNB Chain, Base, Arbitrum, and Solana
- USDT on Ethereum, Polygon, BNB Chain, Arbitrum, and Solana
- ETH on Ethereum, Base, and Arbitrum
- SOL on Solana
Funds go straight to your wallet
Blokbay never holds your money. With USDT, USDC and ETH (paid from a connected wallet) a public smart contract splits each payment in the same transaction: your share arrives in your own wallet and 1% goes to Blokbay. The contract has no owner, cannot be modified and never holds funds; its source code is published and verified on Etherscan and Sourcify. There is no balance on our side, so nothing can be blocked or frozen and there is no payout to wait for.
Gateway contract: 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 (Ethereum, Polygon, BNB Chain, Base, and Arbitrum)
Price
The plugin is free. Blokbay withholds 1% of each payment automatically and you receive 99%. No monthly fee, no setup fee, no fixed cost per transaction. Payments start from 1 USD, Bitcoin from 100 USD. The customer pays the network fee of their own transfer.
Store currencies
Your Dolibarr store can use USD, EUR, GBP, CHF, JPY, CAD, AUD, SGD, HKD, and AED. The plugin sends the order total in your store currency and the customer pays in crypto at the current public exchange rate, locked when they choose the coin. With another currency the method stays hidden at checkout.
Installation
Before you start, sign in to Blokbay with your email, add your wallet address in Settings and create your keys in Payments on your site. Then:
- Download the zip and upload it in
Home > Setup > Modules/Applications > Deploy/install external app/module, then install and activate it. - Open
Home > Setup > Modules/Applications > Blokbay > Setupand paste the secret key (sk_live_...) and the webhook signing secret (whsec_...) from your Blokbay dashboard. - In the Blokbay dashboard, enter the webhook URL
https://your-dolibarr/custom/blokbay/public/webhook.phpand send the test event.
How it works, technically
For developers and for whoever installs the plugin: what happens on the network and on your server during a payment.
The smart contract
Payments in USDT, USDC and ETH from a connected wallet go through LuxSplit, the public smart contract of the Blokbay gateway. The contract has the same address on every network and its source code is verified: you can read it on the block explorer and on Sourcify and compare it with the code running on the network.
| Network | Chain ID | Contract address | Coins | Verified source code |
|---|---|---|---|---|
| Ethereum | 1 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, USDT, ETH | Etherscan · Sourcify |
| Polygon | 137 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, USDT | Polygonscan · Sourcify |
| BNB Chain | 56 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDT, USDC | BscScan · Sourcify |
| Base | 8453 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, ETH | Basescan · Sourcify |
| Arbitrum | 42161 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, USDT, ETH | Arbiscan · Sourcify |
What the contract does in a transaction
- It receives the payment reference, your wallet address and your amount, adds the fee (101 basis points of your amount, that is 1% of the price paid) and in the same transaction sends your amount to your wallet and the fee to the Blokbay address.
- With USDT and USDC the tokens go directly from the customer's wallet to yours and to the fee address: the wallet first asks for an approval, then for the payment. With ETH the contract forwards the amount at once and rejects any amount that is not exact.
- If either transfer fails, the whole transaction is reverted: a payment is never half done.
- At the end it emits the Paid event with the payment reference, the customer, your wallet, the token, your amount and the fee.
- It keeps no balance (plain transfers to it are rejected), has no owner and no admin function, and cannot be modified or paused. The fee and the fee address were fixed when the contract was created.
Blokbay does not hold your money
There is no Blokbay balance in your name: nothing to withdraw, no payout to wait for, no funds that can be blocked or frozen. The money is in your wallet as soon as the transaction is confirmed.
Opening an account takes your email and your wallet address, with no paperwork or documents. You remain responsible for your website and for your obligations, including taxes and invoices.
Fee
1% of each payment, withheld in the same transaction. No monthly fee and no setup fee. The customer pays the network fee of their own transaction.
Bitcoin: two exact transfers
Bitcoin has no smart contracts that can split a payment, so the customer makes two transfers with exact amounts from their wallet: the first, about 1% of the price, goes to the Blokbay address; the second, the rest, goes straight to your Bitcoin address. The last digits of the two amounts identify the payment. Bitcoin is available from 100 USD, and the payment is confirmed when both transfers have 2 confirmations.
Solana: one transaction, two transfers
USDC, USDT, and SOL on Solana are paid with one transaction that contains two transfers, one to your Solana address and one to the Blokbay address, which succeed or fail together; no smart contract is involved. The customer signs it in a Solana wallet or with a Solana Pay QR code. The payment counts as paid when the finalized transaction carries the payment reference and both transfers have the right amounts. Solana appears at checkout when you have added a Solana address in your settings.
Paying without connecting a wallet
The customer can also pay from an address or a QR code, from any wallet or exchange. The payment page then asks for two transfers with exact amounts, one to your wallet and one for the fee, and both are read on the network in the same way. On Base, from 10 USD, the page can instead show a single transfer to an address created only for that payment; a public contract then splits it between your wallet and the fee.
How the plugin knows an order is paid
Blokbay marks a payment paid only after reading on the network the Paid event of the contract with the right payment reference, wallet, token and amount (Bitcoin: both transfers with 2 confirmations).
Blokbay then sends payment.paid to the webhook URL of your store: a POST request signed with HMAC-SHA256 in the Blokbay-Signature header (t = timestamp, v1 = signature of "t.body"), computed with your own signing secret. The plugin checks the signature, then the amount and the currency of the payment, and only then marks the order paid.
If your server does not answer with a 2xx status within 10 seconds, Blokbay tries again after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h, and 24 h: 9 attempts in all. When the customer comes back to your store the plugin also asks the API for the status, so a late webhook does not leave the order waiting.
Open source
The Dolibarr plugin is open source: you can read on GitHub what it sends and receives before installing it. License: GPL-3.0-or-later. github.com/blokbay/dolibarr-stablecoin-invoices
Questions about the Dolibarr plugin
Where does "Pay in crypto" appear in Dolibarr?
What happens in Dolibarr when the customer pays?
What is a decentralized crypto payment gateway?
Does Blokbay hold the money paid in my Dolibarr store?
How much does the Dolibarr plugin cost?
Is there a test mode?
Can I check the smart contract before accepting payments?
Can Blokbay block or freeze the money I receive?
How does the plugin verify that an order is paid?
Why does Bitcoin need two transfers?
You remain the seller: you are responsible for your store, your products and your obligations towards your customers, including taxes and invoices.
Open your store for free
0 per month and 3% on each sale, withheld automatically: you receive 97% of the price. No fixed costs. Your store is ready in two minutes.
No card required. Your store is ready in two minutes.
Guides for your platform
Plugins for other platforms
WooCommerce
WooCommerce decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
PrestaShop
PrestaShop decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
Magento 2
Magento 2 decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
Shopware 6
Shopware 6 decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
OpenCart
OpenCart decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
Odoo
Odoo decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
EC-CUBE
EC-CUBE decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
ERPNext
ERPNext decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
WHMCS
WHMCS decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
Paymenter
Paymenter decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
Blesta
Blesta decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
Crypto Subscriptions
Crypto subscriptions for WooCommerce, PrestaShop, Magento, Shopware, OpenCart and Odoo
Crypto Tickets
Crypto event tickets with revenue split for WooCommerce, PrestaShop, Magento, Shopware, OpenCart and Odoo
Crypto Donations
Crypto donations for WordPress, GiveWP, PrestaShop, Magento, Shopware, OpenCart and Odoo
Gateway
API, payment links and buttons for any website