Ap2 credentials provider

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Ap2 credentials provider is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Build an AP2 Credentials Provider — the agent that manages payment credentials, provides payment methods to users, handles tokenization (DPAN), and facilitates secure payment between Shopping Agent and Payment Processor. Use when implementing the Credentials Provider role.

How to use this skill

Skill file

AP2 Credentials Provider Implementation

Before writing code

Fetch live docs:

  1. Fetch https://ap2-protocol.org/ap2/specification/ for Credentials Provider responsibilities
  2. Web-search site:github.com google-agentic-commerce AP2 samples roles credentials_provider for reference implementation
  3. Web-search site:github.com google-agentic-commerce AP2 credentials provider tokenization DPAN for tokenization details
  4. Fetch https://ap2-protocol.org/ap2/security_and_privacy_considerations/ for security requirements

Conceptual Architecture

What the Credentials Provider Does

The Credentials Provider (CP) is the payment credentials custodian — a digital wallet that securely manages payment methods and handles tokenization:

  1. Stores payment credentials — User's payment methods (cards, wallets)
  2. Provides payment method listings — Returns available methods to Shopping Agent
  3. Handles tokenization — Converts real credentials to DPANs (Digitized Primary Account Numbers)
  4. Validates Payment Mandates — Verifies user authorization before releasing tokens
  5. Facilitates payment — Provides credentials to Merchant Payment Processor
  6. Manages user identity — Links user identity to payment methods

Critical Security Role

The Credentials Provider is the only entity that handles raw payment credentials:

Agent Card

The Credentials Provider advertises:

Key Responsibilities

Payment Method Management
Tokenization
Payment Mandate Validation
Credential Release

When the Merchant Payment Processor requests credentials:

Payment Method Addition

If a user lacks eligible payment methods:

Security Requirements

Best Practices

Fetch the specification for exact Credentials Provider API, tokenization requirements, and Payment Mandate validation process before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.