Skip to content

IPaymentChannel

IPaymentChannel object

IPaymentChannel is a type that represents an external payment channel with specific methods that allow to operate on it. Such object is usually retrieved through an API, for example the Basket Payments API.

type IPaymentChannel = {
    initialize(settings: unknown): void;
    isPaymentAvailable(): boolean;
    getPaymentButton(): HTMLTemplateResult | HTMLElement;
}