Behavior
- 200: returned directly
- 402: automatically signs and retries; final response is returned
- Other errors: original response is passed through
Return
- Same as native
fetch, returns aResponseobject
Retry flow
- First request → if 402 (with
accepts) - Choose
PaymentRequirementsby selector/default strategy - Create and sign
PaymentPayload(matchingrequirements) - Attach
X-Paymentheader and retry automatically - Return the final response (200/402/other)