Better Payment 0.11.1 API
    Preparing search index...

    Interface BeforeHook

    interface BeforeHook {
        handler: (ctx: OperationContext) => Awaitable<void | BeforeHookResult>;
        matcher?: (ctx: OperationContext) => boolean;
    }
    Index
    handler: (ctx: OperationContext) => Awaitable<void | BeforeHookResult>
    matcher?: (ctx: OperationContext) => boolean

    Which operations the hook runs for. Default: all.