Interface CreateIntentParams

interface CreateIntentParams {
    itemSnapshot: ItemSnapshot[];
    totalAmount: number;
    currency?: string;
    metadata?: Record<string, unknown>;
}

Properties

itemSnapshot: ItemSnapshot[]

One or more line items included in this checkout.

totalAmount: number

Total amount to collect, in the smallest currency unit (halalas for SAR — e.g. 15000 = 150.00 SAR). Must equal the sum of itemSnapshot[].price.

currency?: string

ISO 4217 currency code. Defaults to "SAR".

metadata?: Record<string, unknown>

Arbitrary key-value data returned on webhook events.