SDK reference · Rails
verifyX402DealPayment
verifyX402DealPayment in @provenanceauth/rails/deals, Rails. Seller side: verify the acceptance token in a PAYMENT-SIGNATURE header against your offer (see ).
Signature
verifyX402DealPayment(paymentSignature: string | null | undefined, offer: string | OfferPayload, opts: { jwks: Jwks; seller?: string; revocations?: DealRevocations }): Promise<AcceptanceResult & { detail?: string }>Parameters
paymentSignaturestring | null | undefinedRequiredofferstring | OfferPayloadRequiredopts{ jwks: Jwks; seller?: string; revocations?: DealRevocations }Required
Returns
Promise<AcceptanceResult & { detail?: string }>
HTTP operation
Runs locally, with no request to the API.