Back to blog home

Verifying a Seller Before an Agent Pays

When an agent gets a 402, the response tells it who to pay. It doesn't say whether that party is who it claims to be. A malicious endpoint can name any price and any address, and a correctly signed payment to the wrong address is still gone.

None of the checks below proves a seller is honest. Each one lowers a specific risk, and together they give an agent something better than trusting the first response it sees. Treat this as an engineering guide. It is not legal advice.

1. Confirm the domain and its age

Registration data is public through RDAP, which returns JSON. RFC 9224 defines how to find the right server, and IANA publishes the bootstrap file. For a .com name:

curl -s https://rdap.verisign.com/com/v1/domain/pageverified.com

RFC 9083 defines the response. Look at the events array for the registration date. Registrant details are often redacted, so don't count on getting a name.

Run that on us and you'll see pageverified.com was registered in November 2026, days before this was written. A new domain isn't proof of anything bad. It does mean an agent should cap the first payment low, and it means the seller has no history for you to lean on. An agent should treat a young domain as a reason to look harder.

2. Check the certificate history

Certificate Transparency logs are public, append-only ledgers of certificates. You can use them to see when a domain began getting certificates. Unexpected recent issuance on an old domain can be a sign of trouble. Valid TLS on its own proves only that someone controls the domain now. Anyone can get a certificate for a domain they just registered.

3. Tie the payment address to the domain

This is the check most builders skip, and the one that matches the actual attack. Compare what the 402 told you with what the seller publishes on its own domain.

For x402, compare the payTo address and asset in the PAYMENT-REQUIRED header with the seller's documentation, fetched separately over HTTPS. For Stripe's protocol, the networkId is the seller's Stripe profile, and an SPT is issued to that one profile. If a token goes to the wrong profile, the scoping won't save you, because the token will be working as designed.

Also check that the 402 came from the host you meant to call, and that redirects didn't move you. Keep an allowlist for repeat sellers and alert on any change of payTo.

4. Check the publisher's namespace

If you found the service through the MCP Registry, the server name is meaningful. A name such as com.example/tool required the publisher to prove control of that domain. Compare that namespace with the domain you are about to pay. A mismatch is a reason to stop. The registry leaves security scanning to others, so a verified namespace isn't a safety rating.

5. Look for a legal entity, if the amount justifies it

For larger or recurring payments, it's reasonable to want a company behind the domain. The GLEIF API searches the Legal Entity Identifier data by name:

curl -s "https://api.gleif.org/api/v1/lei-records?filter%5Bentity.legalName%5D=Stripe&page%5Bsize%5D=5"

Plenty of legitimate small sellers have no LEI, so a missing record means little. A record that exists but doesn't match the seller's claims means a lot more.

6. Screen against sanctions lists where that applies

If your organisation is subject to sanctions rules, payment addresses are in scope. OFAC's virtual currency FAQs say it may list digital currency addresses on the SDN List, and that those listings are not likely to be exhaustive. The Sanctions List Search has a field for digital currency addresses and states that using it "is not a substitute for undertaking appropriate due diligence". What you must do depends on your jurisdiction, so ask counsel. Don't work it out from a blog post.

7. Limit what a wrong decision can cost

Assume a check will eventually fail to catch something.

8. Keep a record of what you saw

If something goes wrong later, the question will be what the seller's page said at the moment your agent decided to pay. Prices, terms and refund policies can change after the fact.

Capture the seller's pricing or terms page before paying. With a PageVerified key, this produces a PDF and a signed record. It costs the PDF capture price of 2 credits plus 4 credits for the record.

curl -s -X POST https://pageverified.com/api/v1/capture/record \
  -H "Authorization: Bearer $PAGEVERIFIED_API_KEY" \
  -H "content-type: application/json" \
  -d '{"url":"https://seller.example/terms","format":"pdf","full_page":true}'

The response includes sha256, captured_at, record and signature. Store the record and signature together. Anyone can later send both to POST /api/v1/capture/record/verify.

Be precise about what this shows. It records what our renderer saw at the recorded time, on our own server clock. It isn't a forensic chain of custody, it doesn't prove who wrote the page, and it isn't legal certification. It does stop anyone, including you, from quietly changing the story about what the page displayed.

A short version for your agent

Before paying a new seller, the agent should do the following in order. Confirm the domain, compare the payment address to the seller's own published value, check the publisher namespace if there is one, check the amount against the budget, capture the terms, and only then sign. If any comparison fails, stop and ask a person.

Sources