Skip to content

docs: update x402 documentation for delegation flow#145

Open
r-marques wants to merge 1 commit intomainfrom
docs/delegation-flow-update
Open

docs: update x402 documentation for delegation flow#145
r-marques wants to merge 1 commit intomainfrom
docs/delegation-flow-update

Conversation

@r-marques
Copy link
Member

Summary

Updates all documentation to reflect the delegation-based token generation flow from PRs:

Breaking changes documented:

  • getX402AccessToken() / get_x402_access_token() now requires delegationConfig
  • CardDelegationConfig renamed to DelegationConfig
  • sessionKeyConfig, redemptionLimit, orderLimit, expiration params removed
  • New createDelegation() API for both stripe and erc4337 providers

Files updated:

Docs (5 files):

  • specs/x402-card-delegation.mdx — renamed to "Delegation Extension", covers both crypto and card
  • integrate/patterns/stablecoin-payments.mdx — delegation replaces session keys
  • integrate/patterns/fiat-payments.mdx — DelegationConfig shared model
  • development-guide/nevermined-x402.mdx — updated token generation examples
  • products/x402-facilitator/how-it-works.mdx — updated step 2 flow with both patterns

Skills (5 files):

  • SKILL.md — all getX402AccessToken calls updated with delegationConfig
  • references/client-integration.md — 6 calls updated
  • references/a2a-integration.md — 1 call updated
  • references/mcp-paywall.md — 1 call updated
  • references/strands-integration.md — 1 call updated

Test plan

  • mintlify broken-links — no broken links
  • Preview deployment looks correct

🤖 Generated with Claude Code

Update all documentation to reflect the delegation-based token
generation flow that replaces the old session-key permissions model.

Key changes across all files:
- getX402AccessToken / get_x402_access_token now requires delegationConfig
- CardDelegationConfig renamed to DelegationConfig
- sessionKeyConfig, redemptionLimit, orderLimit, expiration removed
- New createDelegation API documented for both stripe and erc4337
- Both crypto and card schemes now use the unified delegation model

Docs updated (5 files):
- specs/x402-card-delegation.mdx → renamed to "Delegation Extension"
- integrate/patterns/stablecoin-payments.mdx → delegation replaces session keys
- integrate/patterns/fiat-payments.mdx → DelegationConfig shared model
- development-guide/nevermined-x402.mdx → updated token gen examples
- products/x402-facilitator/how-it-works.mdx → updated step 2 flow

Skills updated (5 files):
- SKILL.md → all getX402AccessToken calls include delegationConfig
- references/client-integration.md → 6 calls updated
- references/a2a-integration.md → 1 call updated
- references/mcp-paywall.md → 1 call updated
- references/strands-integration.md → 1 call updated

Related PRs:
- nevermined-io/nvm-monorepo#1102 (backend)
- nevermined-io/payments#274 (TypeScript SDK)
- nevermined-io/payments-py#167 (Python SDK)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants