How to accept USDT and USDC on ERPNext
To accept USDT and USDC on ERPNext, install the free Blokbay app with bench next to the Frappe payments app, paste your keys in Blokbay Settings and set the webhook. Your customers pay Payment Requests, sales orders, webshop orders and Sales Invoices in crypto from their wallet, the money goes straight to yours and ERPNext creates and submits the Payment Entry by itself. Blokbay withholds 1%, you receive 99%.
What you need
- Install it from:
GitHub: blokbay/erpnext-stablecoin-invoicesGitHub: frappe/payments (version-15) - ERPNext plugin: download, versions and questions
Download blokbay-erpnext.zip - Payments on your site, in your Blokbay dashboard
- API documentation
- Crypto payment gateway: how it works
- Calculator: what you receive
- See a demo store
Coins and networks on your payment page
Your customer chooses the coin on the payment page. Today these are available:
- 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
Bitcoin appears only if you add a Bitcoin address in Settings. USDC/USDT/SOL on Solana appears only if you add a Solana address in Settings.
Gateway contract: 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 (Ethereum, Polygon, BNB Chain, Base, and Arbitrum)
Video: installation and a test payment
What you need
ERPNext version 15 on Frappe, with access to bench on your server, a Blokbay account and the public address of a wallet you control. For the payment gateway you also need the Frappe payments app, where ERPNext 15 keeps every payment gateway. The stablecoin invoices work without it.
The currency of the document must be one of USD, EUR, GBP, CHF, JPY, CAD, AUD, SGD, HKD, and AED. Your site must be reachable over https, because Blokbay sends the confirmation to it.
Install the app
- Sign in to Blokbay with your email and add your wallet address in Settings.
- In Payments on your site, create the secret key, shown only once, and copy the webhook signing secret.
- In your bench folder run bench get-app payments --branch version-15 and bench get-app https://github.com/blokbay/erpnext-stablecoin-invoices.
- Run bench --site your-site install-app payments blokbay, then bench --site your-site migrate.
- Open Blokbay Settings (/app/blokbay-settings), paste the secret key and the webhook signing secret, choose the Mode of Payment and the Payment Account, and save.
- Copy the Webhook URL shown on the page, https://your-site/api/method/blokbay.api.webhook, into Payments on your site, then click Test Connection.
- Create a small Payment Request and pay it from your own wallet.
On Frappe Cloud you add the app from the GitHub repository to your bench group. If you installed the payments app later, the next bench migrate creates the Payment Gateway Blokbay.
Two ways to get paid
Payment gateway: the app creates the Payment Gateway Blokbay for your Payment Gateway Accounts. Payment Requests made with it, from a Sales Invoice, a Sales Order, the webshop checkout or the Pay button of the customer portal, carry a payment link to your own site. When your customer opens it, the app creates the Blokbay payment at that moment and sends the customer to the payment page, where they pay in USDT, USDC, ETH, BTC or SOL.
Stablecoin invoices: on a submitted, unpaid Sales Invoice click Pay with Blokbay. The app creates a Blokbay invoice with the same customer, lines, taxes and total, shows the link on the form, prints it with the Blokbay Sales Invoice print format and adds it to the invoice email. Your customer pays the invoice in USDC or USDT.
Payment Entry and records
When the payment is confirmed, Blokbay calls the signed webhook. The app checks the signature, reads the payment again from the Blokbay API and pays the document once: ERPNext creates and submits the Payment Entry, with the transaction hash as reference, and for a webshop order also the Sales Invoice. A repeated event changes nothing.
Cancelling a Sales Invoice voids its Blokbay invoice, so your customer cannot pay twice. A payment that expired without payment is replaced by a new one when the customer opens the link again.
Where the money goes and what it costs
With a connected wallet a public smart contract sends your share to your wallet in the same transaction; with Bitcoin, from 100 USD, your customer sends two exact transfers, one of them to your address. Blokbay never holds your funds.
The app is free and open source. Blokbay withholds 1% of each payment and you receive 99%, with no monthly fee. Your customer pays the network fee of the transfer, usually a few cents on Polygon or Base. Ask your accountant how to record crypto receipts in ERPNext for your country.
Questions and answers
Do I need the payments app?
Does it work on ERPNext 14?
Can I use my own print format?
You remain the seller: you are responsible for your website, your products and your obligations towards your customers, including invoices, delivery, refunds, taxes and the checks required in your country.
Start accepting crypto today
1% per payment, no fixed costs, funds go directly to your wallet, no approval needed.
Start freePractical guides
Accept USDT and USDC payments on WooCommerce, step by step
Set up USDT and USDC at your WooCommerce checkout in about ten minutes: plugin from WordPress.org, wallet, keys, webhook and a first real test payment.
Sell online courses and memberships for crypto on WooCommerce
Sell courses, memberships and paid communities for USDT, USDC or Bitcoin: one-time access with the gateway, recurring plans with renewal payment links.
Accept crypto for digital downloads with Easy Digital Downloads
Sell ebooks, software, music and templates for USDT, USDC or Bitcoin: download links sent as soon as the payment is confirmed, money straight to your wallet.
Accept crypto donations on WordPress: donate button and GiveWP
Add a crypto donate button to any WordPress page or a crypto gateway to GiveWP forms: USDT, USDC, ETH, BTC and SOL donations straight to your wallet.
Sell event tickets for crypto and split revenue with the venue
Sell event tickets for USDT and USDC on WordPress and split each sale between organizer, venue and partners, each paid in their own wallet at checkout.