DEV Community

ServicesAI VN
ServicesAI VN

Posted on • Originally published at agentpay.servicesai.vn

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
Enter fullscreen mode Exit fullscreen mode
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)
Enter fullscreen mode Exit fullscreen mode

The QR points at your own bank account; AgentPay only confirms settlement.

Links

Top comments (0)