@paydock/client-sdk 1.145.0-beta → 1.147.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +129 -1
  2. package/bundles/index.cjs +746 -102
  3. package/bundles/index.cjs.d.ts +131 -14
  4. package/bundles/index.mjs +746 -103
  5. package/bundles/index.mjs.d.ts +131 -14
  6. package/bundles/types/api/api-base.d.ts +6 -0
  7. package/bundles/types/api/api-base.d.ts.map +1 -1
  8. package/bundles/types/api/api-charge-internal.d.ts +1 -5
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
  10. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts +50 -0
  11. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts.map +1 -1
  12. package/bundles/types/canvas-3ds/canvas-3ds.d.ts +7 -5
  13. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -1
  14. package/bundles/types/canvas-3ds/index.d.ts +1 -1
  15. package/bundles/types/canvas-3ds/index.d.ts.map +1 -1
  16. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +117 -2
  17. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  18. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +6 -0
  19. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -1
  20. package/bundles/types/components/iframe-event.d.ts +4 -3
  21. package/bundles/types/components/iframe-event.d.ts.map +1 -1
  22. package/bundles/types/components/iframe.d.ts +5 -0
  23. package/bundles/types/components/iframe.d.ts.map +1 -1
  24. package/bundles/types/components/param.d.ts +19 -0
  25. package/bundles/types/components/param.d.ts.map +1 -1
  26. package/bundles/types/index-cba.d.ts +1 -1
  27. package/bundles/types/index-cba.d.ts.map +1 -1
  28. package/bundles/types/index.d.ts +2 -2
  29. package/bundles/types/index.d.ts.map +1 -1
  30. package/bundles/types/widget/multi-widget.d.ts +19 -0
  31. package/bundles/types/widget/multi-widget.d.ts.map +1 -1
  32. package/bundles/widget.umd.js +746 -102
  33. package/bundles/widget.umd.js.d.ts +131 -14
  34. package/bundles/widget.umd.js.min.d.ts +131 -14
  35. package/bundles/widget.umd.min.js +1 -1
  36. package/docs/api-canvas3ds.md +10 -8
  37. package/docs/api-checkout-button.md +15 -0
  38. package/docs/api-ps-widget.md +15 -0
  39. package/docs/api-widget.md +15 -0
  40. package/docs/canvas3ds-examples.md +43 -1
  41. package/docs/widget-examples.md +41 -0
  42. package/package.json +15 -9
  43. package/slate.md +84 -1
@@ -259,6 +259,24 @@ declare const SUPPORTED_CARD_TYPES: {
259
259
  EFTPOS_WHITE: string;
260
260
  UNIONPAY: string;
261
261
  };
