You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the paid retry fails (for example `verify_payment` rejects the header or the facilitator reports an error), the paywall server immediately returns another `402` or error payload and the agent decides whether to run `x402_paywalled_request` again with corrected parameters. A successful verification moves straight into settlement and target agent execution, so there is no additional retry cycle once the `X-PAYMENT` header is accepted.
15235
+
If the paid retry fails (for example `verify_payment` rejects the header or the facilitator reports an error), the paywall server immediately returns another `402` or error payload and the agent decides whether to run `x402_paywalled_request` again with corrected parameters. A successful verification moves straight into settlement and target agent execution, so there is no additional retry cycle once the payment header is accepted (`PAYMENT-SIGNATURE` in v2, `X-PAYMENT` in legacy v1).
15236
15236
15237
15237
## Operational checklist
15238
15238
@@ -15731,10 +15731,10 @@ What happens:
15731
15731
15732
15732
1. The script prints signer details and the target resource (`https://www.x402.org/protected` by default).
15733
15733
2. A `SpoonReactAI` instance performs a ReAct loop:
15734
-
- Calls `http_probe` (no payment) to capture the 402 challenge.
15734
+
- Calls `web_scraper` (no payment) to capture the 402 challenge.
15735
15735
- Calls `x402_paywalled_request` to sign and submit a 0.01 USDC payment.
15736
15736
- Retrieves the protected payload (a SoundCloud embed) after settlement.
15737
-
3. The console logs tool traces, the signed `X-PAYMENT` header, and the decoded settlement receipt (transaction hash, payer, network).
15737
+
3. The console logs tool traces, the signed `PAYMENT-SIGNATURE` (x402 v2) header, and the decoded settlement receipt from `PAYMENT-RESPONSE` (transaction hash, payer, network).
Follow [Example: x402 ReAct agent](../examples/x402-react-agent.md) to run the ReAct demo (`uv run python examples/x402_agent_demo.py`). It walks through:
20926
20926
20927
20927
- Preparing `.env` and funding the signer.
20928
-
- Observing the agent call `http_probe`, then `x402_paywalled_request`, retrieve the protected page, and print the signed `X-PAYMENT` + settlement receipt.
20928
+
- Observing the agent call `web_scraper`, then `x402_paywalled_request`, retrieve the protected page, and print the signed `PAYMENT-SIGNATURE` + settlement receipt.
20929
20929
- Troubleshooting common facilitator or configuration errors.
20930
20930
20931
+
> Note: x402 v2 uses `PAYMENT-REQUIRED` / `PAYMENT-SIGNATURE` / `PAYMENT-RESPONSE` headers. SpoonOS tools still support the legacy `X-PAYMENT` / `X-PAYMENT-RESPONSE` headers for older v1 paywalls.
20932
+
20931
20933
## Quick checklist
20932
20934
20933
20935
- Fund the signer via [Circle faucet](https://faucet.circle.com/).
0 commit comments