Better Payment 0.11.1 API
    Preparing search index...

    Type Alias HandlerSource

    HandlerSource:
        | BetterPaymentHandler
        | { handler: BetterPaymentHandler }
        | (() => BetterPaymentHandler | { handler: BetterPaymentHandler })

    Where an adapter gets the handler from: a handler, a BetterPayment instance (its handler is used), or a function returning either. A function is called on every request, so the instance can be created lazily (for example to keep Next.js builds working without environment variables).