UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

27 lines 1.14 kB
import { IDetails } from '../external-checkout/index'; import { Background } from '../components/background'; import { IContextualRunner } from './runner'; import { EventEmitter } from '../helper/event-emitter'; import { IDispatcherData } from '../components/dispatcher'; interface CheckoutContextualHandlerParams { accessToken: string; gatewayId: string; } export interface CheckoutContextualHandlerData extends IDispatcherData { isCloseEvent?: boolean; } export declare class CheckoutContextualHandler { protected background: Background; protected runner: IContextualRunner; protected eventEmitter: EventEmitter; protected params: CheckoutContextualHandlerParams; protected env: string; protected details: IDetails; constructor(background: Background, runner: IContextualRunner, eventEmitter: EventEmitter, params: CheckoutContextualHandlerParams); init(env: string): void; setEnv(env: string): void; protected checkToken(token: string, cb: () => void): void; protected createOneTimeToken(token: string): void; } export {}; //# sourceMappingURL=checkout-contextual-handler.d.ts.map