View as Markdown

SDK reference · Rails

withProvenanceIntent

withProvenanceIntent in @provenanceauth/rails/acp, Rails. Attach the extension field to a complete request (returns a new object).

Signature

withProvenanceIntent<T extends { payment_data: unknown }>(request: T, intentToken: string, opts: AcpExtensionOptions): T & { [ACP_EXTENSION_FIELD]: AcpProvenanceIntent }

Parameters

requestTRequired
intentTokenstringRequired
optsAcpExtensionOptionsRequired

Returns

T & { [ACP_EXTENSION_FIELD]: AcpProvenanceIntent }

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.