402 Payment Required handshake, then a facilitator verifies and settles it.
Demo
These examples target Base Sepolia (eip155:84532) and the public test facilitator. Confirm the facilitator’s supported network, asset, and settlement contracts before a live test.
1
Return Payment Requirements
The unpaid request receives a 402 response with the scheme, network, token, price, and recipient.
2
Sign and Retry
The buyer applies its spend policy, signs the advertised payment, and retries with
PAYMENT-SIGNATURE.3
Verify Before Work
Seller middleware verifies the payload before your protected handler runs.
4
Settle
The facilitator submits the payment and returns settlement details with the response.
Price a Fixed Route
An unpaid request receives 402; a valid paid retry reaches the handler and returns the resource once.
See Also
Settle Usage-Based Payments
Set the final charge after successful work.
Call a Paid Service
Add network, asset, and spend policy on the buyer.