Skip to content

Production-ready integration examples for AgentGatePay - n8n workflows, Python scripts, API demos, and automation templates for crypto payment processing

License

Notifications You must be signed in to change notification settings

AgentGatePay/agentgatepay-examples

Repository files navigation

● # AgentGatePay Examples

Examples and workflow templates for autonomous AI agent payments.

Automate crypto payments (USDC/USDT/DAI) across Ethereum, Base, Polygon, and Arbitrum using zero-code n8n workflows, AI framework integrations, and API demos. AgentGatePay currently supports multi-chain cryptocurrency payments. We are actively working to expand support for additional payment methods. If you would like to see a specific payment method or feature, please contact support@agentgatepay.com. Your feedback helps shape our roadmap.

License: MIT GitHub stars


⚠️ IMPORTANT DISCLAIMER

AgentGatePay is currently in BETA. By using these examples and the AgentGatePay service, you acknowledge and accept:

  • Service Availability: The service may be unavailable, suspended, or permanently shut down at any time without prior notice. No SLA or uptime guarantees.
  • Data Loss Risk: All data may be lost at any time without recovery. Users are solely responsible for maintaining independent backups of transaction records.
  • No Liability: AgentGatePay is NOT LIABLE for any direct, indirect, or consequential damages including lost cryptocurrency, failed transactions, service interruptions, or loss of revenue.
  • Financial Risk: Blockchain transactions are irreversible. Users are solely responsible for securing private keys, API keys, and compliance with applicable laws.
  • No Warranty: These examples and the service are provided "AS IS" without warranties of any kind.

📄 Read the full DISCLAIMER.md before using these examples or AgentGatePay.

BY USING THESE EXAMPLES, YOU AGREE TO THESE TERMS.


Supported Payment Methods

Cryptocurrencies: USDC, USDT, DAI Blockchains: Ethereum, Base, Polygon, Arbitrum

Supported Combinations:

  • USDC: All chains (Ethereum, Base, Polygon, Arbitrum)
  • USDT: Ethereum, Polygon, Arbitrum (not available on Base)
  • DAI: All chains (Ethereum, Base, Polygon, Arbitrum)

Gas Tokens Required:

  • Ethereum: ETH
  • Base: ETH
  • Polygon: MATIC
  • Arbitrum: ETH

Quick Start

n8n Workflows

For automation users who want zero-code blockchain payment workflows:

  1. Import workflow JSON from n8n/ directory into your N8N platform
  2. Configure your AgentGatePay API key
  3. Set up notifications (Slack, Email, or Discord)
  4. Deploy transaction signing service using one-click Render deploy
  5. Activate workflow to begin monitoring payments

Complete setup time: approximately 5-10 minutes.

Full n8n Setup Guide

AI Framework Integrations

Production examples for popular AI agent frameworks using AgentGatePay SDKs.

Python Framework Examples:

  • LangChain Integration - Autonomous tool-calling agents with payment capabilities (10 complete examples)

JavaScript/TypeScript Framework Examples:

Need help with other platforms or languages? Contact support@agentgatepay.com and we'll help you integrate AgentGatePay with your framework.


Repository Contents

n8n Workflows (Available)

Production-ready n8n templates for autonomous blockchain payment automation:

Buyer Agent Workflow

  • Autonomous payment for API resources using pre-authorized mandates
  • Multi-chain support (Ethereum, Base, Polygon, Arbitrum)
  • Budget management with AP2 mandate protocol
  • Automatic transaction signing via Render or Railway service
  • Configuration time: 10 minutes

Seller Resource API Workflow

  • Monetize n8n webhooks and APIs with cryptocurrency payments
  • HTTP 402 Payment Required protocol implementation
  • On-chain payment verification
  • Automatic resource delivery upon payment confirmation
  • Customizable resource catalog

