Loops HouseBitPOS Living Bill

NEAR HACKATHON
Links
Team
1 member- NAOwner
Natthapong Suwanjit
Overview
Problem: a small café pays tips, tax and suppliers by hand, days after the sale, out of one mixed balance.
Product: BitPOS Living Bill. BitPOS is our existing café point of sale (first built on Solana devnet; disclosed in the README); for this hackathon we built its NEAR payment rail. Each café bill becomes an entry in a NEAR contract, opened by the POS server from its own quote. The customer pays once with ft_transfer_call and needs no NEAR: the café's relayer pays the gas with a meta transaction, only for a payment that is exactly this bill. In the same transaction the contract pays everyone in one batch: the owner, a tax reserve, the staff on shift and a supplier invoice that collects itself until funded. Anything that is not exactly the bill bounces back by itself.
Witness mode: the money waits in the contract until the BitPOS Mini at the table signs that it showed "paid"; the contract checks that ed25519 signature on chain. No signature in time, and the money goes back to the payer.
AI spending pass: a customer lets an AI agent pay for them for 30 min, 1 hour, 1 day, 1 week or 1 month, with a cap and a per-bill limit. The agent's function-call key can only call pass_pay; refunds go to the customer, never the agent; closing or expiry returns the rest.
NEAR used: Rust contract (NEP-141 receiver, batched payouts, ed25519_verify), NEP-366 meta transactions, function-call keys (a cashier key that cannot move money, an agent key limited to pass_pay), named sub-accounts, a global contract for the test token, NEAR Intents 1Click as a dry-quote preview, NEAR AI Cloud for a reviewable Café CFO.
Status: live on NEAR testnet (bills.bitpos-near.testnet), hosted demo at near.cashlessthailand.com; 23 contract tests, 28 API tests and real end-to-end testnet runs with links in the repository. The new BitPOS Mini firmware boots on the device and passes its on-chip signature self-test.