Inspiration
On September 16, 2025, Google announced the Agent Payments Protocol (AP2), an open protocol developed with more than 60 organizations, including PayPal. AP2 introduced Intent Mandates and Cart Mandates to create verifiable records of what users authorize AI agents to do.
The industry was moving towards a future where AI agents could search, compare products, and make purchases on behalf of people.
But one question kept bothering us:
𝗪𝗵𝗮𝘁 𝗵𝗮𝗽𝗽𝗲𝗻𝘀 𝘄𝗵𝗲𝗻 𝗮𝗻 𝗔𝗜 𝗮𝗴𝗲𝗻𝘁 𝘀𝘂𝗰𝗰𝗲𝘀𝘀𝗳𝘂𝗹𝗹𝘆 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲𝘀 𝗮 𝗽𝗮𝘆𝗺𝗲𝗻𝘁 𝗳𝗼𝗿 𝘀𝗼𝗺𝗲𝘁𝗵𝗶𝗻𝗴 𝘁𝗵𝗲 𝘂𝘀𝗲𝗿 𝗻𝗲𝘃𝗲𝗿 𝗮𝗰𝘁𝘂𝗮𝗹𝗹𝘆 𝘄𝗮𝗻𝘁𝗲𝗱?
On October 14, 2025, Visa introduced its Trusted Agent Protocol and reported that AI-driven traffic to US retail websites had increased by more than 4,700% over the previous year.
On October 17, 2025, McKinsey estimated that agentic commerce could orchestrate between $3 trillion and $5 trillion in global revenue by 2030 under moderate assumptions.
The opportunity was enormous, but so was the responsibility of giving AI agents permission to spend people's money.
On September 9, 2026, Visa published research showing that only 23% of US consumers trusted generative AI to handle payment transactions on their behalf.
Then, on November 5, 2026, Visa released its Agentic Commerce Benchmark. It tested 22 AI models from 12 labs across 15 shopping challenges. The models achieved an overall pass rate of 57.2%. More concerning, 54% of failed runs still ended with the AI making a purchase.
These were controlled benchmark results, not real-world fraud or loss rates. But they demonstrated something important: an AI agent can complete a purchase even when it has failed to properly understand or follow the customer's requirements.
We saw an opportunity to build an additional layer of protection.
That became OryvaPay.
𝗪𝗵𝗮𝘁 𝗶𝘁 𝗱𝗼𝗲𝘀
OryvaPay is an AI-powered transaction verification layer for agent-initiated purchases.
It checks whether an order matches the buyer's original natural-language instructions before PayPal captures the payment.
Imagine asking an AI shopping agent:
"I want black running shoes, size 10, under $80. No extras, no subscriptions."
The agent finds the right shoes for $74.99, but adds a $12.99 Protection Plan before checkout.
The merchant is legitimate. The payment authorization is valid. But the final order violates the buyer's instructions.
OryvaPay catches that mismatch before the payment is captured.
𝗛𝗲𝗿𝗲'𝘀 𝗵𝗼𝘄 𝗶𝘁 𝘄𝗼𝗿𝗸𝘀:
Describe what you want: The buyer enters a request in plain language. OryvaPay uses AI to convert it into structured purchase rules, including product requirements, size, budget, quantity, and prohibited extras.
Authorize the payment: The shopping agent builds the order, and the buyer approves a PayPal authorization. The funds are held, but the payment has not been captured.
Verify the order: OryvaPay reads the actual order received by PayPal. A deterministic rules engine checks numerical details such as prices, quantities, totals, and forbidden add-ons. An AI intent check evaluates whether the order lines match the buyer's original request.
Make a decision:
- PASS: The order meets the requirements, so PayPal captures the authorization.
- BLOCK: The order violates the requirements, so OryvaPay voids the authorization.
- REVIEW: The buyer gets the opportunity to decide.
Buyers can choose between Strict, Flexible, and Approval modes depending on how much control they want.
Every purchase generates an Intent Record secured with a SHA-256 hash chain. An Evidence Pack provides the original request, extracted rules, order details, product images, store links, verification outcome, and PayPal references.
OryvaPay does not replace PayPal or existing agent payment protocols. It adds an independent intent-verification checkpoint before payment capture.
## 𝗛𝗼𝘄 𝘄𝗲 𝗯𝘂𝗶𝗹𝘁 𝗶𝘁
OryvaPay is built with Node.js and Express.js and hosted on Render.
Our payment workflow uses:
- PayPal Orders API v2 to create orders with the
AUTHORIZEintent. - PayPal JavaScript SDK to handle buyer approval in the sandbox.
- PayPal Payments API v2 to capture passing authorizations or void blocked ones.
- Groq API with GPT-OSS 120B (
openai/gpt-oss-120b) for natural-language intent processing.
The AI model performs two important tasks:
- Converts the buyer's plain-language request into structured purchase rules.
- Evaluates whether the actual order makes sense in relation to the buyer's original intent.
We deliberately separated AI interpretation from exact numerical enforcement.
Prices, quantities, totals, and forbidden add-ons are checked using deterministic code. We don't rely on a language model to calculate whether a purchase is within budget or whether an extra charge has been added.
We also implemented SHA-256 hash chaining for Intent Records, making subsequent changes to recorded evidence detectable.
The Evidence Pack includes product photos and links to the corresponding store pages, giving buyers a clearer record of what was actually included in an order.
𝗖𝗵𝗮𝗹𝗹𝗲𝗻𝗴𝗲𝘀 𝘄𝗲 𝗿𝗮𝗻 𝗶𝗻𝘁𝗼
One of our biggest challenges was making verification strict enough to protect buyers without making checkout frustrating.
Not every difference between an original request and a final order should automatically block a purchase. A small change might be acceptable to one buyer and unacceptable to another.
We addressed this through Strict, Flexible, and Approval modes.
Another challenge was deciding which tasks should be handled by AI and which should be handled by code. Language models are useful for interpreting meaning, but exact financial checks need predictable results. Separating those responsibilities made the verification process more reliable.
We also had to keep the AI verification step fast enough to fit between PayPal authorization and capture, while handling API rate limits and the constraints of a free hosting tier.
Finally, we wanted a blocked purchase to have a clear financial outcome. Using PayPal's existing authorization, capture, and void mechanisms allowed us to build that checkpoint without creating a separate payment system.
𝗔𝗰𝗰𝗼𝗺𝗽𝗹𝗶𝘀𝗵𝗺𝗲𝗻𝘁𝘀 𝘁𝗵𝗮𝘁 𝘄𝗲'𝗿𝗲 𝗽𝗿𝗼𝘂𝗱 𝗼𝗳
We're proud that OryvaPay goes beyond identifying a mismatch. It connects the verification result to an actual payment action.
During our live tests on the deployed website, using PayPal sandbox payments and the AI integration, we successfully demonstrated three scenarios.
1. Blocking an unwanted extra
The shopping agent added a $12.99 Protection Plan to black running shoes priced at $74.99.
OryvaPay detected the unwanted extra and returned a BLOCK verdict. PayPal voided the authorization, preventing the payment from being captured.
We then used the Fix Order option to remove the Protection Plan. OryvaPay verified the corrected order, and PayPal successfully captured the $74.99 payment.
2. Passing a clean order
The same shoes, priced at $74.99, were submitted without unwanted extras. OryvaPay returned PASS, and PayPal captured the authorization successfully.
3. Handling a price change
We tested what happens when the shoe price changes from $74.99 to $79.99.
- Strict mode blocked the order and PayPal voided the authorization.
- Flexible mode passed the order.
- Approval mode waited for the buyer's decision before proceeding with capture.
We're especially proud of demonstrating the complete cycle: detecting a problem, preventing capture, correcting the order, and successfully completing the payment.
What we learned
Building OryvaPay changed how we think about agentic commerce.
Giving an AI agent permission to spend money is one part of the problem. Making sure it spends that money according to the buyer's actual instructions is another.
We learned that AI interpretation and deterministic financial validation work better as separate responsibilities.
We also learned that authorization creates a useful checkpoint. Instead of waiting until a buyer discovers a mistake on their bank statement, a verification layer can inspect the order before capture.
Protocols such as AP2 are important for establishing authorization and evidence. OryvaPay builds on that direction by independently checking the relationship between the buyer's original request and the actual PayPal order.
Most importantly, we learned that trust in agentic commerce will depend on giving users meaningful control over what their agents are allowed to purchase.
What's next for OryvaPay
We want to extend OryvaPay beyond the current demonstration.
Our next priorities include:
- Delivery tracking with payment capture tied to confirmed delivery.
- A merchant API and webhooks for easier integration.
- Support for agent payment standards such as AP2 as they mature.
- Further improvements to verification speed, reliability, and evidence handling.
We believe people should be able to benefit from AI-powered shopping without giving up control over their money.
OryvaPay makes sure the purchase is still what you asked for before the payment goes through.
Your intent. Your money. Your control.
𝗦𝗼𝘂𝗿𝗰𝗲𝘀
- Google Cloud, September 16, 2025. Announcing the Agent Payments Protocol (AP2).
- Visa, October 14, 2025. Visa Trusted Agent Protocol.
- McKinsey, October 17, 2025. The Agentic Commerce Opportunity.
- American Express, April 14, 2026. American Express Agentic Commerce Experiences.
- Visa, September 9, 2026. Visa Trust Index.
- Lowenstein Sandler, October 13, 2026. Who Said 'Buy'? Agentic Payments and the Evidence Problem.
- Visa, November 5, 2026. Agentic Commerce Benchmark.
Built With
- ai
- express.js
- gptoss120b
- groq
- javascript
- node.js
- paypal
- sdk