From ap2-agentic-payments
Scaffolds AP2 agentic payments project: installs Python SDK via uv/GitHub, creates agent roles (shopping, merchant, credentials provider, payment processor), configures Google API/Vertex AI credentials, sets up multi-agent structure.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-paymentsThis skill is limited to using the following tools:
**Fetch live docs**:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
Fetch live docs:
https://ap2-protocol.org/ for the latest protocol overviewhttps://github.com/google-agentic-commerce/AP2 for the current README and installation instructionssite:github.com google-agentic-commerce AP2 samples python for the sample project structurehttps://github.com/google-agentic-commerce/AP2/tree/main/samples/python for Python sample layoutAn AP2 project creates a multi-agent payment system with distinct roles:
# Requires Python 3.10+ and uv
uv pip install git+https://github.com/google-agentic-commerce/AP2.git@main
my-ap2-project/
├── roles/
│ ├── shopping_agent/ # Shopping Agent — orchestrates purchases
│ │ ├── __init__.py
│ │ └── agent.py
│ ├── merchant_agent/ # Merchant — product catalog, cart creation
│ │ ├── __init__.py
│ │ └── agent.py
│ ├── credentials_provider_agent/ # CP — payment methods, tokenization
│ │ ├── __init__.py
│ │ └── agent.py
│ └── merchant_payment_processor_agent/ # MPP — payment processing
│ ├── __init__.py
│ └── agent.py
├── .env # GOOGLE_API_KEY or Vertex AI config
├── pyproject.toml
├── run.sh # Launches all agents
└── tests/
└── test_flow.py
Two authentication options:
GOOGLE_API_KEY in .envGOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATIONEach agent runs on its own port:
/a2a/credentials_provider)ap2.types for mandate and payment structures.env files for credentials, never hardcode.logs/watch.log pattern from samples is usefulFetch the latest GitHub README and sample READMEs for exact setup commands, current package versions, and framework requirements before scaffolding.