Buyer Monitoring Dashboard

  • Real-time spending analytics (track outgoing payments)
  • Mandate budget tracking (remaining balance, spent amount, utilization percentage)
  • Transaction history (payments YOU sent to merchants)
  • Multi-wallet support
  • Budget depletion and spending alerts

Seller Monitoring Dashboard

  • Revenue analytics (total, daily, weekly, monthly breakdowns)
  • Payment tracking (payments YOU received from buyers)
  • Multi-chain revenue breakdown
  • Top buyers analytics
  • Webhook delivery status tracking

Browse n8n workflows


AI Framework Examples (Available)

Official SDK integration examples for popular AI agent frameworks.

Python SDK Examples (Browse Python examples)

  • LangChain - Payment-enabled tool agents, API marketplace agents, budget-managed research assistants (10 complete examples)
  • REST API Integration - Integration guides for any framework
  • MCP Integration - Model Context Protocol (15 tools)

JavaScript/TypeScript SDK Examples (Browse JavaScript examples)

  • LangChain.js - Node.js/TypeScript payment agents, Express.js webhook servers (10 complete examples)
  • REST API Integration - Integration guides for any JavaScript framework
  • MCP Integration - Model Context Protocol (15 tools)

Features

  • AIF (Agent Interaction Firewall) - First firewall built for AI agents with rate limiting and reputation system
  • Multi-chain blockchain support (Ethereum, Base, Polygon, Arbitrum)
  • Multi-token support (USDC, USDT, DAI) with automatic decimal handling
  • Real-time notifications (Slack, Email, Discord, Webhooks)
  • Complete audit log integration for compliance tracking
  • Production-ready error handling and retry logic
  • Webhook signature verification (HMAC)
  • Budget management using AP2 mandate system with TTL and scope controls
  • One-click deployment for transaction signing service
  • Comprehensive documentation with troubleshooting guides

Gateway Commission: 0.5% fee on all payments

  • Automatically deducted via two-transaction model
  • Commission TX: 0.5% → AgentGatePay wallet (covers infrastructure costs)
  • Merchant TX: 99.5% → seller wallet
  • Both transactions atomic and transparent on-chain

Prerequisites

For n8n Workflows:

  • AgentGatePay API key
  • n8n instance (Cloud or self-hosted)
  • Ethereum-compatible wallet funded with payment tokens (USDC, USDT, or DAI) and gas tokens
  • Transaction signing service (deployed via Render or Railway)

For Framework Integrations:

  • Python 3.9+ or Node.js 18+ (framework dependent)
  • AgentGatePay SDK: pip install agentgatepay-sdk or npm install agentgatepay-sdk
  • AgentGatePay API key
  • Ethereum-compatible wallet funded with payment tokens and gas tokens

Documentation


Contributing

Contributions are welcome. To contribute:

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/new-example)
  3. Commit your changes (git commit -m 'Add new integration example')
  4. Push to the branch (git push origin feature/new-example)
  5. Open a Pull Request

For bugs or feature requests, please email support@agentgatepay.com.


Feedback and Feature Requests

AgentGatePay is actively expanding payment method support beyond cryptocurrency. Planned additions include:

  • Credit and debit card processing (Stripe, Square)
  • Bank transfers (ACH, SEPA)
  • PayPal, Venmo, Cash App
  • Regional payment methods (Alipay, WeChat Pay, PIX)
  • Mobile payment integrations

To request features or provide feedback:

Your input directly influences development priorities.


License

MIT License - see LICENSE file for details.

Free for production use, modification, and distribution. Commercial use permitted.


Acknowledgments

If you are using AgentGatePay in production, please star this repository. Stars help other developers discover these integration tools.


API Endpoint: api.agentgatepay.com MCP Endpoint: mcp.agentgatepay.com

Maintained by the AgentGatePay team.

About

Production-ready integration examples for AgentGatePay - n8n workflows, Python scripts, API demos, and automation templates for crypto payment processing

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published