Sarraf API
    Preparing search index...

    Function kashier

    • Create the Kashier adapter: new Sarraf({ providers: { kashier: kashier({...}) } }).

      Parameters

      • options: {
            amountFormat?: "fixed" | "trimmed";
            apiKey: string;
            currencies?: string[];
            merchantId: string;
            mode?: "test" | "live";
            secretKey?: string;
            urls?: { api?: string; checkout?: string; fep?: string };
        }
        • OptionalamountFormat?: "fixed" | "trimmed"

          How the major-unit amount string is written in the hash and URL. Both always use the same string. "fixed" → "250.00", "trimmed" → "250" (Kashier's demo style).

        • apiKey: string

          Payment API key: signs the hosted-page hash and verifies redirect / webhook signatures.

        • Optionalcurrencies?: string[]
        • merchantId: string

          Merchant id, e.g. MID-123-456.

        • Optionalmode?: "test" | "live"
        • OptionalsecretKey?: string

          Secret key: server API calls (refunds, order lookup, sessions).

        • Optionalurls?: { api?: string; checkout?: string; fep?: string }

      Returns KashierProvider