SDK reference · Rails
decodePaymentRequired
decodePaymentRequired in @provenanceauth/rails/x402, Rails. Decode + shape-check a PAYMENT-REQUIRED value.
Signature
decodePaymentRequired(headerValue: string | null | undefined): X402PaymentRequired | nullParameters
headerValuestring | null | undefinedRequired
Returns
X402PaymentRequired | null
HTTP operation
Runs locally, with no request to the API.