View as Markdown

SDK reference · Rails

decodePaymentRequired

decodePaymentRequired in @provenanceauth/rails/x402, Rails. Decode + shape-check a PAYMENT-REQUIRED value.

Signature

decodePaymentRequired(headerValue: string | null | undefined): X402PaymentRequired | null

Parameters

headerValuestring | null | undefinedRequired

Returns

X402PaymentRequired | null

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.