View as Markdown

SDK reference · Rails

dealTokenGetter

dealTokenGetter in @provenanceauth/rails/deals, Rails. Buyer side: a getToken for intentPaymentFetch that accepts the 402's offer through accept (usually ) and pays with the acceptance token.

Signature

dealTokenGetter(accept: (offer: string, challenge: X402IntentChallenge) => Promise<{ status: string; intent_token?: string } | null>): void

Parameters

accept(offer: string, challenge: X402IntentChallenge) => Promise<{ status: string; intent_token?: string } | null>Required

Returns

void

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.