Paid
The evidence matches the raw transaction and a pinned receipt key, so the content is released and a signed settlement response goes back to the buyer.
Payment middleware
Price an endpoint, run a checkout, or let agents pay. Nothing is released until a signed receipt checks out.
x402, EVM chain ID 125
The exchange
The server answers with a price, the client pays and retries, and the server releases content only when the receipt checks out.
The buyer asks for an endpoint or file.
The seller answers with HTTP 402, "Payment Required", carrying an x402 version 2 offer: a price on EVM chain ID 125.
The buyer asks the SDK for a quote with a fee estimate and ceiling, signs the payment and retries the request.
The seller recomputes the transaction hash from the raw signed transaction and checks the node's signed receipt against a receipt key you pinned in advance.
Only matching evidence opens the gate. The seller returns the content and a signed settlement response.
Receipt gate
The seller never reports success on a guess. Each outcome has its own name and its own response.
Paid
Retry later
Unknown
Refused
The evidence matches the raw transaction and a pinned receipt key, so the content is released and a signed settlement response goes back to the buyer.
The receipt shows the payment only as submitted. The seller answers with a retry-later response and releases nothing until the evidence is final enough.
The node cannot be reached, so the seller cannot say either way. It reports unknown, never paid, and the buyer can check again.
The evidence does not match the transaction or the pinned key. The gate stays closed and the buyer is told the payment was refused.
Other voices
Five packages, four framework adapters, two mobile bindings and four reference applications share one rule: no success without evidence.

Reserve
Budget is set aside before the payment is signed.
Hold
If the owner must approve, the reservation waits.
Verify
The signed receipt is checked like any other payment.
Settle
Verified spend is committed. A refusal releases the reservation.
Price a cart from your catalog, up to 256 lines with exact integer amounts. An order moves from awaiting payment to paid and verified, or to refused. Signed webhooks are deduplicated.
Verified, approval hold, pending, unknown, refused and budget refused. A grant middleware also checks each draw against the grant's source, asset, recipient and executor.
Each fulfillment record ties the request digest and idempotency key to the resource and its evidence. A repeat returns the same result, and reusing a key with a different request is a conflict.
Express and Next.js in TypeScript, FastAPI in Python, Spring Boot in Java. Each mounts a payment gate and a verified webhook endpoint from declared configuration. Spring adds durable stores.
Swift and Java bindings use brokered, short-lived sessions to verify receipts and signed events with duplicate protection, and hold no server secrets. Each includes an embedded-secret detector and a sample app.
It runs buyer, seller, merchant and agent scenarios in process and against the running paid API, and fails the run on any unbacked success. Fixtures replay recorded node responses.

No receipt, no release.
Your move
Pick an adapter, pin your receipt keys and run the conformance suite before you ship.
Carries the same x402 offers and payments across the network boundary.
Interop gatewayThe ledger, grants and receipts these packages verify and draw against.
Native paymentsQuoting, signing and receipt verification the packages build on.
Client SDKsHosts the agent daemon and budget services the agent middleware calls.
Agents runtime