UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

53 lines 1.78 kB
/// <reference types="applepayjs" /> import { Container } from '../../components/container'; import { EventEmitter } from '../../helper/event-emitter'; import { ApiInternal } from "../../api/api-internal"; import { IFrame } from "../../components/iframe"; import { IFrameEvent } from "../../components/iframe-event"; declare global { interface Window { ApplePaySession: ApplePaySession; } } export declare const PAYMENTS_METHODS: { APPLE_PAY: string; GOOGLE_PAY: string; }; export declare class PaymentMethods { protected methods: string[]; protected styles: { button_color?: string; border_color?: string; background_color?: string; font_family?: string; font_size?: string; text_color?: string; }; protected chosen: (type: string) => void; protected window: Window; protected eventEmitter: EventEmitter; protected container: Container; protected env: string; protected alias?: string; protected api: ApiInternal; protected iFrame: IFrame; protected event: IFrameEvent; protected disablePaymentMethodOptions: boolean; constructor(selector: string, methods: string[], styles: { button_color?: string; border_color?: string; background_color?: string; font_family?: string; font_size?: string; text_color?: string; }, chosen: (type: string) => void, instruction_token: string, skip?: boolean); private init; private setListenerButtons; setEnv(instruction_token: any): string; private setStyles; private isApplePaySupported; private setStylesToStandaloneWidget; private setPaymentMethodsOrder; disablePaymentMethod(): void; } //# sourceMappingURL=payment-methods.d.ts.map