UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

23 lines 1.06 kB
/** * Events emitted during the OpenWallet payment lifecycle. */ export declare enum EVENT { /** Emitted when the wallet button is clicked by the user. */ ON_CLICK = "onClick", /** Emitted when the OTT (One-Time Token) creation succeeds. */ SUCCESS = "success", /** Emitted when the wallet is not available on the current device/browser. */ UNAVAILABLE = "unavailable", /** Emitted when an error occurs during wallet operation. */ ERROR = "error", /** Emitted when the wallet button has been loaded and rendered in the DOM. */ LOADED = "loaded", /** Emitted when the wallet checkout is closed/cancelled by the user (internal). */ CHECKOUT_CLOSE = "checkoutClose", /** Emitted when the customer selects or updates their shipping address. */ ON_SHIPPING_ADDRESS_CHANGE = "onShippingAddressChange", /** Emitted when the customer selects a shipping option. */ ON_SHIPPING_OPTIONS_CHANGE = "onShippingOptionsChange" } export type OpenWalletEventType = EVENT; //# sourceMappingURL=event.enum.d.ts.map