Module: Portage::Ucp::Confirmer
- Defined in:
- lib/portage/ucp/confirmer.rb
Overview
Phase 3 (docs/plans/agentic-payments.md) — the last gate before a
payment-completing dispatch, run by Dispatcher right after PolicyGuard
passes. Transport-agnostic by design: Dispatcher only ever calls
#confirm!(amount:, currency:, merchant:, idempotency_key:) on
whatever object it's given, so a future WhatsApp/Slack confirmer is a
separate gem implementing the same method, no core change required.
idempotency_key rides along even though this phase's Terminal
implementation ignores it — an async transport needs it to bind a
reply back to the request that asked.
Defined Under Namespace
Classes: AutoApprove, Terminal, Webhook, WebhookApiError