Skip to content
Paxeer X

Payment middleware

Charge per request.Release only on proof.

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

Offer, pay, verify, release

The server answers with a price, the client pays and retries, and the server releases content only when the receipt checks out.

  1. 01 · buyer

    Request

    The buyer asks for an endpoint or file.

  2. Offer

    02 · seller

    Offer

    The seller answers with HTTP 402, "Payment Required", carrying an x402 version 2 offer: a price on EVM chain ID 125.

  3. Signed payment

    03 · buyer

    Payment

    The buyer asks the SDK for a quote with a fee estimate and ceiling, signs the payment and retries the request.

  4. Signed receipt

    04 · seller

    Check

    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.

  5. Release

    05 · seller

    Response

    Only matching evidence opens the gate. The seller returns the content and a signed settlement response.

A payment claim is never taken on trust.
  • 125EVM chain ID, eip155 format

Receipt gate

Paid, retry later, unknown or refused

The seller never reports success on a guess. Each outcome has its own name and its own response.

  • Paid

  • Retry later

  • Unknown

  • Refused

Four gates, only the paid gate is open.

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.

Retry later

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.

Unknown

The node cannot be reached, so the seller cannot say either way. It reports unknown, never paid, and the buyer can check again.

Refused

The evidence does not match the transaction or the pinned key. The gate stays closed and the buyer is told the payment was refused.

Receipted
The kernel has executed the payment and signed a receipt.
Committed
The block has been committed, which is finality, checked with block header, commit signatures and validator-set evidence.

Other voices

Merchants, agents and apps pay the same way

Five packages, four framework adapters, two mobile bindings and four reference applications share one rule: no success without evidence.

Linework of interlocking integration modules with one blue module.
  1. Reserve
  2. Hold
  3. Verify
  4. Settle

Reserved budget

Sample. A refusal releases the reservation.
  1. 01

    Reserve

    Budget is set aside before the payment is signed.

  2. 02

    Hold

    If the owner must approve, the reservation waits.

  3. 03

    Verify

    The signed receipt is checked like any other payment.

  4. 04

    Settle

    Verified spend is committed. A refusal releases the reservation.

Merchant checkout

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.

Agent spending

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.

Replay protection

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.

Framework drop-ins

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.

Mobile bindings

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.

Conformance suite

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.

Meet agents runtime
A man works on a laptop at a cafe table by the window.

No receipt, no release.

Your move

Put a price on your first route

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 gateway
  • The ledger, grants and receipts these packages verify and draw against.

    Native payments
  • Quoting, signing and receipt verification the packages build on.

    Client SDKs
  • Hosts the agent daemon and budget services the agent middleware calls.

    Agents runtime