@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Interface PaymentMethod

    interface PaymentMethod {
        checkoutType: "psp" | "direct";
        completion?: "direct" | "authorize" | "redirect-or-webhook";
        id: string;
        name: string;
        provider: string;
        requiresAuth: boolean;
        requiresCompany: boolean;
    }
    Index
    checkoutType: "psp" | "direct"

    "psp" = external redirect/embed; "direct" = order created immediately (e.g. invoice)

    completion?: "direct" | "authorize" | "redirect-or-webhook"

    How the purchase completes:

    • "direct": checkout.init creates the order (invoice, cash).
    • "authorize": the shopper authorizes in the provider's widget (Klarna Payments) and the storefront calls checkout.authorize, which creates the order in the same request.
    • "redirect-or-webhook": the provider confirms to Avvyr (Kustom, Stripe, Nexi); show the confirmation page when the provider sends the shopper back. Only methods that can actually be completed are listed.
    id: string
    name: string
    provider: string
    requiresAuth: boolean

    Method requires an authenticated customer

    requiresCompany: boolean

    Method requires the customer to belong to a company