CLI docs

Visa Agent Directory services (optional)Merchant verification

Visa Agent Directory services (optional)TAP specification

Merchant verification

Interactions, required fields, the signature base, verification order, consumer recognition and the payment container.

Markdownllms.txt
On this page

TAP attaches verifiable intent to the merchant’s existing web, API or message-protocol routes.

The specification’s /example-product and /checkout URLs are examples. TAP does not standardize a merchant product catalog, cart route, checkout method or a single 402 response body. Merchants define those contracts and validate the supplied signatures.

InteractionSignature tagData carried
Browsing / product detailagent-browser-authHTTP message signature; consumer-recognition object may accompany it.
Purchase / paymentagent-payer-authHTTP message signature plus payment container; consumer-recognition data may also be present.
Pay for accessMerchant’s 402 response and paid retryThe container may carry a signed browsing IOU. Match the merchant’s invoice, amount, recipient and resource.

Required recognition fields

Signature-Input

Signature component list and parameters; same dictionary label as Signature.

Signature

RFC 9421 byte-sequence value for that label.

@authority,@path

Minimum covered request components listed by the Visa specification.

created,expires

Epoch seconds, request currently valid; the public merchant spec caps duration at 480 seconds.

keyid

Signing public key identifier; select the correct trusted entry.

alg

Signature algorithm matching the public key.

nonce

Session / replay identifier; link matching objects to the same message signature.

tag

agent-browser-auth or agent-payer-auth for the intended interaction.

Illustrative RFC 9421 browsing request
GET /example-product HTTP/1.1
Host: shop.example.com
Signature-Input: sig2=("@authority" "@path");created=1793836800;expires=1793837100;keyid="YOUR_TRUSTED_KEY_ID";alg="ed25519";nonce="GENERATE_BASE64_NONCE";tag="agent-browser-auth"
Signature: sig2=:BASE64_SIGNATURE_BYTES:

Illustrative timestamps and signatures must be regenerated. The required signature-base lines quote the component names. Its final line contains the Signature-Input member value, without the sig2 dictionary label:

Correct signature-base structure
"@authority": shop.example.com
"@path": /example-product
"@signature-params": ("@authority" "@path");created=1793836800;expires=1793837100;keyid="YOUR_TRUSTED_KEY_ID";alg="ed25519";nonce="GENERATE_BASE64_NONCE";tag="agent-browser-auth"

Verification order

  1. Recognize the profile. Require the appropriate tag, fields and covered components for the interaction.
  2. Check time and replay. Validate the current interval and profile duration; reserve the key/nonce pair after the signature verifies.
  3. Resolve a trusted key. Use the Visa Agent Directory or a configured issuer, match keyid and algorithm, and reject an unusable listing or expired key when expiry is provided.
  4. Rebuild the exact base. Use received component order and raw signed parameters; verify the cryptographic signature. Verify content-digest when covered.
  5. Validate linked objects and payment. Check matching nonce / kid on consumer and payment objects, then independently verify the payment credential, merchant challenge and settlement.

Consumer recognition object

nonce

Links to the nonce in the HTTP message signature.

idToken

Visa-signed JWT / JWS, verified separately using Visa’s key.

contextualData

countryCode (ISO 3166-1 alpha-2), zip (up to 16 characters), ipAddress and deviceData.

kid

Same agent signing key identifier as the recognition header.

alg

Object-signature algorithm matching that key.

signature

Signature of all object fields in received order except signature itself, as described by the merchant spec.

Normalized JSON illustration — consumer recognition
{
  "agenticConsumer": {
    "nonce": "SAME_NONCE_AS_HTTP_SIGNATURE",
    "idToken": "SIGNED_VISA_ID_TOKEN_JWT",
    "contextualData": {
      "countryCode": "US",
      "zip": "94107",
      "ipAddress": "203.0.113.10",
      "deviceData": {}
    },
    "kid": "SAME_AGENT_KEY_ID",
    "alg": "ALGORITHM_FOR_THE_SAME_KEY",
    "signature": "BASE64_OBJECT_SIGNATURE"
  }
}

The ID token’s own JWT header uses alg, kid, typ=JWT+ext.id_token; unsigned alg=none is unsupported and the prose prefers PS256 over RS256. Validate trusted issuer, audience and time claims. Public claims include iss, sub, aud, exp, iat, optional jti / auth_time / amr. Consumer claims include obfuscated phone_number / email, verified flags and optional masked phone_number_mask / email_mask. Matching to existing customers requires the merchant’s own mapping; the token does not reveal clear identities.

Agentic payment container

Field / objectWhen present / purpose
nonce, kid, alg, signatureCore binding/signature fields. Same signing key and matching HTTP nonce when the message signature is present.
cardMetadataGuest-checkout metadata: lastFour, paymentAccountReference, shortDescription and card-data display information.
credentialHashGuest/key-entry payment credential hash. The specification names a 16-digit number, 2-digit month/year and 3-digit security code as inputs; its exact hash encoding/algorithm is not specified here.
payloadMerchant-public-key encrypted credential object for API/protocol checkout: token, expiry month/year, cardholderName, dynamicData, addresses and consumer contact/name fields.
browsingIOUSigned IOU after a 402: invoiceId, amount, cardAcceptorId, acquirerId, uri, sequenceCounter, paymentService, kid, alg, signature. Compare to the merchant’s challenge before granting access.

Missing core fields, a mismatched nonce or an invalid payment-container signature make the data unusable for payment processing. The merchant decrypts payload using its retained private encryption key and processes the credential through its payment integration.

Sources: TAP merchant specifications, HTTP Message Signatures — RFC 9421, Visa example agent verification for payments diagram, VDP encryption overview, VDP Message-Level Encryption.

Updated 10 Nov 2026