---
title: "Merchant verification"
description: "Interactions, required fields, the signature base, verification order, consumer recognition and the payment container."
url: https://app.visacli.sh/docs/reference/merchant-verification
updated: 2026-11-10
---

# Merchant verification

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

Canonical: https://app.visacli.sh/docs/reference/merchant-verification. Updated: 2026-11-10. Full index: /llms.txt.

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.

| Interaction | Signature tag | Data carried |
| --- | --- | --- |
| Browsing / product detail | `agent-browser-auth` | HTTP message signature; consumer-recognition object may accompany it. |
| Purchase / payment | `agent-payer-auth` | HTTP message signature plus payment container; consumer-recognition data may also be present. |
| Pay for access | Merchant’s 402 response and paid retry | The container may carry a signed browsing IOU. Match the merchant’s invoice, amount, recipient and resource. |

### Required recognition fields

| Field | Requirement |
| --- | --- |
| `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. |

```http title="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:

```text title="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.
1. **Check time and replay.** Validate the current interval and profile duration; reserve the key/nonce pair after the signature verifies.
1. **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.
1. **Rebuild the exact base.** Use received component order and raw signed parameters; verify the cryptographic signature. Verify content-digest when covered.
1. **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

| Field | Meaning |
| --- | --- |
| `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. |

```json title="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 / object | When present / purpose |
| --- | --- |
| `nonce`, `kid`, `alg`, `signature` | Core binding/signature fields. Same signing key and matching HTTP nonce when the message signature is present. |
| `cardMetadata` | Guest-checkout metadata: lastFour, paymentAccountReference, shortDescription and card-data display information. |
| `credentialHash` | Guest/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. |
| `payload` | Merchant-public-key encrypted credential object for API/protocol checkout: token, expiry month/year, cardholderName, dynamicData, addresses and consumer contact/name fields. |
| `browsingIOU` | Signed 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.

> [!WARNING] Specification inconsistencies preserved
> The prose uses `idToken` while a JSON example spells `IdToken`. The prose names `credentialHash` while an example uses `paymentCredentialsHash`. Visa's examples also omit JSON punctuation. The illustrations here use valid JSON and the prose names; an agreed implementation schema must settle those wire spellings.

Sources: [TAP merchant specifications](https://developer.visa.com/docs/trusted-agent-protocol/trusted-agent-protocol-specifications), [HTTP Message Signatures — RFC 9421](https://datatracker.ietf.org/doc/html/rfc9421#section-2.3), [Visa example agent verification for payments diagram](https://developer.visa.com/images2/products/trusted-agent-protocol/example_agent_verification_payments.png), [VDP encryption overview](https://developer.visa.com/docs/encryption-methods), [VDP Message-Level Encryption](https://developer.visa.com/docs/message-level-encryption).
