Skip to main content

should_suggest_tempo_fund

Function should_suggest_tempo_fund 

Source
fn should_suggest_tempo_fund(status: StatusCode, body: &[u8]) -> bool
Expand description

Returns true iff a 402 response carries a structured insufficient-balance problem (RFC 9457 PaymentErrorDetails).

We deliberately do not match on free-text body content or on generic verification-failed problem types, as those have many non-funding causes (bad signature, replay, expired challenge, clock skew, key provisioning, malformed auth, …).