Bitcoin Payment Request Lifecycle: Invoices, Expiry, Fees, and Confirmation
A payment request is the beginning of a payment workflow, not its completion. The merchant asks for funds, the payer's wallet constructs and authorizes a transaction, and the merchant observes the resulting Bitcoin activity. These are separate steps with separate failure modes.
1. Create the request
A merchant chooses a destination address and amount, then may encode them as a BIP21 URI. The merchant can associate the request with an internal invoice ID, order status, and expiry timestamp in its own database. The basic BIP21 message field is not an enforceable on-chain invoice identifier.
Using a fresh address per invoice can simplify reconciliation and reduce address reuse, although wallet design and privacy requirements vary. Merchants must preserve enough derivation information to recognize future payments.
2. Present and authorize
The customer scans the QR or opens the URI. The wallet checks destination and network, displays the requested amount, selects UTXOs, estimates fees, and signs only after authorization. Fees are normally an additional sender expense for a straightforward fixed-output payment; the final transaction may contain other outputs, including change.
An invoice expiry is an application-level rule. It does not cause an on-chain address to stop receiving Bitcoin and does not invalidate a valid transaction. If funds arrive late, the merchant must apply its documented late-payment policy.
3. Broadcast and observe
After broadcast, a transaction may be seen in a mempool, replaced under applicable policy, dropped by peers, or confirmed in a block. Seeing an unconfirmed transaction is not equivalent to irreversible settlement. The merchant should track output value and destination, not merely trust a transaction ID supplied by the browser.
Underpayments, overpayments, split payments, duplicate payments, and transactions sent to an expired invoice need explicit reconciliation rules. A single transaction may pay several invoices; conversely, one invoice may be funded by multiple transactions.
4. Confirm and reconcile
The merchant chooses an acceptance policy based on risk, such as waiting for one or more confirmations. A reorganization can reverse a previously observed confirmation, so accounting should react to chain updates. There is no universal confirmation count that guarantees finality in every threat model.
Idempotent order processing helps prevent double fulfillment when the same event is delivered more than once. Store transaction and output identifiers, observed chain state, and invoice allocations. Do not infer final settlement solely from the QR code, payment URI, or a wallet's local 'sent' screen.
Primary references
BIP21 — URI Scheme: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki
Bitcoin Core RPC — gettransaction: https://bitcoincore.org/en/doc/
Bitcoin Developer Guide — Transactions: https://developer.bitcoin.org/devguide/transactions.html
