View as Markdown

SDK reference · Rails

acpAllowanceToProvenance

acpAllowanceToProvenance in @provenanceauth/rails/acp, Rails. The inverse mapping: an ACP allowance → mandate-shaped constraints plus its session facts.

Signature

acpAllowanceToProvenance(allowance: AcpAllowance): { constraints: { max_amount: number; allowed_counterparties: string[]; expires_at: string }; checkout_session_id: string; currency: string; }

Parameters

allowanceAcpAllowanceRequired

Returns

{ constraints: { max_amount: number; allowed_counterparties: string[]; expires_at: string }; checkout_session_id: string; currency: string; }

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.