Thêm công cụ thanh toán cho AI agent trong 10 phút
Tổng quan
AgentPay VN giúp AI agent của bạn thu tiền VietQR mà không giữ tiền hộ.
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)
Mã QR trỏ thẳng vào tài khoản ngân hàng của bạn; AgentPay chỉ xác nhận khi tiền về.
Liên kết
- GitHub: https://github.com/phuocdu/agentpay-vn
- Tài liệu: https://agentpay.servicesai.vn/v1/docs