Skip to content

[Smart Accounts Kit ] add delegations buyer guide for x402#2912

Merged
AyushBherwani1998 merged 14 commits into
mainfrom
feat/buyer
May 14, 2026
Merged

[Smart Accounts Kit ] add delegations buyer guide for x402#2912
AyushBherwani1998 merged 14 commits into
mainfrom
feat/buyer

Conversation

@AyushBherwani1998

@AyushBherwani1998 AyushBherwani1998 commented May 13, 2026

Copy link
Copy Markdown
Member

Description

  • Add x402 buyers guide using delegations.

Issue(s) fixed

Fixes #

Preview

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

External contributor checklist

  • I've read the contribution guidelines.
  • I've created a new issue (or assigned myself to an existing issue) describing what this PR addresses.

Note

Low Risk
Low risk: documentation-only changes plus a small correction to code snippets (delegationManager field location) that could affect readers but not runtime behavior.

Overview
Adds a new x402 section to the Smart Accounts Kit docs sidebar with Buyer guides covering paying x402-protected APIs via delegations, Advanced Permissions with fixed allowance, and recurring payments.

Updates existing Advanced Permissions/ERC-7710 reference examples to extract delegationManager directly from the permission response (permissionsResponse[0].delegationManager) instead of signerMeta.delegationManager.

Reviewed by Cursor Bugbot for commit 5646278. Bugbot is set up for automated code reviews on this repo. Configure here.

@AyushBherwani1998 AyushBherwani1998 requested review from a team as code owners May 13, 2026 05:24
@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
metamask-docs Ready Ready Preview, Comment May 14, 2026 4:47am

Request Review

@bgravenorst bgravenorst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some feedback

Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/delegations.md Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 460383c. Configure here.

Comment thread smart-accounts-kit/guides/x402/buyer/advanced-permissions.md Outdated
alexandratran
alexandratran previously approved these changes May 13, 2026

@alexandratran alexandratran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor feedback

Comment thread smart-accounts-kit/guides/x402/buyer/recurring-payments.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/recurring-payments.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/advanced-permissions.md Outdated
AyushBherwani1998 and others added 2 commits May 13, 2026 23:30
Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com>
alexandratran
alexandratran previously approved these changes May 13, 2026
Comment thread smart-accounts-kit/guides/x402/buyer/advanced-permissions.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/advanced-permissions.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/advanced-permissions.md
Comment thread smart-accounts-kit/guides/x402/buyer/advanced-permissions.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/advanced-permissions.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/recurring-payments.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/recurring-payments.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/recurring-payments.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/recurring-payments.md Outdated
Comment thread smart-accounts-kit/guides/x402/buyer/recurring-payments.md Outdated

@bgravenorst bgravenorst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AyushBherwani1998 AyushBherwani1998 merged commit da43bc8 into main May 14, 2026
18 of 19 checks passed
@AyushBherwani1998 AyushBherwani1998 deleted the feat/buyer branch May 14, 2026 04:57
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.

3 participants