# verifyX402DealPayment

verifyX402DealPayment in @provenanceauth/rails/deals, Rails. Seller side: verify the acceptance token in a `PAYMENT-SIGNATURE` header against your offer (see ).

## Signature

```ts
verifyX402DealPayment(paymentSignature: string | null | undefined, offer: string | OfferPayload, opts: { jwks: Jwks; seller?: string; revocations?: DealRevocations }): Promise<AcceptanceResult & { detail?: string }>
```

## Parameters

- `paymentSignature` (string | null | undefined)
- `offer` (string | OfferPayload)
- `opts` ({ jwks: Jwks; seller?: string; revocations?: DealRevocations })

## Returns

`Promise<AcceptanceResult & { detail?: string }>`

Runs locally, with no request to the API.
