interface CartContents

The detailed contents of a cart, signed by the merchant to create a CartMandate.

CartContents represents the specific items, prices, and terms that a merchant is offering. When signed by the merchant, it becomes a CartMandate.

Properties

readonly
id: string

A unique identifier for this cart.

This should be a unique string that identifies this specific cart and its contents.

If true, the merchant requires user confirmation before purchase.

When true, even if the user has given broad purchasing permissions to their agent, this specific cart requires explicit user approval.

W3C PaymentRequest object with purchase details.

Contains all the payment details including items, totals, shipping options, and payment methods accepted by the merchant.

readonly
cart_expiry: string

When this cart expires, in ISO 8601 format.

After this time, the cart contents are no longer valid and should not be used for purchases. Prices and availability may have changed.

readonly
merchant_name: string

The name of the merchant.

Human-readable name of the merchant providing this cart.

Usage

import { type CartContents } from ".";