abowire
Version:
This is the official **Abowire Javascript SDK**, which makes it easy to connect to the Abowire **GraphQL API** and includes all the required dependencies you need.
32 lines (31 loc) • 1.34 kB
TypeScript
import { ModuleConfiguration } from '../../helpers/configuration/configuration';
import { CheckoutConfig } from './checkout.schema';
export declare const checkoutSelector = "abowire-checkout";
export declare class Checkout {
protected config: ModuleConfiguration<CheckoutConfig>;
protected isShown: boolean;
constructor(config?: Partial<CheckoutConfig>);
createCheckoutContainer: (props: {
product?: string | undefined;
currency?: import("@abowire/platform-schema").Currency | undefined;
isModal?: boolean | undefined;
clientId?: string | undefined;
accountId?: string | undefined;
redirectUrl?: string | undefined;
steps?: string[] | undefined;
locale?: string | undefined;
session?: string | undefined;
country?: string | undefined;
onSuccess?: ((data: any) => void) | undefined;
onClose?: (() => void) | undefined;
}) => Promise<any>;
get configure(): {
(key: keyof CheckoutConfig, value: string | boolean | string[] | ((data: any) => void) | (() => void) | undefined): CheckoutConfig;
(config?: Partial<CheckoutConfig> | undefined): CheckoutConfig;
};
get getConfig(): () => CheckoutConfig;
onLoad(): void;
render(): Promise<void>;
show(): Promise<void>;
hide(): Promise<void>;
}