惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
罗磊的独立博客
雷峰网
雷峰网
量子位
V
Visual Studio Blog
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
月光博客
月光博客
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
腾讯CDC
Engineering at Meta
Engineering at Meta
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
Jina AI
Jina AI
A
About on SuperTechFans

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
VietQR Payments for AI Agents—No Stripe Setup
ServicesAI VN · 2026-06-14 · via DEV Community

ServicesAI VN

VietQR Payments for AI Agents—No Stripe Setup

The Problem

Building AI agents in Vietnam that need to collect payments? Stripe doesn't support VietQR, and integrating traditional payment gateways means managing API keys, webhooks, and fund settlement delays. Most solutions require your agent to hold or route money through intermediaries.

What if your AI could generate a QR code that points directly to your business bank account?

Introducing AgentPay VN

AgentPay is an open-source (MIT) Python SDK + MCP server that lets Claude, local LLMs, and custom agents collect VietQR payments in three lines of logic:

  1. Create a payment request
  2. Send the checkout URL to your customer
  3. Await settlement confirmation from the bank feed

No middleman. No fund holding. The QR points straight to your merchant account.

How It Works

AgentPay reads your bank's SePay feed to confirm when a payment settles. It doesn't touch the money—it just watches for it. Your AI agent can then trigger downstream workflows (send invoice, unlock feature, etc.) once settlement is confirmed.

Installation

pip install agentpay-vn

Or run the MCP server for Claude Desktop / Code:

pip install agentpay-mcp

Quick Example

from agentpay import AgentPayClient

client = AgentPayClient(
    api_key="your_api_key",
    merchant_id="your_merchant_id"
)

# Step 1: Create payment request
payment = client.create_payment_request(
    amount=100000,  # 100K VND
    description="AI consulting session",
    order_id="order_12345"
)

print(f"Checkout URL: {payment.checkout_url}")
# Share with customer → they scan QR → money hits your bank

# Step 2: Poll for settlement
import time
while True:
    status = client.get_payment_status(payment.id)
    if status.settled:
        print("✓ Payment confirmed! Triggering downstream workflow...")
        break
    time.sleep(5)

MCP Integration

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "agentpay": {
      "command": "python",
      "args": ["-m", "agentpay_mcp.server"],
      "env": {
        "AGENTPAY_API_KEY": "your_api_key",
        "AGENTPAY_MERCHANT_ID": "your_merchant_id"
      }
    }
  }
}

Now Claude can:

  • Generate payment QR codes on demand
  • Check settlement status mid-conversation
  • Chain payments into multi-step workflows

Real Use Cases

  • AI Consulting Chatbots: "That analysis will cost ₫500K. [Scan QR]. Thanks! Here's your report."
  • Autonomous Trading Bots: Collect fees when trades execute; settle directly to ops account.
  • AI Content Marketplace: Agent lists content, collects micro-payments, splits revenue—all via QR.

Honest Limitations

  • Vietnam-only: Requires a VietQR-compatible bank account.
  • SePay dependency: Settlement confirmation relies on your bank's SePay feed API (not all banks fully supported yet—check docs).
  • Polling model: No real-time webhooks; you'll poll for status updates.
  • Early-stage: Open-source project; production use should include your own monitoring.

Get Started

AgentPay strips away payment infrastructure complexity so you can focus on what your AI agent does best. No Stripe. No holding accounts. Just QR → Bank → Done.

Try it. Open an issue. Build something interesting.