WAB PAY: Bitcoin QR Invoices, WATCH SEEN, and Digital Receipts
WAB PAY is a proposed narrow payment agent for websites, kiosks, and service providers. Its job is not to become a full online store. Its job is to turn a priced order into a Bitcoin payment request, observe payment, and produce an auditable receipt.
Creating the invoice
An application provides an order ID, a product description, and a price in integer satoshis. The agent obtains a receiving address from an authorized wallet service and can render a payment QR code. The invoice records the Bitcoin network, address, expected amount, and expiration policy. The displayed QR must encode a valid payment request, not just an image that resembles one.
Observing the payment
WATCH follows the invoice's payment target. When a transaction is seen, the agent matches its relevant outputs and amount to the invoice. A successful match produces a PAID_SEEN state, not a false claim of on-chain finality. Duplicate events must not produce duplicate receipts or fulfillments.
What a receipt should say
A useful receipt includes the invoice ID, product or service reference, observed amount, address, TXID, timestamp, network, and payment state. The terms payment observed, payment confirmed, and product delivered should never be used interchangeably. A receipt generated at SEEN can explicitly state that confirmations are not yet known.
Direct service versus shipment
For a digital service, the merchant can configure a handler to issue a license or activate an account immediately after matched SEEN. For physical goods, the receipt may be issued promptly while shipment and delivery remain separate business processes. The agent should expose both payment status and fulfillment status.
Security and deployment
The public invoice interface should not receive a wallet spending secret. If RECEIVE and WATCH on the underlying engine require a credential with broader authority, those calls should run behind a private, restricted intermediary. Receipt data should be immutable or append-only where practical, and sensitive customer information should not be unnecessarily exposed.
Status: Product concept. The final API shapes, receipt format, and executable packaging remain to be implemented and tested.
