# verifyX402Payment

verifyX402Payment in @provenanceauth/rails/x402, Rails. Merchant side: verify the intent token in a `PAYMENT-SIGNATURE` header before you settle.

## Signature

```ts
verifyX402Payment(paymentSignature: string | null | undefined, opts: X402VerifyOptions): Promise<X402VerifyResult>
```

## Parameters

- `paymentSignature` (string | null | undefined)
- `opts` (X402VerifyOptions)

## Returns

`Promise<X402VerifyResult>`

Runs locally, with no request to the API.
