WHMCS 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 WHMCS with an open-source gateway module: your hosting, VPS, VPN and domain clients pay their invoices in USDT, USDC, ETH, BTC or SOL and the money goes from their wallet directly to yours.
WHMCS
- Supported versions
- WHMCS 8.x, PHP 8.1+
- Plugin version
- 1.0.0
- File
blokbay-whmcs-1.0.0.zip- License
- MIT
Tested with a simulated WHMCS environment that reproduces the WHMCS functions used by the module; a test on a live WHMCS installation is in progress.
What the WHMCS plugin does
The module adds "Pay with crypto" to your WHMCS invoices. Your client opens an unpaid invoice, pays on a Blokbay payment page from any compatible wallet, then returns to the invoice.
The payment is added to the invoice when the signed webhook from Blokbay arrives, after the module has read the payment again from the Blokbay API and checked the amount and the currency. If the webhook is late, the same check runs when the client comes back, and the same payment is never recorded twice.
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 WHMCS invoices can be in USD, EUR, GBP, CHF, JPY, CAD, AUD, SGD, HKD, and AED. The module sends the invoice amount in that currency and your client pays in crypto at the current public exchange rate, locked when they choose the coin.
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:
- Extract the zip into the root folder of your WHMCS installation (it adds
modules/gateways/), then openConfiguration > System Settings > Payment Gateways > All Payment Gatewaysand activate Blokbay. - Open
Configuration > System Settings > Payment Gateways > Blokbay Crypto Paymentsand 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-whmcs/modules/gateways/callback/blokbay.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 WHMCS plugin is open source: you can read on GitHub what it sends and receives before installing it. License: MIT. github.com/blokbay/whmcs-crypto-payments
Questions about the WHMCS plugin
How do I install the Blokbay module in WHMCS?
What if my WHMCS invoices are in a currency Blokbay does not accept?
Has the WHMCS module been tested on a live installation?
What is a decentralized crypto payment gateway?
Does Blokbay hold the money paid in my WHMCS store?
How much does the WHMCS 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.
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
Dolibarr
Dolibarr decentralized crypto payment gateway: accept USDT, USDC, ETH, Bitcoin, and SOL
ERPNext
ERPNext 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