Skip to main content

Crate adk_payments

Crate adk_payments 

Source
Expand description

Protocol-neutral agentic commerce and payment orchestration for ADK-Rust.

The initial crate scaffold tracks these protocol baselines:

  • ACP stable 2026-01-30
  • ACP experimental extensions as an unreleased compatibility channel
  • AP2 v0.1-alpha as of 2026-03-22

§Example

use adk_payments::{
    ACP_DELEGATE_AUTH_BASELINE, ACP_EXPERIMENTAL_CHANNEL, ACP_STABLE_BASELINE,
    AP2_ALPHA_BASELINE, AP2_ALPHA_BASELINE_DATE,
};

assert_eq!(ACP_STABLE_BASELINE, "2026-01-30");
assert_eq!(ACP_EXPERIMENTAL_CHANNEL, "unreleased");
assert_eq!(ACP_DELEGATE_AUTH_BASELINE, "2026-01-28");
assert_eq!(AP2_ALPHA_BASELINE, "v0.1-alpha");
assert_eq!(AP2_ALPHA_BASELINE_DATE, "2026-03-22");

Modules§

auth
Payment authorization, actor binding, and audit integration points.
domain
Protocol-neutral commerce domain types.
guardrail
Payment-specific guardrails and redaction policies.
journal
Durable transaction journal, evidence storage, and safe memory indexing.
kernel
Canonical commerce kernel contracts.
protocol
Protocol adapter entry points.
server
Server and router integration for payment protocols.
tools
Agent-facing payment tool builders backed by the canonical commerce kernel.

Constants§

ACP_DELEGATE_AUTH_BASELINE
ACP experimental delegated-authentication baseline version.
ACP_EXPERIMENTAL_CHANNEL
ACP experimental compatibility channel supported behind acp-experimental.
ACP_STABLE_BASELINE
ACP stable protocol baseline supported by this crate.
AP2_ALPHA_BASELINE
AP2 protocol baseline supported by this crate.
AP2_ALPHA_BASELINE_DATE
Date of the AP2 alpha research baseline tracked by this crate.