Interface CheckoutIntent

interface CheckoutIntent {
    id: string;
    merchantId: string;
    apiKeyId?: null | string;
    apiKeyLabel?: null | string;
    itemSnapshot: ItemSnapshot[];
    totalAmount: number;
    currency: string;
    metadata: Record<string, unknown>;
    status: CheckoutIntentStatus;
    expiresAt: string;
    createdAt: string;
    merchant?: {
        id: string;
        name: string;
        nameAr?: string;
        logoUrl?: null | string;
    };
}

Properties

id: string
merchantId: string
apiKeyId?: null | string
apiKeyLabel?: null | string
itemSnapshot: ItemSnapshot[]
totalAmount: number
currency: string
metadata: Record<string, unknown>
expiresAt: string
createdAt: string
merchant?: {
    id: string;
    name: string;
    nameAr?: string;
    logoUrl?: null | string;
}

Only present when fetching via GET /intents/:id