Sign inStart free

Stablecoin invoices / ERPNext

Stablecoin invoice plugin

ERPNext app for Sales Invoices paid in USDC and USDT

Blokbay for ERPNext adds a "Pay with Blokbay" button to submitted Sales Invoices. One click creates the stablecoin invoice with the same customer, lines and total, and the "Pay in USDC/USDT" link appears on the form, in the print format and in the invoice email. When your customer pays, ERPNext checks the signed notification and creates the Payment Entry by itself, exactly once.

ERPNext

Works with
ERPNext 15 (Frappe 15)
Plugin version
1.0.0
File
blokbay-erpnext.zip · 53 KB
SHA-256 7c8ef1a7f1fb36624caf6f1fddc8d0c07bfedc0d51d233c508669823d606f8be
License
MIT
Download blokbay-erpnext.zip

How the payment is recorded

  1. The plugin creates the Blokbay invoice through the API with the same customer, lines, taxes and total as your invoice, and keeps the payment link on your invoice.
  2. Your customer opens the link and pays in USDC or USDT from any wallet or exchange. The funds go straight to your own wallet: Blokbay never holds them.
  3. Blokbay sends a signed webhook (invoice.paid). The plugin checks the signature, reads the invoice again from the API and records the payment once, even if the notification arrives twice.

Installation

Before you start, sign in to Blokbay with your email, add your wallet in Settings and create your keys in Payments on your site (secret key and webhook signing secret). Then:

  1. Get the app: bench get-app https://github.com/blokbay/erpnext-stablecoin-invoices (or unzip blokbay-erpnext.zip and run bench get-app on the folder after git init).
  2. Install it on your site: bench --site your-site install-app blokbay
  3. Open Blokbay Settings: paste the secret key and the webhook signing secret, choose the Mode of Payment and the account, click Test Connection.
  4. Copy the webhook URL shown in Blokbay Settings into your Blokbay panel, then use Pay with Blokbay on a submitted Sales Invoice.

Price

The plugin is free. Blokbay withholds 1% of each paid invoice automatically; unpaid or cancelled invoices cost nothing. No monthly fee and no setup fee. Your customer pays only the network fee of their transfer.

Questions about the ERPNext plugin

Can I put the payment link in my own email template?
Yes. Emails sent from the Sales Invoice get the link automatically, and in your own templates or print formats you can use the blokbay_pay_button helper described in the README.
What happens if I cancel the Sales Invoice?
The Blokbay invoice is cancelled too, so your customer can no longer pay the old link. You can create a new link after amending the invoice.
Do my customers need a Blokbay account to pay the invoice?
No. They open the payment link from your invoice or email and pay in USDC or USDT from their wallet or exchange. The link shows the amount, the coins you accept and your company name.
Which currencies can my invoices use?
Invoices in USD, EUR, GBP, CHF, JPY, CAD, AUD, SGD, HKD and AED. The amount in USDC or USDT is calculated at the current public rate when your customer chooses the coin.
What happens if the same webhook arrives twice?
Nothing more: the plugin reads the invoice again from the Blokbay API and records the payment only once. A webhook with a wrong signature is refused.

You remain the issuer: you are responsible for the content of your invoices, your taxes and your obligations towards your customers. Blokbay only provides the payment tool.

Create your Blokbay account

Plugins for other software