Sign inStart free

How to accept USDT and USDC on ERPNext

For sellers ·

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%.

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

Watch on YouTube

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

  1. Sign in to Blokbay with your email and add your wallet address in Settings.
  2. In Payments on your site, create the secret key, shown only once, and copy the webhook signing secret.
  3. In your bench folder run bench get-app payments --branch version-15 and bench get-app https://github.com/blokbay/erpnext-stablecoin-invoices.
  4. Run bench --site your-site install-app payments blokbay, then bench --site your-site migrate.
  5. 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.
  6. 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.
  7. 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?
Only for the payment gateway (Payment Requests, sales orders, webshop and portal). The stablecoin invoices on Sales Invoice work with ERPNext alone.
Does it work on ERPNext 14?
No. The app is made for ERPNext and Frappe version 15.
Can I use my own print format?
Yes. In your print formats and notifications you can place the link with {{ doc.blokbay_payment_url }} or the button helper described in the app README on GitHub.

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 free

Practical guides