@paydock/client-sdk
Version:
Paydock client sdk
18 lines • 792 B
TypeScript
import { ICheckout } from '../../external-checkout';
import { Env } from '../../configs/env';
export type AdditionalParams = Record<string, string | number | boolean>;
export type Constructable<T = BaseRunner> = new (...args: any[]) => T;
export interface IRunner {
next(checkoutData: ICheckout, params?: AdditionalParams): void;
error(error: string, code: string, cb: (close: boolean) => void): void;
getSuccessRedirectUri(): string;
getErrorRedirectUri(): string;
setEnv(env: string, alias?: string): void;
}
export declare abstract class BaseRunner implements Partial<IRunner> {
widgetEnv: Env;
constructor();
error(error: string, code: string, callback: any): void;
setEnv(env: string, alias?: string): void;
}
//# sourceMappingURL=base.runner.d.ts.map