Better Payment 0.11.1 API
    Preparing search index...

    Interface HandlerIdempotencyOptions

    interface HandlerIdempotencyOptions {
        lockSeconds?: number;
        scope?: (
            ctx: HandlerContext,
        ) => string | Promise<string | undefined> | undefined;
        store?: IdempotencyStore;
        ttlSeconds?: number;
    }
    Index
    lockSeconds?: number

    How long an in-flight request holds its key if the process dies. Default: 60

    scope?: (
        ctx: HandlerContext,
    ) => string | Promise<string | undefined> | undefined

    Returns the caller an Idempotency-Key belongs to, such as the user or session id. Keys of different callers never share a stored response. Default: keys are shared by all callers

    Default: MemoryIdempotencyStore (per process)

    ttlSeconds?: number

    How long results are remembered. Default: 86400 (24 hours)