262
+ /**
263
+ * Card schemes the widget is able to resolve from a card number, and therefore the only values
264
+ * `setAllowedCardSchemes` accepts. This is a separate vocabulary from SUPPORTED_CARD_TYPES, which drives the
265
+ * card icons: it omits the icon-only variants `visa_white` / `eftpos_white`, and the `laser` / `maestro`
266
+ * identifiers the widget can never resolve — allowing those would be configuration that can never match.
267
+ */
268
+ declare const CARD_SCHEME: {
269
+ AMEX: string;
270
+ AUSBC: string;
271
+ DINERS: string;
272
+ DISCOVER: string;
273
+ EFTPOS: string;
274
+ JAPCB: string;
275
+ MASTERCARD: string;
276
+ SOLO: string;
277
+ UNIONPAY: string;
278
+ VISA: string;
279
+ };
262
280
  interface IIcons {
263
281
  paypal_checkout_button?: string;
264
282
  afterpay_checkout_button?: string;
@@ -362,6 +380,7 @@ interface IParams extends IStyles$1, ITexts, ICommonParams {
362
380
  ref_id?: string;
363
381
  supported_card_types?: string;
364
382
  validate_card_types?: boolean;
383
+ allowed_card_schemes?: string;
365
384
  fields_validation?: boolean;
366
385
  hidden_elements?: string;
367
386
  icons?: string;
@@ -767,10 +786,15 @@ declare class Configuration {
767
786
  declare class IFrame {
768
787
  protected container: Container;
769
788
  constructor(container: Container);
789
+ /**
790
+ * @param options.onLoad Called on every `load` of the iframe (initial document and each
791
+ * subsequent navigation). Attached before `src` is set so a fast load is never missed.
792
+ */
770
793
  load(link: string, options?: {
771
794
  title?: string;
772
795
  attributes?: Record<string, string>;
773
796
  styles?: Record<string, string>;
797
+ onLoad?: (event: Event) => void;
774
798
  }, iframeClass?: string): void;
775
799
  loadFromHtml(content: string, options?: {
776
800
  title?: string;
@@ -842,15 +866,16 @@ declare const EVENT$3: {
842
866
  type EventTypes = typeof EVENT$3[keyof typeof EVENT$3];
843
867
  interface Listener {
844
868
  event: string;
845
- listener: (event: any) => void;
869
+ /** `origin` is the `MessageEvent.origin` of the postMessage that carried the data (undefined for direct `emit`). */
870
+ listener: (event: any, origin?: string) => void;
846
871
  widget_id: string;
847
872
  }
848
873
  declare type Listeners = Listener[];
849
874
  declare class IFrameEvent {
850
875
  protected listeners: Listeners;
851
876
  constructor(subject: Window | null);
852
- emit(data: IEventData$1): void;
853
- on<T>(eventName: string, widgetId: string, cb: (data: T) => void): void;
877
+ emit(data: IEventData$1, origin?: string): void;
878
+ on<T>(eventName: string, widgetId: string, cb: (data: T, origin?: string) => void): void;
854
879
  clear(): void;
855
880
  private subscribe;
856
881
  }
@@ -1206,6 +1231,25 @@ declare class MultiWidget {
1206
1231
  * @param {boolean} validateCardNumberInput - [validateCardNumberInput=false] - using this param you allow validation for card number input on supported card types
1207
1232
  */
1208
1233
  setSupportedCardIcons(elements: string[], validateCardNumberInput?: boolean): void;
1234
+ /**
1235
+ * Current method restricts which card schemes the card number input accepts, without changing which card
1236
+ * icons the widget displays. Scheme identifiers are matched case-insensitively and ignoring surrounding
1237
+ * whitespace; unsupported identifiers are ignored with a warning, so a list in which every identifier is
1238
+ * unsupported applies no restriction at all.
1239
+ *
1240
+ * Takes precedence over setSupportedCardIcons: when a non-empty list is supplied here, it is the only list
1241
+ * used for validation and the validateCardNumberInput flag of setSupportedCardIcons no longer affects it.
1242
+ * Calling this method more than once replaces the previous list rather than merging with it.
1243
+ *
1244
+ * Must be called before load().
1245
+ *
1246
+ * @example
1247
+ *
1248
+ * widget.setAllowedCardSchemes(['visa', 'mastercard']);
1249
+ *
1250
+ * @param {string[]} schemes - [CARD_SCHEME]{@link CARD_SCHEME}
1251
+ */
1252
+ setAllowedCardSchemes(schemes: string[]): void;
1209
1253
  /**
1210
1254
  * Current method can hide prevent the widget from showing the error messages
1211
1255
  *
@@ -2171,6 +2215,12 @@ declare class ApiBase {
2171
2215
  * @param {string} [alias] - Own domain alias
2172
2216
  */
2173
2217
  setEnv(env: string, alias?: string): ApiBase;
2218
+ /**
2219
+ * Origin (`scheme://host[:port]`) of the API this client talks to, for the current env/alias.
2220
+ * Used to validate the `origin` of postMessages the API itself sends to the page.
2221
+ */
2222
+ getApiOrigin(): string;
2223
+ static toOrigin(url: string): string;
2174
2224
  requestObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req): Observable<Res>;
2175
2225
  private makeRequest;
2176
2226
  private onRequestLoad;
@@ -2301,6 +2351,11 @@ declare class Standalone3dsService {
2301
2351
  load(token: string, options: {
2302
2352
  title: string;
2303
2353
  }): void;
2354
+ /**
2355
+ * Origins allowed to deliver a processed 3DS outcome to the page via postMessage: the Paydock API
2356
+ * (inline callback page) and the Paydock widget (remote-app landing page), for the current env/alias.
2357
+ */
2358
+ protected getTrustedMessageOrigins(api: ApiBase): string[];
2304
2359
  setEnv(env: string, alias?: string): void;
2305
2360
  }
2306
2361
 
@@ -2319,6 +2374,38 @@ interface Canvas3dsAuthPayload {
2319
2374
  description?: string;
2320
2375
  };
2321
2376
  }
2377
+ /**
2378
+ * Payload of `chargeAuthChallengeLoaded` (Standalone 3DS, challenge flow only).
2379
+ * Emitted exactly once per challenge, after `chargeAuthChallenge`.
2380
+ */
2381
+ interface Canvas3dsChallengeLoadedPayload {
2382
+ /** The Paydock 3DS charge identifier the challenge belongs to. */
2383
+ charge_3ds_id: string;
2384
+ /**
2385
+ * `'load'` — the challenge iframe fired its first `load`: the ACS page has painted.
2386
+ * `'timeout'` — no `load` arrived within the SDK's 2.5 s safety fallback; the event is emitted anyway so a
2387
+ * loader is never held forever (the page may still be loading and will paint on its own). Useful for
2388
+ * analytics (how often the fallback fires) — you do not need to handle the two differently.
2389
+ */
2390
+ reason: 'load' | 'timeout';
2391
+ }
2392
+ /**
2393
+ * Payload of `chargeAuthChallengeCompleted` (Standalone 3DS, challenge and decoupled flows).
2394
+ * Emitted at most once per authentication, after the shopper finished the challenge (or approved a decoupled
2395
+ * authentication) and always before the terminal event.
2396
+ */
2397
+ interface Canvas3dsChallengeCompletedPayload {
2398
+ /** The Paydock 3DS charge identifier the authentication belongs to. */
2399
+ charge_3ds_id: string;
2400
+ /**
2401
+ * How the SDK learned that the issuer delivered the result:
2402
+ * `'poll'` — the 3DS Server's result monitor reported it (the usual case: it flips as soon as the issuer's
2403
+ * result reaches the 3DS Server, before the challenge iframe has even left the bank's page);
2404
+ * `'callback'` — the callback message carrying the outcome arrived first (the terminal event follows
2405
+ * immediately). Informational only — handle both the same way.
2406
+ */
2407
+ source: 'poll' | 'callback';
2408
+ }
2322
2409
  /**
2323
2410
  * Payload emitted by the Standalone 3DS flow for error events.
2324
2411
  * `error` is intentionally `unknown` — upstream emitters do not guarantee a shape.
@@ -2371,6 +2458,24 @@ interface Canvas3dsEventMap {
2371
2458
  error: Canvas3dsErrorPayload | Canvas3dsErrorEventPayload;
2372
2459
  /** Challenge required — issuer demands user interaction (OTP, biometric, etc.). Standalone-only. */
2373
2460
  chargeAuthChallenge: Canvas3dsAuthPayload;
2461
+ /**
2462
+ * The challenge iframe has painted (first `load`), or the 2.5 s fallback elapsed — see `reason`. Standalone-only,
2463
+ * challenge flow only (never emitted for decoupled challenges). Fires once, after `chargeAuthChallenge`.
2464
+ *
2465
+ * Recommended loader pattern: show a loader before the charge POST, keep it through `chargeAuthChallenge`,
2466
+ * reveal the challenge on this event, cover it with "Completing verification" on `chargeAuthChallengeCompleted`,
2467
+ * and finish on `chargeAuthSuccess` / `chargeAuthReject` / `error`.
2468
+ */
2469
+ chargeAuthChallengeLoaded: Canvas3dsChallengeLoadedPayload;
2470
+ /**
2471
+ * The shopper finished the challenge (or approved a decoupled authentication): the issuer delivered the final
2472
+ * result to the 3DS Server and the SDK is obtaining the outcome. Cover the challenge iframe with your own
2473
+ * "Completing verification" state — whatever the bank or the 3DS Server render from here on is plumbing, not
2474
+ * UX. Standalone-only. Fires at most once per authentication, always before `chargeAuthSuccess` /
2475
+ * `chargeAuthReject` / `error`, and never after them. A wrong OTP or a further interactive step does NOT fire
2476
+ * it (no result has been delivered yet), so no grace timer or reveal fallback is needed on your side.
2477
+ */
2478
+ chargeAuthChallengeCompleted: Canvas3dsChallengeCompletedPayload;
2374
2479
  /** Decoupled authentication — issuer will authenticate out-of-band and notify later. Standalone-only. */
2375
2480
  chargeAuthDecoupled: Canvas3dsAuthPayload;
2376
2481
  /** Iframe-path authentication event. Extends `IEventData` with optional 3DS correlation fields (`charge_3ds_id`, `status`). */
@@ -2426,11 +2531,13 @@ declare enum TOKEN_FORMAT {
2426
2531
  * @const STANDALONE_3DS_EVENT
2427
2532
  *
2428
2533
  * @type {object}
2429
- * @param {string} CHARGE_AUTH_SUCCESS=chargeAuthSuccess
2430
- * @param {string} CHARGE_AUTH_REJECT=chargeAuthReject
2431
- * @param {string} CHARGE_AUTH_DECOUPLED=chargeAuthDecoupled
2432
- * @param {string} CHARGE_AUTH_CHALLENGE=chargeAuthChallenge
2433
- * @param {string} CHARGE_AUTH_INFO=chargeAuthInfo
2534
+ * @param {string} AUTH_SUCCESS=chargeAuthSuccess
2535
+ * @param {string} AUTH_ERROR=chargeAuthReject
2536
+ * @param {string} DECOUPLED=chargeAuthDecoupled
2537
+ * @param {string} CHALLENGE=chargeAuthChallenge
2538
+ * @param {string} CHALLENGE_LOADED=chargeAuthChallengeLoaded - challenge iframe painted (first `load`, or 2.5 s fallback); reveal your challenge UI here
2539
+ * @param {string} CHALLENGE_COMPLETED=chargeAuthChallengeCompleted - the shopper finished the challenge (issuer result delivered to the 3DS Server); cover the challenge iframe with your own loader until the terminal event
2540
+ * @param {string} INFO=chargeAuthInfo
2434
2541
  * @param {string} ERROR=error
2435
2542
  */
2436
2543
  /**
@@ -2559,7 +2666,6 @@ declare class ApiChargeInternal {
2559
2666
  constructor(api: ApiInternal);
2560
2667
  walletCapture(payload: WalletCaptureBody): Promise<WalletCaptureResponse>;
2561
2668
  walletCallback(payload: WalletCallbackBody): Promise<WalletCallbackResponse>;
2562
- standalone3dsProcess(payload: Standalone3dsProcessBody): Promise<ProcessAuthenticationResponse>;
2563
2669
  standalone3dsHandle(): Promise<HandleResponseInterface>;
2564
2670
  }
2565
2671
  interface WalletCaptureResponse {
@@ -2600,9 +2706,6 @@ interface WalletCallbackResponse {
2600
2706
  callback_rel: string;
2601
2707
  callback_url: string;
2602
2708
  }
2603
- interface Standalone3dsProcessBody {
2604
- charge_3ds_id: string;
2605
- }
2606
2709
 
2607
2710
  declare class ApiCheckoutInternal {
2608
2711
  protected api: ApiInternal;
@@ -2885,6 +2988,20 @@ declare const CANVAS_3DS_EVENT: {
2885
2988
  readonly DECOUPLED: "chargeAuthDecoupled";
2886
2989
  /** Challenge required — issuer demands user interaction. Payload: `Canvas3dsAuthPayload`. */
2887
2990
  readonly CHALLENGE: "chargeAuthChallenge";
2991
+ /**
2992
+ * The challenge iframe fired its FIRST `load` after `chargeAuthChallenge` (the ACS page has painted),
2993
+ * or the `CHALLENGE_LOADED_FALLBACK_MS` safety fallback elapsed without one. Emitted exactly once per
2994
+ * challenge; never emitted for a decoupled challenge (no challenge iframe). Payload: `Canvas3dsChallengeLoadedPayload`.
2995
+ */
2996
+ readonly CHALLENGE_LOADED: "chargeAuthChallengeLoaded";
2997
+ /**
2998
+ * The issuer delivered the final authentication result to the 3DS Server (the shopper finished the
2999
+ * challenge, or approved a decoupled authentication) and the SDK is now obtaining the outcome. Emitted at
3000
+ * most once per authentication, always before the terminal event. Detected through the `secondary_url`
3001
+ * result monitor (`source: 'poll'`) or, when the callback message arrives first, right before the outcome
3002
+ * it carries (`source: 'callback'`). Payload: `Canvas3dsChallengeCompletedPayload`.
3003
+ */
3004
+ readonly CHALLENGE_COMPLETED: "chargeAuthChallengeCompleted";
2888
3005
  /** Informational signal emitted by the GPayments flow. Internal — not part of the public typed surface. */
2889
3006
  readonly INFO: "chargeAuthInfo";
2890
3007
  /** Error during the flow (network, parsing, etc.). Payload: `Canvas3dsErrorPayload`. */
@@ -7439,5 +7556,5 @@ declare global {
7439
7556
  }
7440
7557
  }
7441
7558
 
7442
- export { AfterpayCheckoutButton, AfterpayOnSiteMessaging, Api, ApplePayOpenWalletButton, ApplePayWalletButtonExpress, CANVAS_3DS_EVENT, CHECKOUT_BUTTON_EVENT, EVENT$2 as CHECKOUT_EVENT, Canvas3ds, Canvas3dsTokenFormat, Checkout, CheckoutActionCode, ClickToPay, Configuration, ContactShippingEditingMode, ELEMENT, ERROR_OPERATION, EVENT$3 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, FraudPreventionService, GooglePayOpenWalletButton, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, InstructionDebugger, MultiWidget, OpenWalletButtons, PAYMENT_EXPIRED, PAYMENT_FAILURE, PAYMENT_SUCCESSFUL, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TOKEN_TYPE, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, VaultDisplayWidget, EVENT as WALLET_BUTTONS_EXPRESS_EVENT, WALLET_TYPES, WalletButtons, ZipmoneyCheckoutButton };
7443
- export type { ApplePayAvailabilityOptions, ApplePayAvailabilityResult, ApplePayButtonStyle, ApplePayButtonType, ApplePayCapabilityToken, ApplePayCredentialStatus, ApplePayOpenWalletMeta, ApplePayWalletMeta, AppleShippingType, BaseWalletMeta, Billing, Canvas3dsAuthPayload, Canvas3dsChargeAuthEventPayload, Canvas3dsErrorEventPayload, Canvas3dsErrorPayload, Canvas3dsEventMap, Canvas3dsEventName, CheckoutIntentTokenPayload, CheckoutPaymentExpiredPayload, CheckoutPaymentFailurePayload, CheckoutPaymentSuccessPayload, CheckoutResponse, CreateOTTData, CreateOTTRequest, CreateOTTResponse, CreateSessionRequest, CreateSessionResponse, EventTypes, FraudPreventionEvent, FraudPreventionEventType, FraudPreventionProvider, GooglePayAvailabilityOptions, GooglePayAvailabilityResult, GooglePayCardConfig, GooglePayOpenWalletMeta, GooglePayOpenWalletMetaStyles, HandleResponseInterface, IApplePayShippingOption, ICheckout, IClickToPayMeta, IDetails, IElementStyleInput, IEventAfterLoadData, IEventCheckoutFinishData, IEventData$1 as IEventData, IEventError, IEventFinishData, IEventMetaData, IEventSizeData, IFormValidation, IOpenWalletProvider, IPayPalMeta, IStyles$1 as IStyles, ITexts, ITokenStandalone3DS, IWalletMeta, IWalletOnClickEvent, IWalletPaymentSuccessfulEvent, IWalletUnavailableEvent, IWalletUpdateData, IWalletUpdateEvent, OTTResponse, OnCancelEventData, OnClickEventData$1 as OnClickEventData, OnCreateOTTErrorEventData, OnCreateOTTErrorPayload, OnCreateOTTSuccessPayload, OnCreateOTTSuccessfulEventData, OnErrorEventData$1 as OnErrorEventData, OnErrorPayload, OnLoadedEventData, OnUnavailableDetails, OnUnavailableEventData$1 as OnUnavailableEventData, OnUnavailablePayload, OpenWalletAvailabilityOptions, OpenWalletAvailabilityResult, OpenWalletBaseEvent, OpenWalletDataEvent, OpenWalletEventType, OpenWalletMeta, PaypalWalletMeta, ProcessAuthenticationResponse, Shipping, VaultDisplayStyle, OnClickEventData as WalletExpressOnClickEventData, OnCloseEventData as WalletExpressOnCloseEventData, OnErrorEventData as WalletExpressOnErrorEventData, OnPaymentErrorEventData as WalletExpressOnPaymentErrorEventData, OnPaymentInReviewEventData as WalletExpressOnPaymentInReviewEventData, OnPaymentSuccessfulEventData as WalletExpressOnPaymentSuccessfulEventData, OnShippingAddressChangeEventData as WalletExpressOnShippingAddressChangeEventData, OnShippingAddressChangeEventResponse as WalletExpressOnShippingAddressChangeEventResponse, OnShippingOptionChangeEventData as WalletExpressOnShippingOptionChangeEventData, OnShippingOptionChangeEventResponse as WalletExpressOnShippingOptionChangeEventResponse, OnUnavailableEventData as WalletExpressOnUnavailableEventData, WalletType, WidgetEventMap, WidgetEventName };
7559
+ export { AfterpayCheckoutButton, AfterpayOnSiteMessaging, Api, ApplePayOpenWalletButton, ApplePayWalletButtonExpress, CANVAS_3DS_EVENT, CARD_SCHEME, CHECKOUT_BUTTON_EVENT, EVENT$2 as CHECKOUT_EVENT, Canvas3ds, Canvas3dsTokenFormat, Checkout, CheckoutActionCode, ClickToPay, Configuration, ContactShippingEditingMode, ELEMENT, ERROR_OPERATION, EVENT$3 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, FraudPreventionService, GooglePayOpenWalletButton, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, InstructionDebugger, MultiWidget, OpenWalletButtons, PAYMENT_EXPIRED, PAYMENT_FAILURE, PAYMENT_SUCCESSFUL, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TOKEN_TYPE, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, VaultDisplayWidget, EVENT as WALLET_BUTTONS_EXPRESS_EVENT, WALLET_TYPES, WalletButtons, ZipmoneyCheckoutButton };
7560
+ export type { ApplePayAvailabilityOptions, ApplePayAvailabilityResult, ApplePayButtonStyle, ApplePayButtonType, ApplePayCapabilityToken, ApplePayCredentialStatus, ApplePayOpenWalletMeta, ApplePayWalletMeta, AppleShippingType, BaseWalletMeta, Billing, Canvas3dsAuthPayload, Canvas3dsChallengeCompletedPayload, Canvas3dsChallengeLoadedPayload, Canvas3dsChargeAuthEventPayload, Canvas3dsErrorEventPayload, Canvas3dsErrorPayload, Canvas3dsEventMap, Canvas3dsEventName, CheckoutIntentTokenPayload, CheckoutPaymentExpiredPayload, CheckoutPaymentFailurePayload, CheckoutPaymentSuccessPayload, CheckoutResponse, CreateOTTData, CreateOTTRequest, CreateOTTResponse, CreateSessionRequest, CreateSessionResponse, EventTypes, FraudPreventionEvent, FraudPreventionEventType, FraudPreventionProvider, GooglePayAvailabilityOptions, GooglePayAvailabilityResult, GooglePayCardConfig, GooglePayOpenWalletMeta, GooglePayOpenWalletMetaStyles, HandleResponseInterface, IApplePayShippingOption, ICheckout, IClickToPayMeta, IDetails, IElementStyleInput, IEventAfterLoadData, IEventCheckoutFinishData, IEventData$1 as IEventData, IEventError, IEventFinishData, IEventMetaData, IEventSizeData, IFormValidation, IOpenWalletProvider, IPayPalMeta, IStyles$1 as IStyles, ITexts, ITokenStandalone3DS, IWalletMeta, IWalletOnClickEvent, IWalletPaymentSuccessfulEvent, IWalletUnavailableEvent, IWalletUpdateData, IWalletUpdateEvent, OTTResponse, OnCancelEventData, OnClickEventData$1 as OnClickEventData, OnCreateOTTErrorEventData, OnCreateOTTErrorPayload, OnCreateOTTSuccessPayload, OnCreateOTTSuccessfulEventData, OnErrorEventData$1 as OnErrorEventData, OnErrorPayload, OnLoadedEventData, OnUnavailableDetails, OnUnavailableEventData$1 as OnUnavailableEventData, OnUnavailablePayload, OpenWalletAvailabilityOptions, OpenWalletAvailabilityResult, OpenWalletBaseEvent, OpenWalletDataEvent, OpenWalletEventType, OpenWalletMeta, PaypalWalletMeta, ProcessAuthenticationResponse, Shipping, VaultDisplayStyle, OnClickEventData as WalletExpressOnClickEventData, OnCloseEventData as WalletExpressOnCloseEventData, OnErrorEventData as WalletExpressOnErrorEventData, OnPaymentErrorEventData as WalletExpressOnPaymentErrorEventData, OnPaymentInReviewEventData as WalletExpressOnPaymentInReviewEventData, OnPaymentSuccessfulEventData as WalletExpressOnPaymentSuccessfulEventData, OnShippingAddressChangeEventData as WalletExpressOnShippingAddressChangeEventData, OnShippingAddressChangeEventResponse as WalletExpressOnShippingAddressChangeEventResponse, OnShippingOptionChangeEventData as WalletExpressOnShippingOptionChangeEventData, OnShippingOptionChangeEventResponse as WalletExpressOnShippingOptionChangeEventResponse, OnUnavailableEventData as WalletExpressOnUnavailableEventData, WalletType, WidgetEventMap, WidgetEventName };
@@ -259,6 +259,24 @@ declare const SUPPORTED_CARD_TYPES: {
259
259
  EFTPOS_WHITE: string;
260
260
  UNIONPAY: string;
261
261
  };
262
+ /**
263
+ * Card schemes the widget is able to resolve from a card number, and therefore the only values
264
+ * `setAllowedCardSchemes` accepts. This is a separate vocabulary from SUPPORTED_CARD_TYPES, which drives the
265
+ * card icons: it omits the icon-only variants `visa_white` / `eftpos_white`, and the `laser` / `maestro`
266
+ * identifiers the widget can never resolve — allowing those would be configuration that can never match.
267
+ */
268
+ declare const CARD_SCHEME: {
269
+ AMEX: string;
270
+ AUSBC: string;
271
+ DINERS: string;
272
+ DISCOVER: string;
273
+ EFTPOS: string;
274
+ JAPCB: string;
275
+ MASTERCARD: string;
276
+ SOLO: string;
277
+ UNIONPAY: string;
278
+ VISA: string;
279
+ };
262
280
  interface IIcons {
263
281
  paypal_checkout_button?: string;
264
282
  afterpay_checkout_button?: string;
@@ -362,6 +380,7 @@ interface IParams extends IStyles$1, ITexts, ICommonParams {
362
380
  ref_id?: string;
363
381
  supported_card_types?: string;
364
382
  validate_card_types?: boolean;
383
+ allowed_card_schemes?: string;
365
384
  fields_validation?: boolean;
366
385
  hidden_elements?: string;
367
386
  icons?: string;
@@ -767,10 +786,15 @@ declare class Configuration {
767
786
  declare class IFrame {
768
787
  protected container: Container;
769
788
  constructor(container: Container);
789
+ /**
790
+ * @param options.onLoad Called on every `load` of the iframe (initial document and each
791
+ * subsequent navigation). Attached before `src` is set so a fast load is never missed.
792
+ */
770
793
  load(link: string, options?: {
771
794
  title?: string;
772
795
  attributes?: Record<string, string>;
773
796
  styles?: Record<string, string>;
797
+ onLoad?: (event: Event) => void;
774
798
  }, iframeClass?: string): void;
775
799
  loadFromHtml(content: string, options?: {
776
800
  title?: string;
@@ -842,15 +866,16 @@ declare const EVENT$3: {
842
866
  type EventTypes = typeof EVENT$3[keyof typeof EVENT$3];
843
867
  interface Listener {
844
868
  event: string;
845
- listener: (event: any) => void;
869
+ /** `origin` is the `MessageEvent.origin` of the postMessage that carried the data (undefined for direct `emit`). */
870
+ listener: (event: any, origin?: string) => void;
846
871
  widget_id: string;
847
872
  }
848
873
  declare type Listeners = Listener[];
849
874
  declare class IFrameEvent {
850
875
  protected listeners: Listeners;
851
876
  constructor(subject: Window | null);
852
- emit(data: IEventData$1): void;
853
- on<T>(eventName: string, widgetId: string, cb: (data: T) => void): void;
877
+ emit(data: IEventData$1, origin?: string): void;
878
+ on<T>(eventName: string, widgetId: string, cb: (data: T, origin?: string) => void): void;
854
879
  clear(): void;
855
880
  private subscribe;
856
881
  }
@@ -1206,6 +1231,25 @@ declare class MultiWidget {
1206
1231
  * @param {boolean} validateCardNumberInput - [validateCardNumberInput=false] - using this param you allow validation for card number input on supported card types
1207
1232
  */
1208
1233
  setSupportedCardIcons(elements: string[], validateCardNumberInput?: boolean): void;
1234
+ /**
1235
+ * Current method restricts which card schemes the card number input accepts, without changing which card
1236
+ * icons the widget displays. Scheme identifiers are matched case-insensitively and ignoring surrounding
1237
+ * whitespace; unsupported identifiers are ignored with a warning, so a list in which every identifier is
1238
+ * unsupported applies no restriction at all.
1239
+ *
1240
+ * Takes precedence over setSupportedCardIcons: when a non-empty list is supplied here, it is the only list
1241
+ * used for validation and the validateCardNumberInput flag of setSupportedCardIcons no longer affects it.
1242
+ * Calling this method more than once replaces the previous list rather than merging with it.
1243
+ *
1244
+ * Must be called before load().
1245
+ *
1246
+ * @example
1247
+ *
1248
+ * widget.setAllowedCardSchemes(['visa', 'mastercard']);
1249
+ *
1250
+ * @param {string[]} schemes - [CARD_SCHEME]{@link CARD_SCHEME}
1251
+ */
1252
+ setAllowedCardSchemes(schemes: string[]): void;
1209
1253
  /**
1210
1254
  * Current method can hide prevent the widget from showing the error messages
1211
1255
  *
@@ -2171,6 +2215,12 @@ declare class ApiBase {
2171
2215
  * @param {string} [alias] - Own domain alias
2172
2216
  */
2173
2217
  setEnv(env: string, alias?: string): ApiBase;
2218
+ /**
2219
+ * Origin (`scheme://host[:port]`) of the API this client talks to, for the current env/alias.
2220
+ * Used to validate the `origin` of postMessages the API itself sends to the page.
2221
+ */
2222
+ getApiOrigin(): string;
2223
+ static toOrigin(url: string): string;
2174
2224
  requestObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req): Observable<Res>;
2175
2225
  private makeRequest;
2176
2226
  private onRequestLoad;
@@ -2301,6 +2351,11 @@ declare class Standalone3dsService {
2301
2351
  load(token: string, options: {
2302
2352
  title: string;
2303
2353
  }): void;
2354
+ /**
2355
+ * Origins allowed to deliver a processed 3DS outcome to the page via postMessage: the Paydock API
2356
+ * (inline callback page) and the Paydock widget (remote-app landing page), for the current env/alias.
2357
+ */
2358
+ protected getTrustedMessageOrigins(api: ApiBase): string[];
2304
2359
  setEnv(env: string, alias?: string): void;
2305
2360
  }
2306
2361
 
@@ -2319,6 +2374,38 @@ interface Canvas3dsAuthPayload {
2319
2374
  description?: string;
2320
2375
  };
2321
2376
  }
2377
+ /**
2378
+ * Payload of `chargeAuthChallengeLoaded` (Standalone 3DS, challenge flow only).
2379
+ * Emitted exactly once per challenge, after `chargeAuthChallenge`.
2380
+ */
2381
+ interface Canvas3dsChallengeLoadedPayload {
2382
+ /** The Paydock 3DS charge identifier the challenge belongs to. */
2383
+ charge_3ds_id: string;
2384
+ /**
2385
+ * `'load'` — the challenge iframe fired its first `load`: the ACS page has painted.
2386
+ * `'timeout'` — no `load` arrived within the SDK's 2.5 s safety fallback; the event is emitted anyway so a
2387
+ * loader is never held forever (the page may still be loading and will paint on its own). Useful for
2388
+ * analytics (how often the fallback fires) — you do not need to handle the two differently.
2389
+ */
2390
+ reason: 'load' | 'timeout';
2391
+ }
2392
+ /**
2393
+ * Payload of `chargeAuthChallengeCompleted` (Standalone 3DS, challenge and decoupled flows).
2394
+ * Emitted at most once per authentication, after the shopper finished the challenge (or approved a decoupled
2395
+ * authentication) and always before the terminal event.
2396
+ */
2397
+ interface Canvas3dsChallengeCompletedPayload {
2398
+ /** The Paydock 3DS charge identifier the authentication belongs to. */
2399
+ charge_3ds_id: string;
2400
+ /**
2401
+ * How the SDK learned that the issuer delivered the result:
2402
+ * `'poll'` — the 3DS Server's result monitor reported it (the usual case: it flips as soon as the issuer's
2403
+ * result reaches the 3DS Server, before the challenge iframe has even left the bank's page);
2404
+ * `'callback'` — the callback message carrying the outcome arrived first (the terminal event follows
2405
+ * immediately). Informational only — handle both the same way.
2406
+ */
2407
+ source: 'poll' | 'callback';
2408
+ }
2322
2409
  /**
2323
2410
  * Payload emitted by the Standalone 3DS flow for error events.
2324
2411
  * `error` is intentionally `unknown` — upstream emitters do not guarantee a shape.
@@ -2371,6 +2458,24 @@ interface Canvas3dsEventMap {
2371
2458
  error: Canvas3dsErrorPayload | Canvas3dsErrorEventPayload;
2372
2459
  /** Challenge required — issuer demands user interaction (OTP, biometric, etc.). Standalone-only. */
2373
2460
  chargeAuthChallenge: Canvas3dsAuthPayload;
2461
+ /**
2462
+ * The challenge iframe has painted (first `load`), or the 2.5 s fallback elapsed — see `reason`. Standalone-only,
2463
+ * challenge flow only (never emitted for decoupled challenges). Fires once, after `chargeAuthChallenge`.
2464
+ *
2465
+ * Recommended loader pattern: show a loader before the charge POST, keep it through `chargeAuthChallenge`,
2466
+ * reveal the challenge on this event, cover it with "Completing verification" on `chargeAuthChallengeCompleted`,
2467
+ * and finish on `chargeAuthSuccess` / `chargeAuthReject` / `error`.
2468
+ */
2469
+ chargeAuthChallengeLoaded: Canvas3dsChallengeLoadedPayload;
2470
+ /**
2471
+ * The shopper finished the challenge (or approved a decoupled authentication): the issuer delivered the final
2472
+ * result to the 3DS Server and the SDK is obtaining the outcome. Cover the challenge iframe with your own
2473
+ * "Completing verification" state — whatever the bank or the 3DS Server render from here on is plumbing, not
2474
+ * UX. Standalone-only. Fires at most once per authentication, always before `chargeAuthSuccess` /
2475
+ * `chargeAuthReject` / `error`, and never after them. A wrong OTP or a further interactive step does NOT fire
2476
+ * it (no result has been delivered yet), so no grace timer or reveal fallback is needed on your side.
2477
+ */
2478
+ chargeAuthChallengeCompleted: Canvas3dsChallengeCompletedPayload;
2374
2479
  /** Decoupled authentication — issuer will authenticate out-of-band and notify later. Standalone-only. */
2375
2480
  chargeAuthDecoupled: Canvas3dsAuthPayload;
2376
2481
  /** Iframe-path authentication event. Extends `IEventData` with optional 3DS correlation fields (`charge_3ds_id`, `status`). */
@@ -2426,11 +2531,13 @@ declare enum TOKEN_FORMAT {
2426
2531
  * @const STANDALONE_3DS_EVENT
2427
2532
  *
2428
2533
  * @type {object}
2429
- * @param {string} CHARGE_AUTH_SUCCESS=chargeAuthSuccess
2430
- * @param {string} CHARGE_AUTH_REJECT=chargeAuthReject
2431
- * @param {string} CHARGE_AUTH_DECOUPLED=chargeAuthDecoupled
2432
- * @param {string} CHARGE_AUTH_CHALLENGE=chargeAuthChallenge
2433
- * @param {string} CHARGE_AUTH_INFO=chargeAuthInfo
2534
+ * @param {string} AUTH_SUCCESS=chargeAuthSuccess
2535
+ * @param {string} AUTH_ERROR=chargeAuthReject
2536
+ * @param {string} DECOUPLED=chargeAuthDecoupled
2537
+ * @param {string} CHALLENGE=chargeAuthChallenge
2538
+ * @param {string} CHALLENGE_LOADED=chargeAuthChallengeLoaded - challenge iframe painted (first `load`, or 2.5 s fallback); reveal your challenge UI here
2539
+ * @param {string} CHALLENGE_COMPLETED=chargeAuthChallengeCompleted - the shopper finished the challenge (issuer result delivered to the 3DS Server); cover the challenge iframe with your own loader until the terminal event
2540
+ * @param {string} INFO=chargeAuthInfo
2434
2541
  * @param {string} ERROR=error
2435
2542
  */
2436
2543
  /**
@@ -2559,7 +2666,6 @@ declare class ApiChargeInternal {
2559
2666
  constructor(api: ApiInternal);
2560
2667
  walletCapture(payload: WalletCaptureBody): Promise<WalletCaptureResponse>;
2561
2668
  walletCallback(payload: WalletCallbackBody): Promise<WalletCallbackResponse>;
2562
- standalone3dsProcess(payload: Standalone3dsProcessBody): Promise<ProcessAuthenticationResponse>;
2563
2669
  standalone3dsHandle(): Promise<HandleResponseInterface>;
2564
2670
  }
2565
2671
  interface WalletCaptureResponse {
@@ -2600,9 +2706,6 @@ interface WalletCallbackResponse {
2600
2706
  callback_rel: string;
2601
2707
  callback_url: string;
2602
2708
  }
2603
- interface Standalone3dsProcessBody {
2604
- charge_3ds_id: string;
2605
- }
2606
2709
 
2607
2710
  declare class ApiCheckoutInternal {
2608
2711
  protected api: ApiInternal;
@@ -2885,6 +2988,20 @@ declare const CANVAS_3DS_EVENT: {
2885
2988
  readonly DECOUPLED: "chargeAuthDecoupled";
2886
2989
  /** Challenge required — issuer demands user interaction. Payload: `Canvas3dsAuthPayload`. */
2887
2990
  readonly CHALLENGE: "chargeAuthChallenge";
2991
+ /**
2992
+ * The challenge iframe fired its FIRST `load` after `chargeAuthChallenge` (the ACS page has painted),
2993
+ * or the `CHALLENGE_LOADED_FALLBACK_MS` safety fallback elapsed without one. Emitted exactly once per
2994
+ * challenge; never emitted for a decoupled challenge (no challenge iframe). Payload: `Canvas3dsChallengeLoadedPayload`.
2995
+ */
2996
+ readonly CHALLENGE_LOADED: "chargeAuthChallengeLoaded";
2997
+ /**
2998
+ * The issuer delivered the final authentication result to the 3DS Server (the shopper finished the
2999
+ * challenge, or approved a decoupled authentication) and the SDK is now obtaining the outcome. Emitted at
3000
+ * most once per authentication, always before the terminal event. Detected through the `secondary_url`
3001
+ * result monitor (`source: 'poll'`) or, when the callback message arrives first, right before the outcome
3002
+ * it carries (`source: 'callback'`). Payload: `Canvas3dsChallengeCompletedPayload`.
3003
+ */
3004
+ readonly CHALLENGE_COMPLETED: "chargeAuthChallengeCompleted";
2888
3005
  /** Informational signal emitted by the GPayments flow. Internal — not part of the public typed surface. */
2889
3006
  readonly INFO: "chargeAuthInfo";
2890
3007
  /** Error during the flow (network, parsing, etc.). Payload: `Canvas3dsErrorPayload`. */
@@ -7439,5 +7556,5 @@ declare global {
7439
7556
  }
7440
7557
  }
7441
7558
 
7442
- export { AfterpayCheckoutButton, AfterpayOnSiteMessaging, Api, ApplePayOpenWalletButton, ApplePayWalletButtonExpress, CANVAS_3DS_EVENT, CHECKOUT_BUTTON_EVENT, EVENT$2 as CHECKOUT_EVENT, Canvas3ds, Canvas3dsTokenFormat, Checkout, CheckoutActionCode, ClickToPay, Configuration, ContactShippingEditingMode, ELEMENT, ERROR_OPERATION, EVENT$3 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, FraudPreventionService, GooglePayOpenWalletButton, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, InstructionDebugger, MultiWidget, OpenWalletButtons, PAYMENT_EXPIRED, PAYMENT_FAILURE, PAYMENT_SUCCESSFUL, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TOKEN_TYPE, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, VaultDisplayWidget, EVENT as WALLET_BUTTONS_EXPRESS_EVENT, WALLET_TYPES, WalletButtons, ZipmoneyCheckoutButton };
7443
- export type { ApplePayAvailabilityOptions, ApplePayAvailabilityResult, ApplePayButtonStyle, ApplePayButtonType, ApplePayCapabilityToken, ApplePayCredentialStatus, ApplePayOpenWalletMeta, ApplePayWalletMeta, AppleShippingType, BaseWalletMeta, Billing, Canvas3dsAuthPayload, Canvas3dsChargeAuthEventPayload, Canvas3dsErrorEventPayload, Canvas3dsErrorPayload, Canvas3dsEventMap, Canvas3dsEventName, CheckoutIntentTokenPayload, CheckoutPaymentExpiredPayload, CheckoutPaymentFailurePayload, CheckoutPaymentSuccessPayload, CheckoutResponse, CreateOTTData, CreateOTTRequest, CreateOTTResponse, CreateSessionRequest, CreateSessionResponse, EventTypes, FraudPreventionEvent, FraudPreventionEventType, FraudPreventionProvider, GooglePayAvailabilityOptions, GooglePayAvailabilityResult, GooglePayCardConfig, GooglePayOpenWalletMeta, GooglePayOpenWalletMetaStyles, HandleResponseInterface, IApplePayShippingOption, ICheckout, IClickToPayMeta, IDetails, IElementStyleInput, IEventAfterLoadData, IEventCheckoutFinishData, IEventData$1 as IEventData, IEventError, IEventFinishData, IEventMetaData, IEventSizeData, IFormValidation, IOpenWalletProvider, IPayPalMeta, IStyles$1 as IStyles, ITexts, ITokenStandalone3DS, IWalletMeta, IWalletOnClickEvent, IWalletPaymentSuccessfulEvent, IWalletUnavailableEvent, IWalletUpdateData, IWalletUpdateEvent, OTTResponse, OnCancelEventData, OnClickEventData$1 as OnClickEventData, OnCreateOTTErrorEventData, OnCreateOTTErrorPayload, OnCreateOTTSuccessPayload, OnCreateOTTSuccessfulEventData, OnErrorEventData$1 as OnErrorEventData, OnErrorPayload, OnLoadedEventData, OnUnavailableDetails, OnUnavailableEventData$1 as OnUnavailableEventData, OnUnavailablePayload, OpenWalletAvailabilityOptions, OpenWalletAvailabilityResult, OpenWalletBaseEvent, OpenWalletDataEvent, OpenWalletEventType, OpenWalletMeta, PaypalWalletMeta, ProcessAuthenticationResponse, Shipping, VaultDisplayStyle, OnClickEventData as WalletExpressOnClickEventData, OnCloseEventData as WalletExpressOnCloseEventData, OnErrorEventData as WalletExpressOnErrorEventData, OnPaymentErrorEventData as WalletExpressOnPaymentErrorEventData, OnPaymentInReviewEventData as WalletExpressOnPaymentInReviewEventData, OnPaymentSuccessfulEventData as WalletExpressOnPaymentSuccessfulEventData, OnShippingAddressChangeEventData as WalletExpressOnShippingAddressChangeEventData, OnShippingAddressChangeEventResponse as WalletExpressOnShippingAddressChangeEventResponse, OnShippingOptionChangeEventData as WalletExpressOnShippingOptionChangeEventData, OnShippingOptionChangeEventResponse as WalletExpressOnShippingOptionChangeEventResponse, OnUnavailableEventData as WalletExpressOnUnavailableEventData, WalletType, WidgetEventMap, WidgetEventName };
7559
+ export { AfterpayCheckoutButton, AfterpayOnSiteMessaging, Api, ApplePayOpenWalletButton, ApplePayWalletButtonExpress, CANVAS_3DS_EVENT, CARD_SCHEME, CHECKOUT_BUTTON_EVENT, EVENT$2 as CHECKOUT_EVENT, Canvas3ds, Canvas3dsTokenFormat, Checkout, CheckoutActionCode, ClickToPay, Configuration, ContactShippingEditingMode, ELEMENT, ERROR_OPERATION, EVENT$3 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, FraudPreventionService, GooglePayOpenWalletButton, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, InstructionDebugger, MultiWidget, OpenWalletButtons, PAYMENT_EXPIRED, PAYMENT_FAILURE, PAYMENT_SUCCESSFUL, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TOKEN_TYPE, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, VaultDisplayWidget, EVENT as WALLET_BUTTONS_EXPRESS_EVENT, WALLET_TYPES, WalletButtons, ZipmoneyCheckoutButton };
7560
+ export type { ApplePayAvailabilityOptions, ApplePayAvailabilityResult, ApplePayButtonStyle, ApplePayButtonType, ApplePayCapabilityToken, ApplePayCredentialStatus, ApplePayOpenWalletMeta, ApplePayWalletMeta, AppleShippingType, BaseWalletMeta, Billing, Canvas3dsAuthPayload, Canvas3dsChallengeCompletedPayload, Canvas3dsChallengeLoadedPayload, Canvas3dsChargeAuthEventPayload, Canvas3dsErrorEventPayload, Canvas3dsErrorPayload, Canvas3dsEventMap, Canvas3dsEventName, CheckoutIntentTokenPayload, CheckoutPaymentExpiredPayload, CheckoutPaymentFailurePayload, CheckoutPaymentSuccessPayload, CheckoutResponse, CreateOTTData, CreateOTTRequest, CreateOTTResponse, CreateSessionRequest, CreateSessionResponse, EventTypes, FraudPreventionEvent, FraudPreventionEventType, FraudPreventionProvider, GooglePayAvailabilityOptions, GooglePayAvailabilityResult, GooglePayCardConfig, GooglePayOpenWalletMeta, GooglePayOpenWalletMetaStyles, HandleResponseInterface, IApplePayShippingOption, ICheckout, IClickToPayMeta, IDetails, IElementStyleInput, IEventAfterLoadData, IEventCheckoutFinishData, IEventData$1 as IEventData, IEventError, IEventFinishData, IEventMetaData, IEventSizeData, IFormValidation, IOpenWalletProvider, IPayPalMeta, IStyles$1 as IStyles, ITexts, ITokenStandalone3DS, IWalletMeta, IWalletOnClickEvent, IWalletPaymentSuccessfulEvent, IWalletUnavailableEvent, IWalletUpdateData, IWalletUpdateEvent, OTTResponse, OnCancelEventData, OnClickEventData$1 as OnClickEventData, OnCreateOTTErrorEventData, OnCreateOTTErrorPayload, OnCreateOTTSuccessPayload, OnCreateOTTSuccessfulEventData, OnErrorEventData$1 as OnErrorEventData, OnErrorPayload, OnLoadedEventData, OnUnavailableDetails, OnUnavailableEventData$1 as OnUnavailableEventData, OnUnavailablePayload, OpenWalletAvailabilityOptions, OpenWalletAvailabilityResult, OpenWalletBaseEvent, OpenWalletDataEvent, OpenWalletEventType, OpenWalletMeta, PaypalWalletMeta, ProcessAuthenticationResponse, Shipping, VaultDisplayStyle, OnClickEventData as WalletExpressOnClickEventData, OnCloseEventData as WalletExpressOnCloseEventData, OnErrorEventData as WalletExpressOnErrorEventData, OnPaymentErrorEventData as WalletExpressOnPaymentErrorEventData, OnPaymentInReviewEventData as WalletExpressOnPaymentInReviewEventData, OnPaymentSuccessfulEventData as WalletExpressOnPaymentSuccessfulEventData, OnShippingAddressChangeEventData as WalletExpressOnShippingAddressChangeEventData, OnShippingAddressChangeEventResponse as WalletExpressOnShippingAddressChangeEventResponse, OnShippingOptionChangeEventData as WalletExpressOnShippingOptionChangeEventData, OnShippingOptionChangeEventResponse as WalletExpressOnShippingOptionChangeEventResponse, OnUnavailableEventData as WalletExpressOnUnavailableEventData, WalletType, WidgetEventMap, WidgetEventName };