UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

36 lines (35 loc) 1.52 kB
import { CheckoutButton } from '../checkout-button'; import { AdditionalParams } from '../runner'; /** * Class AfterpayCheckoutButton is wrapper of CheckoutButton transform usual button into checkout * * @extends CheckoutButton * * @constructor * * @param {string} selector - Selector of html element. * @param {string} accessToken - PayDock access-token or users public key * @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway * @example * var widget = new AfterpayCheckoutButton('#button', 'access-token','gatewayId'); */ declare class AfterpayCheckoutButton extends CheckoutButton { protected accessToken: string; protected gatewayId: string; protected showETP: boolean; /** @constructs */ constructor(selector: string, accessToken: string, gatewayId?: string); /** * Method which toggles the "Enhanced Tracking Protection" warning popup to 'on' mode. * * This popup with a warning about "Enhanced Tracking Protection" limitations * would be shown in the Mozilla Firefox browser version 100+ * * By default, the popup would not be shown, until * the flag would be set to `true` * @param {doShow} boolean - flag which toggle the popup visibility */ showEnhancedTrackingProtectionPopup(doShow: boolean): void; protected buildAdditionalParams(): AdditionalParams; } export { AfterpayCheckoutButton }; //# sourceMappingURL=afterpay-checkout-button.d.ts.map