UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

31 lines 1.25 kB
import { IClickToPayMeta } from './interfaces'; import { SRC } from './secure-remote-commerce'; /** * Class ClickToPay include methods for interacting with the ClickToPay checkout and Manual Card option * * @extends SRC * * @constructor * * @param {string} iframe_selector - Selector of html element. Container for Click To Pay checkout iFrame. * @param {string} service_id - Card Scheme Service ID * @param {string} public_key_or_access_token - Paydock public key or Access Token * @param {IClickToPayMeta} meta - Data that configures the Click To Pay checkout * @example * var mastercardSRC = new ClickToPay('#checkoutIframe', 'service_id', 'public_key', {}); * */ declare class ClickToPay extends SRC { protected iframe_selector: string; protected service_id: string; protected public_key_or_access_token: string; protected meta: IClickToPayMeta; /** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta); /** * The final method after configuring the SRC to start the load process of Click To Pay checkout * */ load(): void; } export { ClickToPay }; //# sourceMappingURL=click-to-pay-secure-remote-commerce.d.ts.map