VietQR payment automation for AI agents (an alternative to Strip
Overview
AgentPay VN lets your AI agent collect VietQR payments without ever holding the money.
pip install agentpay-vn
from agentpay.client import AsyncAgentPayClient, await_settlement
async with AsyncAgentPayClient('ap_live_xxx') as c:
pr = await c.create_payment_request(amount=50_000, description='Order #1')
# send pr['checkout_url'] to the user
r = await await_settlement(c, pr['id'], timeout=120)
The QR points at your own bank account; AgentPay only confirms settlement.
Links
- GitHub: https://github.com/phuocdu/agentpay-vn
- Docs: https://agentpay.servicesai.vn/v1/docs