Sarraf API
    Preparing search index...

    Interface CreateCheckoutInput<Id>

    interface CreateCheckoutInput<Id extends ProviderId = ProviderId> {
        amount: Money;
        customer: Customer;
        expiresInSeconds?: number;
        idempotencyKey?: string;
        items?: LineItem[];
        locale?: "en" | "ar";
        metadata?: Record<string, string>;
        methods?: PaymentMethod[];
        provider: Id;
        providerOptions?: Id extends never
            ? ProviderOptionsRegistry[Id]
            : Record<string, unknown>;
        reference: string;
        returnUrl?: string;
        webhookUrl?: string;
    }

    Type Parameters

    Index
    amount: Money
    customer: Customer
    expiresInSeconds?: number
    idempotencyKey?: string
    items?: LineItem[]
    locale?: "en" | "ar"
    metadata?: Record<string, string>
    methods?: PaymentMethod[]
    provider: Id
    providerOptions?: Id extends never
        ? ProviderOptionsRegistry[Id]
        : Record<string, unknown>
    reference: string

    Merchant order id. Some providers require it to be unique per attempt.

    returnUrl?: string
    webhookUrl?: string