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