View as Markdown

SDK reference · Rails

decodePaymentPayload

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

Signature

decodePaymentPayload(headerValue: string | null | undefined): X402PaymentPayload | null

Parameters

headerValuestring | null | undefinedRequired

Returns

X402PaymentPayload | null

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.