Agent Commerce Guide

Agentic Commerce Authentication: Buyer Consent and Agent Trust

Agentic commerce authentication must distinguish the calling agent, the buyer and the authority for a specific purchase. A valid agent signature does not by itself permit unlimited spending. Check identity, purchase scope, current terms and the supported payment credential before completing the order.

Ask three different questions

The first question is who sent the request. The second is which customer the request concerns. The third is whether that customer authorized this purchase under the current terms. Those questions can involve different credentials and different systems. Combining them into a single “trusted agent” flag hides material gaps.

In an illustrative purchase, Sam asks an assistant to buy Cedar's current research report for personal use, up to $35. Cedar quotes $29. The merchant may recognize the assistant's service, link Sam to an account and still need proof that the one-time report order fits Sam's authority. Recognition of the assistant is only one boundary in the transaction.

Use the diagram to assign each check an owner. A single company can perform several roles, but the responsibility should remain explicit. The commerce server should not accept a model's summary of a permission check when the relevant system can verify the actual credential or policy result.

Four trust boundaries

Scroll the table to compare all columns.

BoundaryQuestionEvidence owner
Agent to merchantWho sent this request and for which merchant and purpose?Supported agent identity and signature mechanism
Buyer to agentWhich purchase did the customer permit?Customer approval or applicable policy and mandate mechanism
Payment credential to transactionMay this credential fund these current terms?Credential provider and payment processor
Order to customerWho receives the purchased entitlement?Merchant account and fulfilment services
A conceptual responsibility map. The implementation must use its actual supported verification contracts.

Verify agent context through the supported mechanism

An agent identity mechanism can help a merchant distinguish an intended commerce client from unrelated automated traffic. Visa's Trusted Agent Protocol describes merchant- and purpose-specific, time-bounded signatures, along with merchant-side key retrieval and verification. Those properties are relevant to replay and context checks. They are not a reason to accept an arbitrary signature-looking header. [1]

Implement the exact verification rules provided for the chosen integration. Identify the trusted key source, validate the signed material and check the context that the signature is intended to bind. Do not allow a model to decide that a near match in a merchant name is sufficient. The rules should be handled by deterministic code at the trust boundary.

The Visa public capability page also says the product is in development and deployment and may not be available in all markets. A merchant needs current onboarding and implementation evidence for its own configuration. This guide's discussion of the mechanism is not a claim that your account or region has access. [1]

Link the buyer without overcollecting data

A merchant account can provide useful context, such as a customer's purchased licenses or a permitted delivery destination. It should not turn every agent request into a fully authenticated customer session. Use the supported account-linking or customer recognition mechanism and limit what the integration can read or change.

If the report is delivered through a customer account, confirm that the entitlement goes to the intended customer. An agent-supplied email address may be useful input, but its presence does not establish account ownership. Avoid exposing another customer's order because the caller knows an email address or a predictable order number.

Collect only the purchase information needed for the route. A digital report generally has different fulfilment inputs from a physical shipment. The exact legal and provider requirements depend on the implementation; do not copy every field from an unrelated checkout example merely because the field exists in a schema.

Capture authority for the purchase being completed

A buyer's authority should have an understandable scope. For Sam, that scope includes Cedar, the latest report edition, a personal-use license, one purchase and a ceiling of $35. The assistant should not replace the report with a recurring service or add another product without checking whether the authority still applies.

AP2 v0.2 describes a checkout mandate and a linked payment mandate. The specification assigns verification responsibilities to the merchant, credential provider and payment processor. It is useful evidence that purchase authority and payment authority are linked responsibilities rather than an unstructured chat message. Follow the actual mandate formats and verification rules when implementing AP2. [2]

The conceptual approval card below is deliberately plain English. Its labels are not an official AP2 schema. It helps a merchant and buyer discuss the purchase terms before choosing the supported mechanism that proves them. The mechanism must preserve the connection to the final checkout, rather than authorizing a free-floating dollar amount with no defined purpose.

A conceptual purchase approval

Buyer request
Latest Cedar report, personal-use license, one-time purchase.
Amount limit
No more than $35 total; current illustrative quote $29.
Matching purchase
The $29 one-time personal report at Cedar fits the $35 scope; allow only after all credential and identity checks pass.
Over the limit
A $39 total exceeds the cap; deny this attempt and obtain a new decision.
Different seller
Another seller is outside this named purchase; stop for a scope decision.
Different license or renewal
A team subscription is not the approved one-time personal report; recheck authority even at $29.
Expired authority
Do not extend the old permission; retrieve terms and renew through the supported path.
Repeated completion
Retrieve the existing purchase or apply the supported replay rule; do not create a second charge.
Credential context mismatch
Reject an invalid merchant, currency or operation binding and report the specific boundary.
Sam, Cedar and the amounts are fictional. These plain-English labels are not AP2 or Visa field names.

Recheck changed terms and expired authority

