From acp-agentic-commerce
Implements ACP delegated payment flow with Stripe SharedPaymentTokens for secure token provisioning, lifecycle management, and checkout completion in agentic commerce.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin acp-agentic-commerceThis 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://developers.openai.com/commerce/specs/payment/ for the delegated payment specificationhttps://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens for SPT implementation detailssite:docs.stripe.com agentic-commerce delegate payment for Stripe integration guidesite:github.com agentic-commerce-protocol spec openapi delegate for the delegate payment OpenAPI specThe agent facilitates purchases but must never see raw card data. Delegated payment creates a secure intermediary:
complete callBuyer → Agent: "Buy this"
Agent → PSP: POST /agentic_commerce/delegate_payment (credentials + constraints)
PSP → Agent: SharedPaymentToken (single-use, scoped)
Agent → Merchant: POST /checkout_sessions/{id}/complete (with SPT)
Merchant → PSP: Charge using SPT
PSP → Merchant: Payment confirmation
Merchant → Agent: Session status = completed + order
Each SharedPaymentToken is scoped with:
"one_time" for single-use checkout tokens)If any constraint is violated, the charge fails.
When the merchant returns authentication_required:
complete again with authentication_result containing:
three_ds_cryptogramelectronic_commerce_indicatortransaction_idversion| Event | Recipient | Purpose |
|---|---|---|
shared_payment.granted_token.used | Merchant | Confirms SPT was consumed |
shared_payment.granted_token.deactivated | Merchant | SPT revoked or expired |
shared_payment.issued_token.used | Agent | Payment was processed |
shared_payment.issued_token.deactivated | Agent | SPT invalidated |
/delegate_payment integration may affect PCI DSS scopemax_amount to the session total (not higher)Fetch the delegated payment OpenAPI spec and Stripe SPT docs for exact endpoint, request/response schemas, and error codes before implementing.