# VietQR Payments for AI Agents—No Stripe Setup

> Source: <https://dev.to/ai_services_f9c382bdb33b9/vietqr-payments-for-ai-agents-no-stripe-setup-3d9f>
> Published: 2026-06-14 04:26:00+00:00

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?

**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:

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

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.

```
pip install agentpay-vn
```

Or run the MCP server for Claude Desktop / Code:

```
pip install agentpay-mcp
python
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)
```

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:

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.
