SDK reference · Rails
x402OfferRequired
x402OfferRequired in @provenanceauth/rails/deals, Rails. Seller side: the 402 for a resource sold under a signed offer.
Signature
x402OfferRequired(opts: { resource: X402ResourceInfo | string; accepts: X402PaymentRequirements[]; offer: string; error?: string }): voidParameters
opts{ resource: X402ResourceInfo | string; accepts: X402PaymentRequirements[]; offer: string; error?: string }Required
Returns
void
HTTP operation
Runs locally, with no request to the API.