Better Payment 0.11.1 API
    Preparing search index...

    Interface PaymentEndpoint

    An HTTP route served by the handler, at basePath + path. The handler returns what it gets as JSON (200), or a response built with ctx.json(body, status).

    interface PaymentEndpoint {
        handler: (ctx: EndpointContext) => unknown;
        method: "GET" | "POST";
        path: string;
        privileged?: boolean;
    }
    Index
    handler: (ctx: EndpointContext) => unknown
    method: "GET" | "POST"
    path: string

    Path relative to the handler's basePath, e.g. /router/quote

    privileged?: boolean

    Privileged endpoints can only be served together with an authorize hook, like refunds. The hook runs for every endpoint that has one.