Payment element

Field reference for the Payment canvas element: x402 or MPP paywall configuration for MCP and A2A surfaces.

The Payment element attaches a payment requirement to specific tools or methods on a surface. The gateway intercepts matching requests and demands a verifiable payment receipt before forwarding them upstream. On first failure it returns a 402 challenge. Once the caller settles, the receipt is verified and the request proceeds.

Available on MCP and A2A surfaces only. Drop it on the Managed Agent request edge. Dropping the element enables payment for the surface.

Panel

The sidebar panel shows the payment protocol selector, plus a summary and configuration button for whichever protocol is selected.

FieldTypeRequiredDefaultDescription
Payment ProtocolselectYesx402The payment protocol for this Payment element. Options: x402 (HTTP 402 paywall) and MPP (Machine Payments Protocol). Both options are always available, including on a newly added Payment element, and switching between them preserves each protocol’s own configuration.

x402 panel

The summary displays the current Verification mode, Settlement mode, Networks count, and Requirements count. These values are read-only in the panel. Use the Configure x402 Paywall… button to open the fullscreen editor and change them.

MPP panel

FieldTypeRequiredDefaultDescription
RealmstringNoProtection space sent on the 402 challenge.
HMAC Secret Keyselect (Secrets store)NoBase64-encoded HMAC-SHA256 key used for stateless challenge binding. Selected from the Secrets store; the gateway resolves it server-side and never stores the raw value in the surface config.
Challenge TTL (seconds)integerNo300How long an issued 402 challenge remains valid.
Payment Methodsread-only listThe currently configured payment methods. Read-only here; configure them in the Configure MPP… fullscreen editor.

The panel’s Summary also shows the current Crypto Verification Mode and whether a Stripe secret key is set. Use the Configure MPP… button to open the fullscreen editor and change any of these values.

Configure x402 paywall

Click Configure x402 Paywall… in the panel to open the fullscreen editor. The editor is divided into four areas.

Verification and settlement

FieldTypeDefaultDescription
Verification ModeselectmockHow the gateway checks payment receipts. Options: Mock (Accept All - Testing), Local (On-Chain Verification), Use external facilitator, Use connected gateway facilitator, Verify cryptographic signature.
Settlement ModeselectnoneHow settled funds are processed. Options: None, Deferred (Batch Processing), Immediate (Not Recommended), External Facilitator, Fabric Gateway. Disabled and fixed to None when Verification Mode is Mock.
Minimum Confirmationsinteger (0–100)0Number of block confirmations required before accepting a payment. 0 accepts mempool transactions. Shown only when Verification Mode is Local.
Accept Mempool TransactionscheckboxOnWhen on, accepts unconfirmed transactions. Disabled automatically when Minimum Confirmations is above 0. Shown only when Verification Mode is Local.
Facilitator URLstring (URL)https://www.x402.org/facilitatorURL of the external facilitator service. Shown when Verification Mode or Settlement Mode is Use external facilitator.
Facilitator GatewayselectConnected gateway to use for verification and settlement via DIDComm. Shown when Verification Mode or Settlement Mode is Use connected gateway facilitator.

Crypto network payment options

Add one or more blockchain networks to accept payments on. Select a network from the Mainnets or Testnets list to add it. For each added network, click a token badge to create a payment requirement for that token.

Payment requirements

Each payment requirement defines one acceptable payment option. Callers choose one option from the list you define.

FieldTypeDescription
AmountstringPayment amount expressed in the network’s smallest denomination unit (for example, USDC uses 6 decimal places, so 1000000 equals 1.00 USDC).
RecipientselectDestination wallet address from your configured recipient addresses.
SchemeselectHow the amount is interpreted. Exact requires the caller to pay the specified amount exactly. Up To accepts any amount up to the specified value.
Transaction TimeoutselectHow long the gateway waits for the transaction to appear on-chain. Options: 30 seconds, 1 minute, 2 minutes, 5 minutes, 10 minutes.

Payment triggers

Payment triggers define which operations require payment. The trigger editor shown depends on the surface protocol. See the relevant sub-section below.

MCP surfaces

The editor defaults to Charge tools matching regex with no patterns. You must either add at least one pattern or switch to Charge all tools before the surface can be saved.

FieldTypeDescription
MCP Payment Trigger ModeselectScope of tools/call requests that require payment. Options: Charge all tools: every tools/call requires payment. Charge tools matching regex: only calls where the tool name matches one of the patterns below. Charge all EXCEPT regex matches: all calls except those whose tool name matches a pattern. Free methods such as tools/list and initialize are never charged.
Patternsstring (regex)One or more regex patterns used with Charge tools matching regex or Charge all EXCEPT regex matches modes. At least one non-empty pattern is required when either of those modes is selected.

A2A surfaces

The A2A triggers editor is split into two groups.

Command Messages: configure payment for message/send and message/stream operations. For each, add optional regex patterns to match against message content. If no patterns are specified, all requests for that method require payment.

Control Messages: select individual control operations (for example tasks/get, tasks/cancel) that require payment. Control methods do not have message content to match against.

Configure MPP paywall

Click Configure MPP… in the panel to open the fullscreen editor.

Payment methods

Each payment method defines one way this surface can accept payment, added as a card in the editor. A collapsible View as JSON preview is also available once at least one method is configured.

FieldTypeDescription
Method TypeselectCrypto methods (tempo, crypto, evm) are verified according to the Crypto Verification Mode below. Card methods (stripe, and legacy card) require the Stripe Secret Key below.
IntentstringFree-text intent label, for example charge.
CurrencystringCurrency code, for example USDC for a crypto method or usd for a card method.
AmountstringFor a crypto method, an integer amount in the currency’s base units, for example wei for ETH or 6-decimal units for a token like USDC; a decimal amount is rejected. For a card method, a decimal major-unit amount, for example 0.01 for one cent.
RecipientstringDestination address for a crypto method, or a connected Stripe account ID for a card method.
Network (CAIP-2)selectShown for crypto methods only. Choose a mainnet or testnet preset, or enter a custom CAIP-2 network ID.

Card and on-chain verification

FieldTypeDefaultDescription
Stripe Secret Keyselect (Secrets store)Required when a card or stripe payment method is configured. Selected from the Secrets store; resolved server-side and never stored in the surface config.
Crypto Verification ModeselectpassthroughHow the gateway verifies crypto payment methods. Options: Passthrough (no verification, development only), On-chain (verify the receipt over RPC), Signature (offline EIP-3009 / Permit2), Full (signature and on-chain). Card and Stripe methods are unaffected by this setting. A mainnet crypto payment method cannot be saved while this is set to Passthrough.
Verification Timeout (ms)integer10000How long the gateway waits for on-chain verification before failing.
Minimum Confirmationsinteger0Shown only when Crypto Verification Mode is On-chain or Full. A mainnet crypto method requires at least 1 confirmation.
RPC Endpoints (JSON)JSON objectShown only when Crypto Verification Mode is On-chain or Full. Maps a CAIP-2 network ID to an RPC URL, used to fetch and verify the transaction receipt.

Payment triggers (MPP)

Payment triggers define which operations require payment. Leaving this section empty means no requests require payment. The trigger editor shown depends on the surface protocol.

MCP surfaces (MPP)

Only tools/call requests can be charged.

FieldTypeDescription
MCP Payment Trigger ModeselectOptions: Charge all tools, Charge tools matching regex, Charge all EXCEPT regex matches.
Patternsstring (regex)One or more regex patterns, used with the matching or exclude modes.

A2A surfaces (MPP)

Select individual A2A methods that require payment, with optional regex patterns to filter by message content. Leave this empty to charge nothing over A2A.