KAI-Pay

Point of sale – merchant guide

With the KAI-Pay point of sale you accept Bitcoin payments via Lightning, for example at the counter or a market stall. The point of sale is a separate page (kasse.kai-pay.net) without keys: it can only create invoices and can never send money. Every payment goes straight into your self-custodial KAI-Pay wallet. There you see the daily and monthly closing and can issue refunds.

KAI-Pay is a public beta. The point of sale is a payment terminal, not a cash register (see Limits).

1. Requirements

2. Set up the point of sale

  1. In the wallet, open the menu and choose “Point of sale & closing”. At the very bottom you find “Set up point of sale”.
  2. Optionally enter a till name, for example “Counter 1” or “Market”. The link and QR code change with the name.
  3. Open the point of sale:
    • On the same device: “Open the till on this device”. It opens in a new tab, or in the Android app in the browser.
    • On a separate till device (e.g. a tablet at the counter): scan the QR code with that device, or copy or share the link and open it there.

The link contains your Lightning address, the till name and a public receipt key. These details are in the part of the link after “#”; they are not sent to any server. The point of sale stores them on the till device. The next time you open kasse.kai-pay.net it starts directly; you no longer need the link.

If someone opens a link with a different address or a different receipt key on a till that is already set up, the point of sale asks before switching. Only confirm if you set it up yourself. The point of sale and the wallet both show the fingerprint of the receipt key, so you can compare them.

3. Taking payments

  1. Enter the amount: in a national currency (EUR, USD, GBP, CHF, CAD, AUD or JPY, converted with the rate from mempool.space shown with its time) or in sat (“Enter in sats”). The rate is fixed for the invoice. The point of sale only charges in national currency with a rate fetched at most 5 minutes ago and at most 30 minutes old according to mempool.space.
  2. “Charge”: the point of sale shows an invoice as a QR code.
  3. The customer scans it with any Lightning wallet and pays.
  4. The point of sale shows “Paid” and a numbered payment receipt. It is proof of payment, not a till receipt. “Receipt as PDF” saves it as a file.

Notices from the point of sale:

Charging with articles

  1. “Manage articles”: name, price and price currency (national currency or sat), optionally category and tax rate. The tax rate is only a statement on the receipt; KAI-Pay calculates no tax.
  2. “Articles”: tap articles, change the quantity with − and +. A cart has exactly one currency.
  3. “Charge”: the total becomes the invoice. Lines, prices and rate are fixed for this order – later price changes do not change paid receipts.

Articles are stored on the till device only. “Export catalogue” saves them as a file; take them over in another till or in the wallet (Point of sale & closing → Articles) with “Import catalogue”. The wallet only needs the catalogue to show the lines with names; importing again does not change the names of articles already imported. Renaming creates a new article in the point of sale so that old receipts keep their name.

Lines and amounts in currencies other than euro only reach the wallet if the point of sale was set up via your wallet’s current point-of-sale link. Points of sale set up with an older link: open the point-of-sale link in the wallet once more. Until then, the lines are only on the point of sale’s receipt.

Receipt as PDF

The point of sale and the wallet create the PDF receipt on the device from the stored data, without a server; created again, the same payment gives the same file (same language and time zone). The point of sale keeps receipts only for its recent invoices (at most 20 from the last 7 days). It is proof of payment, not a VAT invoice and not a till receipt. For refunds, the wallet creates a separate refund receipt.

4. Till name and several tills

The wallet does not store the till name. It travels like this:

  1. The name is in the link. The point of sale stores it on the till device, together with a random device ID and a running receipt counter.
  2. With every payment the point of sale sends an encrypted note: device ID, till name, receipt number, amount in national currency and rate, for articles also the lines. Only your wallet can read it.
  3. The wallet reads these notes from the payments and assigns them to the tills in the closing.

5. Daily closing

In the wallet, under “Point of sale & closing”, choose a day. For each till you see:

In addition, the wallet lists “Other incoming” (payments to your address that did not come through the point of sale) and payments still pending.

6. Monthly closing and CSV export

“Export day as CSV” or “Export month as CSV” saves a file with one row per transaction:

The totals in sat and per national currency are at the end.

The wallet keeps no separate cash book for this. It calculates the closing from the payment history each time. You can therefore export any past month again, as long as the payments are in the history. The wallet derives the key for the receipt notes from your 12 words; the notes stay readable after a restore as well.

The point-of-sale export only contains payments made through the point of sale. For an overview of all income, also export the wallet history as CSV; it contains every payment.

7. Refunds

  1. In the wallet, open the point-of-sale payment in the history and choose “Refund”.
  2. Enter the customer’s Lightning address or invoice. You can refund at most the amount still open.
  3. Check and confirm. The refund appears in the closing as a negative amount. For Lightning addresses that accept a note, the wallet adds “Refund for receipt …”.

The link “refund for receipt” is stored only on the device you refunded from. If a refund is still on its way, the wallet warns before a second one.

8. Security and data

9. Limits

Questions? FAQ or kontakt@kai-pay.net.