Suppose the $29 report becomes a $39 team license. The price exceeds Sam's limit and the license has changed. The existing authority no longer describes the intended purchase. Return a clear request for a new decision through the supported customer interface instead of collecting payment and explaining the change afterward.

A smaller change can also matter. The amount might stay $29 while the product becomes a monthly subscription or the seller changes. Define which attributes are material for the approval. The policy should be clear enough that the commerce service can enforce it consistently and support can explain it to the buyer.

Time is another boundary. A signed request or approval can have an expiry under the chosen mechanism. When it expires, do not silently extend it. Retrieve current terms and obtain whatever renewed authority the route requires. Keep the old reference for audit and troubleshooting, while preventing it from authorizing a fresh purchase.

Keep payment credentials within their intended scope

A payment credential needs to be handled through the provider's supported path. An agent that can request a charge does not necessarily need raw card details or unrestricted wallet access. Use the appropriate token or protected execution boundary and avoid placing credentials in conversational output or general-purpose logs.

Check the credential's supported merchant, amount, currency, operation and expiry constraints where the provider defines them. Do not assume all token products use the same scope. A credential valid for one purchase or merchant should not be treated as reusable everywhere because the agent recognizes its format.

MagicPay gives agents user-authorized payment workflows with approvals, spending controls and protected credential handling. It is an affiliated product, so this guide discloses that relationship. Those capabilities are relevant to buyer-side authority and credential boundaries. They do not remove the merchant's need to verify its own checkout and payment results or imply universal store acceptance.

Plan for a required human interaction

Some purchases need a buyer to confirm changed terms or complete a provider-required interaction. The agent should stop at that boundary and explain the specific action needed. A pending state is more useful than a generic failure that encourages the assistant to retry the whole order.

Preserve the checkout reference so the buyer's action can be connected to the intended purchase. If the session expires while waiting, communicate the new terms before completion. Do not present an outdated confirmation screen for a different current amount. A human approval should resolve the actual uncertainty, not merely satisfy a decorative checkbox.

If a manual reviewer is involved, give them the minimal relevant context: product, seller, current total, authority reference and reason for escalation. Avoid forwarding secrets or a complete personal conversation when those details are unnecessary. Record the decision through the merchant's controlled workflow so the next agent request cannot invent that a review occurred.

Preserve enough evidence for an explanation

A disputed order should have a compact trace: the offered item, the final terms, the applicable authorization reference, the verified payment reference and the delivery result. Store these records with appropriate access controls. An evidence record is useful only if it can be joined to the actual purchase and distinguished from a different attempt.

Avoid publishing fixed retention periods without considering the actual operator, payment route and applicable requirements. Define a retention policy for the implemented system and explain it accurately to customers. This guide is architectural advice, not a claim that a particular period guarantees compliance in every market.

When investigating a problem, distinguish a genuine credential failure from a missing business permission. An authentic agent request can ask for an unauthorized product; a correctly scoped buyer approval can arrive through an invalid or replayed request. The controls need to reject the relevant boundary without treating every automated request as fraudulent.

Define how a buyer withdraws authority before completion in the mechanism you use. A canceled customer instruction and an already completed financial operation need different handling. The commerce service should check the current applicable authority at its committed transition, and support should be able to distinguish a pre-purchase cancellation from a request to reverse an existing order. Do not promise that revocation can undo an operation that has already settled. Test that boundary with your provider and product rules rather than relying on an assistant’s conversational interpretation.

Test the boundary rather than the label

Use the same fictional report to test changed amount, changed seller, changed license, expired authority and a repeated signed request. Confirm the expected allow, deny or customer-confirmation result for each scenario. Test retrieval after a completion timeout as well, because the agent must not reuse authority to create an unintended second order.

These are recommended scenarios, not proof that a named protocol implementation is secure or that this guide performed a penetration test. Keep the implementation version, configuration and expected result with each test record. Recheck the controls when the checkout contract or credential integration changes.

A reliable authentication design gives the merchant a precise answer: this request came through a verified route, concerns this buyer and is permitted for this purchase. If one part is unknown, return a clear next action or stop. That is more useful to both the customer and the merchant than a broad trust badge that cannot explain the transaction.

Products for this workflow

MagicPay / MagicCard

MagicPay provides user-authorized agent payments with approval and spending controls and protected credential handling. Affiliated product; match the workflow to the merchant’s supported route.

Explore MagicPay / MagicCard ↗

Editorial disclosure: the publisher is connected to the products in this section. Their inclusion is based on the task described here.

Sources and evidence

  1. Visa Trusted Agent Protocol ↗

    Merchant- and purpose-specific time-bounded signatures and merchant verification; development and market availability caveats.

  2. Agent Payments Protocol specification v0.2 ↗

    Linked checkout and payment mandates, role-specific verification, direct and autonomous purchase modes.

  3. MagicPay product capabilities ↗

    User-authorized agent payments, approval and spending controls, protected credential handling; target-product policy applies to our product copy.