AI agents can already browse, compare and prepare a purchase. The hard part is the last step: who says "yes", and who actually pays?
I'm building VotexPay, an approval and completion layer for agent-initiated purchases. Agents browse and prepare, humans approve, pay and confirm. Here is how it works and how to connect an agent via MCP.
The problem
If you give an agent a card number, you are trusting its prompt. Prompts get injected, pages lie, and agents guess. I wanted a flow where the agent never has to be trusted with the decision or the card.
The flow: four steps
- Agent requests. With a scoped API key, the agent creates a purchase with the merchant URL, amount and item description.
- You approve. The agent gets a one-time handoff link (/pay/{token}). Approving needs step-up authentication, so the decision stays with the account holder.
- You pay. You complete checkout on the merchant site, with the method you choose.
- Agent verifies. VotexPay records completion. The agent polls the purchase status instead of assuming it worked.
Two rules are enforced server-side: agents cannot approve their own purchases, and they cannot complete a merchant checkout on their own. In the user-paid handoff, VotexPay never receives your card data and does not charge you for the purchase.
Controls that don't trust the prompt
- Scoped API keys: hashed at rest, revocable, limited to what the task needs. Keys can't be edited; you revoke and recreate.
- Human approval: one-time handoffs, with approve, reject or expire.
- Isolated browser sessions: explicit actions, SSRF checks, screenshot blocking after card fill.
- Verified completion: success selectors, text and URL are checked before a purchase is marked completed.
- Dual-LLM isolation (Agent Runs): a planner and a quarantined extractor, so untrusted page content never becomes instructions.
- 2FA and passkeys for sensitive decisions.
These are engineering controls, not certification claims.
Connecting an agent via MCP
VotexPay exposes a remote MCP server over Streamable HTTP:
It supports OAuth 2.1 (dynamic registration, PKCE), so MCP clients can discover auth on their own. In a client that supports remote MCP connectors, add the URL, complete the consent screen, then call votex_whoami to see your plan, features, limits and scopes. For clients without OAuth, use a dedicated API key in the Authorization header and never put it in prompts or browser code.
To be clear: this is a connection through VotexPay's own MCP server, not a partnership with any client. The server is listed on the official MCP Registry.
Or use the SDKs
from votex import VotexClient with VotexClient("sk_votex_...") as client: purchase = client.purchases.create( rail="user_paid", amount=49.00, currency="eur", checkout_url="https://shop.example/checkout/abc123", merchant_name="Example Shop", item_description="Example item", ) handoff = client.purchases.handoff(purchase["id"]) print(handoff["handoff_url"]) # send this to the human There is a TypeScript SDK and a REST API (POST /api/v1/purchases) too.
What works today, and what doesn't
Live: MCP, REST, Python and TypeScript SDKs, scoped keys, user-paid purchase handoff, isolated browser sessions, 2FA and passkeys.
Not live yet: the PCI vault and card autofill, and virtual cards. I'd rather say that up front than overpromise.
The Free plan includes 25 user-paid purchases per month, so you can try the handoff flow at no cost.
Try it
If you build agents that need to buy things, I'd like your feedback on the flow and the API: https://votexpay.com/?utm_source=devto&utm_medium=article&utm_campaign=votexpay_articles
What would you want an approval step to look like in your agent?
