# decodePaymentPayload

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

## Signature

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

## Parameters

- `headerValue` (string | null | undefined)

## Returns

`X402PaymentPayload | null`

Runs locally, with no request to the API.
