Skip to content

docs: add stablecoin payments topic#196

Open
EddieNBT wants to merge 2 commits intogoogle-agentic-commerce:mainfrom
EddieNBT:patch-2
Open

docs: add stablecoin payments topic#196
EddieNBT wants to merge 2 commits intogoogle-agentic-commerce:mainfrom
EddieNBT:patch-2

Conversation

@EddieNBT
Copy link

Add Stablecoin Payments Documentation

This document explores how AP2 could be applied to stablecoin-based push payments, covering:

  • Push vs pull payment semantics and a conceptual mapping of how AP2 mandates might function in a stablecoin context
  • Potential use cases: social entertainment payments (tipping, gifting, subscriptions) and cross-border B2B settlement
  • An illustrative example of a PaymentMethodData extension for stablecoins
  • A conceptual gap analysis between current AP2 v0.1 capabilities and stablecoin payment needs
  • Alignment with the AP2 roadmap (e.g., push payments and recurring payments planned for future versions)
  • Relationship to x402
    This follows the existing pattern of topic documents such as ap2-and-x402.md and ap2-and-ucp.md.
    This document is intended as an exploratory contribution and does not represent an official AP2 specification.
  • Follow the CONTRIBUTING Guide
  • Make your Pull Request title in the conventional commits specification
  • Appropriate docs were updated

@EddieNBT EddieNBT requested a review from a team as a code owner March 25, 2026 08:11
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new conceptual document that explores the integration of stablecoin-based payments into the Agent Payments Protocol (AP2). It analyzes the differences between AP2's current pull payment model and stablecoin's push payment semantics, proposing how AP2's architecture could adapt to support stablecoins for various use cases, and suggesting a potential technical extension.

Highlights

  • New Documentation Topic Added: A new document titled 'Exploring Stablecoin Payments in AP2' has been added to the docs/topics directory.
  • Stablecoin Integration with AP2: The document explores how the Agent Payments Protocol (AP2) could be applied to stablecoin-based push payments, contrasting them with AP2's current pull payment focus.
  • Use Cases Identified: Potential applications for stablecoin payments within AP2 are outlined, including social entertainment payments (tipping, gifting, subscriptions) and cross-border B2B settlement.
  • Proposed PaymentMethodData Extension: A conceptual PaymentMethodData extension is proposed to support stablecoins, detailing fields like supported tokens, chains, and settlement currency.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new documentation topic, "Exploring Stablecoin Payments in AP2," which details how the Agent Payments Protocol could be applied to stablecoin-based transactions, covering payment semantics, potential use cases, and a possible PaymentMethodData extension. The review feedback highlights that this new document needs to be added to the mkdocs.yml navigation configuration to ensure it appears in the site's navigation.

@@ -0,0 +1,50 @@
# Exploring Stablecoin Payments in AP2
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For this new topic to appear in the site navigation, it needs to be added to mkdocs.yml. Please add an entry for this file under the Topics section in the nav configuration.

For example:

nav:
  - Topics:
      # ... other topics
      - AP2 and x402: topics/ap2-and-x402.md
      - AP2 and Stablecoin Payments: topics/ap2-and-stablecoin-payments.md
      - Privacy and Security: topics/privacy-and-security.md
      # ... other topics

@EddieNBT
Copy link
Author

Code Review

This pull request introduces a new documentation topic, "Exploring Stablecoin Payments in AP2," which details how the Agent Payments Protocol could be applied to stablecoin-based transactions, covering payment semantics, potential use cases, and a possible PaymentMethodData extension. The review feedback highlights that this new document needs to be added to the mkdocs.yml navigation configuration to ensure it appears in the site's navigation.

Thanks for the review. I’ve updated mkdocs.yml to include this topic in the site navigation.

This document is intended as an exploratory contribution following the existing AP2 topic-doc pattern. Happy to make any further adjustments if needed.

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.

1 participant