View as Markdown

SDK reference · Rails

cartSummary

cartSummary in @provenanceauth/rails/checkout, Rails. The cart in one line, for an agent to show its person ("Harbor Bean Coffee: 2 items, USD 38.00").

Signature

cartSummary(binding: Pick<CheckoutOrder, "total" | "currency" | "items">, merchantName: string): string

Parameters

bindingPick<CheckoutOrder, "total" | "currency" | "items">Required
merchantNamestringRequired

Returns

string

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.