@paydock/client-sdk 1.127.1-beta → 1.128.2

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 (64) hide show
  1. package/README.md +1016 -3980
  2. package/bundles/index.cjs +100 -54
  3. package/bundles/index.cjs.d.ts +13 -2
  4. package/bundles/index.mjs +100 -54
  5. package/bundles/index.mjs.d.ts +13 -2
  6. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -1
  7. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -1
  8. package/bundles/types/components/param.d.ts +2 -0
  9. package/bundles/types/components/param.d.ts.map +1 -1
  10. package/bundles/types/index-cba.d.ts +11 -11
  11. package/bundles/types/index-cba.d.ts.map +1 -1
  12. package/bundles/types/index.d.ts +11 -11
  13. package/bundles/types/index.d.ts.map +1 -1
  14. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +2 -1
  15. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -1
  16. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +6 -4
  17. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
  18. package/bundles/types/wallet-buttons/index.d.ts +6 -6
  19. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +2 -2
  20. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -1
  21. package/bundles/types/wallet-buttons-express/index.d.ts +3 -3
  22. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
  23. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -1
  24. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +2 -2
  25. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -1
  26. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +2 -2
  27. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -1
  28. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +2 -2
  29. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -1
  30. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +2 -2
  31. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -1
  32. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +2 -2
  33. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -1
  34. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +2 -2
  35. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -1
  36. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -1
  37. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -1
  38. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -1
  39. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +2 -2
  40. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -1
  41. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +5 -5
  42. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  43. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -1
  44. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -1
  45. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +1 -1
  46. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
  47. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +4 -4
  48. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -1
  49. package/bundles/types/widget/multi-widget.d.ts +8 -0
  50. package/bundles/types/widget/multi-widget.d.ts.map +1 -1
  51. package/bundles/widget.umd.js +100 -54
  52. package/bundles/widget.umd.js.d.ts +13 -2
  53. package/bundles/widget.umd.js.min.d.ts +13 -2
  54. package/bundles/widget.umd.min.js +1 -1
  55. package/docs/api-checkout-button.md +0 -370
  56. package/docs/api-widget.md +0 -2110
  57. package/docs/checkout-examples.md +2 -127
  58. package/docs/license.md +1 -1
  59. package/docs/wallet-buttons-examples.md +3 -134
  60. package/docs/wallet-buttons.md +10 -10
  61. package/docs/wallet-cba-buttons-examples.md +1 -1
  62. package/package.json +1 -1
  63. package/slate.md +5 -524
  64. package/docs/api-vault-display.md +0 -94
@@ -958,7 +958,7 @@
958
958
  version: 'x-sdk-version',
959
959
  type: 'x-sdk-type'
960
960
  });
961
- SDK._version = 'v1.127.1-beta';
961
+ SDK._version = 'v1.128.2';
962
962
 
963
963
  /******************************************************************************
964
964
  Copyright (c) Microsoft Corporation.
@@ -5761,7 +5761,8 @@
5761
5761
  ADDRESS_COUNTRY: 'address_country',
5762
5762
  ADDRESS_CITY: 'address_city',
5763
5763
  ADDRESS_POSTCODE: 'address_postcode',
5764
- ADDRESS_COMPANY: 'address_company'
5764
+ ADDRESS_COMPANY: 'address_company',
5765
+ SAVE_CARD_CONSENT_ACCEPTED: 'save_card_consent_accepted'
5765
5766
  };
5766
5767
  var STYLE$2 = {
5767
5768
  BACKGROUND_COLOR: 'background_color',
@@ -8662,51 +8663,6 @@
8662
8663
  }]);
8663
8664
  }(PaymentSourceWidget);
8664
8665
 
8665
- /**
8666
- * List of available event's name in the Click To Pay checkout lifecycle
8667
- * @enum EVENT
8668
- *
8669
- * @type {object}
8670
- * @param {string} IFRAME_LOADED=iframeLoaded Initial event sent when IFrame is initially loaded.
8671
- * @param {string} CHECKOUT_READY=checkoutReady Event sent when checkout is loaded and ready to be used by customer. Leverage alongside [showCheckout](#SRC+showCheckout) and [hideCheckout](#SRC+hideCheckout).
8672
- * @param {string} CHECKOUT_POPUP_OPEN=checkoutPopupOpen Event sent when Click To Pay checkout flow is started, regardless of embedded or windowed mode.
8673
- * @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when Click To Pay checkout flow is closed, regardless of embedded or windowed mode.
8674
- * @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
8675
- * @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
8676
- */
8677
- var EVENT$3;
8678
- (function (EVENT) {
8679
- EVENT["IFRAME_LOADED"] = "iframeLoaded";
8680
- EVENT["CHECKOUT_READY"] = "checkoutReady";
8681
- EVENT["CHECKOUT_COMPLETED"] = "checkoutCompleted";
8682
- EVENT["CHECKOUT_ERROR"] = "checkoutError";
8683
- EVENT["CHECKOUT_POPUP_OPEN"] = "checkoutPopupOpen";
8684
- EVENT["CHECKOUT_POPUP_CLOSE"] = "checkoutPopupClose";
8685
- })(EVENT$3 || (EVENT$3 = {}));
8686
- /**
8687
- * List of available event data types
8688
- * @enum EVENT_DATA_TYPE
8689
- *
8690
- * @type {object}
8691
- * @param {string} CRITICAL_ERROR=CriticalError in this error scenario the checkout is understood to be in a non-recoverable state and should be closed by the merchant and give alternate payment options to the user
8692
- * @param {string} USER_ERROR=UserError in this error scenario the error in likely a user input error and the checkout is in a recoverable state, so the user will be kept within the checkout and can retry the flow
8693
- * @param {string} SUCCESS=Success
8694
- */
8695
- var EVENT_DATA_TYPE;
8696
- (function (EVENT_DATA_TYPE) {
8697
- EVENT_DATA_TYPE["CRITICAL_ERROR"] = "CriticalError";
8698
- EVENT_DATA_TYPE["USER_ERROR"] = "UserError";
8699
- EVENT_DATA_TYPE["SUCCESS"] = "Success";
8700
- })(EVENT_DATA_TYPE || (EVENT_DATA_TYPE = {}));
8701
- var STYLE = {
8702
- PRIMARY_BUTTON_COLOR: 'primary_button_color',
8703
- SECONDARY_BUTTON_COLOR: 'secondary_button_color',
8704
- PRIMARY_BUTTON_TEXT_COLOR: 'primary_button_text_color',
8705
- SECONDARY_BUTTON_TEXT_COLOR: 'secondary_button_text_color',
8706
- FONT_FAMILY: 'font_family',
8707
- ENABLE_SRC_POPUP: 'enable_src_popup'
8708
- };
8709
-
8710
8666
  /**
8711
8667
  * Interface for classes that represent a trigger data.
8712
8668
  * @interface ITriggerData
@@ -8760,6 +8716,51 @@
8760
8716
  }]);
8761
8717
  }();
8762
8718
 
8719
+ /**
8720
+ * List of available event's name in the Click To Pay checkout lifecycle
8721
+ * @enum EVENT
8722
+ *
8723
+ * @type {object}
8724
+ * @param {string} IFRAME_LOADED=iframeLoaded Initial event sent when IFrame is initially loaded.
8725
+ * @param {string} CHECKOUT_READY=checkoutReady Event sent when checkout is loaded and ready to be used by customer. Leverage alongside [showCheckout](#SRC+showCheckout) and [hideCheckout](#SRC+hideCheckout).
8726
+ * @param {string} CHECKOUT_POPUP_OPEN=checkoutPopupOpen Event sent when Click To Pay checkout flow is started, regardless of embedded or windowed mode.
8727
+ * @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when Click To Pay checkout flow is closed, regardless of embedded or windowed mode.
8728
+ * @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
8729
+ * @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
8730
+ */
8731
+ var EVENT$3;
8732
+ (function (EVENT) {
8733
+ EVENT["IFRAME_LOADED"] = "iframeLoaded";
8734
+ EVENT["CHECKOUT_READY"] = "checkoutReady";
8735
+ EVENT["CHECKOUT_COMPLETED"] = "checkoutCompleted";
8736
+ EVENT["CHECKOUT_ERROR"] = "checkoutError";
8737
+ EVENT["CHECKOUT_POPUP_OPEN"] = "checkoutPopupOpen";
8738
+ EVENT["CHECKOUT_POPUP_CLOSE"] = "checkoutPopupClose";
8739
+ })(EVENT$3 || (EVENT$3 = {}));
8740
+ /**
8741
+ * List of available event data types
8742
+ * @enum EVENT_DATA_TYPE
8743
+ *
8744
+ * @type {object}
8745
+ * @param {string} CRITICAL_ERROR=CriticalError in this error scenario the checkout is understood to be in a non-recoverable state and should be closed by the merchant and give alternate payment options to the user
8746
+ * @param {string} USER_ERROR=UserError in this error scenario the error in likely a user input error and the checkout is in a recoverable state, so the user will be kept within the checkout and can retry the flow
8747
+ * @param {string} SUCCESS=Success
8748
+ */
8749
+ var EVENT_DATA_TYPE;
8750
+ (function (EVENT_DATA_TYPE) {
8751
+ EVENT_DATA_TYPE["CRITICAL_ERROR"] = "CriticalError";
8752
+ EVENT_DATA_TYPE["USER_ERROR"] = "UserError";
8753
+ EVENT_DATA_TYPE["SUCCESS"] = "Success";
8754
+ })(EVENT_DATA_TYPE || (EVENT_DATA_TYPE = {}));
8755
+ var STYLE = {
8756
+ PRIMARY_BUTTON_COLOR: 'primary_button_color',
8757
+ SECONDARY_BUTTON_COLOR: 'secondary_button_color',
8758
+ PRIMARY_BUTTON_TEXT_COLOR: 'primary_button_text_color',
8759
+ SECONDARY_BUTTON_TEXT_COLOR: 'secondary_button_text_color',
8760
+ FONT_FAMILY: 'font_family',
8761
+ ENABLE_SRC_POPUP: 'enable_src_popup'
8762
+ };
8763
+
8763
8764
  var PerformanceService = /*#__PURE__*/function () {
8764
8765
  function PerformanceService() {
8765
8766
  _classCallCheck(this, PerformanceService);
@@ -8865,9 +8866,20 @@
8865
8866
  var ClickToPaySRC = /*#__PURE__*/function () {
8866
8867
  function ClickToPaySRC(iframe_selector, service_id, public_key, meta, eventEmitter, autoResize, env, alias) {
8867
8868
  _classCallCheck(this, ClickToPaySRC);
8869
+ var _a, _b, _c;
8868
8870
  this.meta = meta;
8869
8871
  this.eventEmitter = eventEmitter;
8870
8872
  this.autoResize = autoResize;
8873
+ this.isIframeLoaded = false;
8874
+ this.injectedCustomerData = null;
8875
+ if (meta.dpa_config) {
8876
+ var hasAllRawDpaConfig = !!(((_a = this.meta.dpa_config) === null || _a === void 0 ? void 0 : _a.dpa_id) && ((_b = this.meta.dpa_config) === null || _b === void 0 ? void 0 : _b.dpa_name) && ((_c = this.meta.dpa_config) === null || _c === void 0 ? void 0 : _c.dpa_supported_card_schemes));
8877
+ // if doesnt have all fields remove dpa_config from meta
8878
+ if (!hasAllRawDpaConfig) {
8879
+ console.warn('DPA config is missing some required fields, removing it from meta');
8880
+ delete meta.dpa_config;
8881
+ }
8882
+ }
8871
8883
  this.link = new Link(MASTERCARD_SRC);
8872
8884
  this.link.setParams(_extends({
8873
8885
  service_id: service_id,
@@ -8930,7 +8942,12 @@
8930
8942
  if (iframeElement) {
8931
8943
  iframeElement.setAttribute('allow', 'payment; accelerometer;');
8932
8944
  iframeElement.onload = function () {
8933
- return _this2.eventEmitter.emit(EVENT$3.IFRAME_LOADED, {});
8945
+ _this2.isIframeLoaded = true;
8946
+ _this2.eventEmitter.emit(EVENT$3.IFRAME_LOADED, {});
8947
+ if (_this2.injectedCustomerData) {
8948
+ _this2.injectCustomerData(_this2.injectedCustomerData);
8949
+ _this2.injectedCustomerData = null;
8950
+ }
8934
8951
  };
8935
8952
  }
8936
8953
  }
@@ -8981,6 +8998,10 @@
8981
8998
  }, {
8982
8999
  key: "injectCustomerData",
8983
9000
  value: function injectCustomerData(customerData) {
9001
+ if (!this.isIframeLoaded) {
9002
+ this.injectedCustomerData = customerData;
9003
+ return;
9004
+ }
8984
9005
  this.trigger.push(TRIGGER$1.INJECT_CUSTOMER_DATA, {
8985
9006
  customer: customerData
8986
9007
  });
@@ -9174,6 +9195,14 @@
9174
9195
  _this.public_key_or_access_token = public_key_or_access_token;
9175
9196
  _this.meta = meta;
9176
9197
  _this.holdingForCustomerData = false;
9198
+ _this.pendingCustomerData = null;
9199
+ // Dequeue customer data only when the iframe has loaded
9200
+ _this.on('iframeLoaded', function () {
9201
+ if (_this.pendingCustomerData && _this.provider) {
9202
+ _this.provider.injectCustomerData(_this.pendingCustomerData);
9203
+ _this.pendingCustomerData = null;
9204
+ }
9205
+ });
9177
9206
  return _this;
9178
9207
  }
9179
9208
  /**
@@ -9183,7 +9212,9 @@
9183
9212
  return _createClass(ClickToPay, [{
9184
9213
  key: "load",
9185
9214
  value: function load() {
9186
- if (this.provider) return;
9215
+ if (this.provider) {
9216
+ return;
9217
+ }
9187
9218
  this.meta.customizations = this.style;
9188
9219
  this.holdingForCustomerData = !!this.meta.hold_for_customer_data;
9189
9220
  this.provider = new ClickToPaySRC(this.iframe_selector, this.service_id, this.public_key_or_access_token, this.meta, this.eventEmitter, this.autoResize, this.env, this.alias);
@@ -9208,7 +9239,7 @@
9208
9239
  throw new Error('Invalid customer data format. Must include at least email or phone.');
9209
9240
  }
9210
9241
  if (!this.provider) {
9211
- throw new Error('Widget not initialized. Call load() first.');
9242
+ throw new Error('ClickToPay is not ready. Please call `load` method first.');
9212
9243
  }
9213
9244
  this.provider.injectCustomerData(customerData);
9214
9245
  }
@@ -13186,7 +13217,7 @@
13186
13217
  ON_CHECKOUT_CLOSE: EventEnum.ON_CHECKOUT_CLOSE
13187
13218
  };
13188
13219
  /**
13189
- * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)
13220
+ * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay V2, Paypal, Afterpay)
13190
13221
  * @constructor
13191
13222
  *
13192
13223
  * @example
@@ -13303,7 +13334,7 @@
13303
13334
  }
13304
13335
  /**
13305
13336
  * Triggers the update process of the wallet, if available.
13306
- * Currently supported by Flypay, Paypal and ApplePay/GooglePay via MPGS Wallets.
13337
+ * Currently supported by Paypal and ApplePay/GooglePay via MPGS Wallets.
13307
13338
  *
13308
13339
  * @example
13309
13340
  * var button = new WalletButtons(
@@ -13423,7 +13454,7 @@
13423
13454
  * });
13424
13455
  * // or
13425
13456
  * button.on('unavailable').then(function () {
13426
- * console.log('No button is available);
13457
+ * console.log('No button is available');
13427
13458
  * });
13428
13459
  *
13429
13460
  * @param {string} eventName - Available event names [EVENT]{@link EVENT}
@@ -15177,6 +15208,21 @@
15177
15208
  error: error
15178
15209
  });
15179
15210
  }
15211
+ /**
15212
+ * The Current method can set a consent checkbox to save card
15213
+ *
15214
+ * @example
15215
+ * widget.enableSaveCardConsentCheckbox();
15216
+ *
15217
+ */
15218
+ }, {
15219
+ key: "enableSaveCardConsentCheckbox",
15220
+ value: function enableSaveCardConsentCheckbox() {
15221
+ var _a, _b, _c;
15222
+ if (((_c = (_b = (_a = this.configs[0]) === null || _a === void 0 ? void 0 : _a.getConfigs()) === null || _b === void 0 ? void 0 : _b.predefined_fields) === null || _c === void 0 ? void 0 : _c.type) === 'card') {
15223
+ this.setFormValue('save_card_consent_accepted', 'false');
15224
+ }
15225
+ }
15180
15226
  }]);
15181
15227
  }();
15182
15228
 
@@ -19274,7 +19320,7 @@
19274
19320
  }]);
19275
19321
  }();
19276
19322
 
19277
- window.postMessage("PAYDOCK_PAYMENTS_WIDGET_LOADED");
19323
+ window.postMessage('PAYDOCK_PAYMENTS_WIDGET_LOADED');
19278
19324
 
19279
19325
  class Timer {
19280
19326
  constructor(opts, ms) {
@@ -281,6 +281,7 @@ declare const FORM_FIELD: {
281
281
  ADDRESS_CITY: string;
282
282
  ADDRESS_POSTCODE: string;
283
283
  ADDRESS_COMPANY: string;
284
+ SAVE_CARD_CONSENT_ACCEPTED: string;
284
285
  };
285
286
  declare const STYLE: {
286
287
  BACKGROUND_COLOR: string;
@@ -455,6 +456,7 @@ interface IParams extends IStyles$1, ITexts, ICommonParams {
455
456
  vault_display_token?: string;
456
457
  sdk_origin?: boolean;
457
458
  hide_ui_errors?: boolean;
459
+ save_card_consent_accepted?: string;
458
460
  }
459
461
  interface ICountryPhoneMask {
460
462
  preferred_countries?: string[];
@@ -1215,6 +1217,14 @@ declare class MultiWidget {
1215
1217
  setLanguage(code: any): void;
1216
1218
  getLink(): Link;
1217
1219
  protected handleErrorEvent(event: EventTypes, error: IEventError, purpose: PURPOSE): void;
1220
+ /**
1221
+ * The Current method can set a consent checkbox to save card
1222
+ *
1223
+ * @example
1224
+ * widget.enableSaveCardConsentCheckbox();
1225
+ *
1226
+ */
1227
+ enableSaveCardConsentCheckbox(): void;
1218
1228
  }
1219
1229
 
1220
1230
  interface ITriggerData {
@@ -3203,6 +3213,7 @@ declare class ClickToPay extends SRC {
3203
3213
  protected public_key_or_access_token: string;
3204
3214
  protected meta: IClickToPayMeta;
3205
3215
  protected holdingForCustomerData: boolean;
3216
+ private pendingCustomerData;
3206
3217
  /** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
3207
3218
  /**
3208
3219
  * The final method after configuring the SRC to start the load process of Click To Pay checkout
@@ -3442,7 +3453,7 @@ interface IWalletUpdateData {
3442
3453
  success: boolean;
3443
3454
  }
3444
3455
  /**
3445
- * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)
3456
+ * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay V2, Paypal, Afterpay)
3446
3457
  * @constructor
3447
3458
  *
3448
3459
  * @example
@@ -3477,7 +3488,7 @@ declare class WalletButtons {
3477
3488
  load(): void;
3478
3489
  /**
3479
3490
  * Triggers the update process of the wallet, if available.
3480
- * Currently supported by Flypay, Paypal and ApplePay/GooglePay via MPGS Wallets.
3491
+ * Currently supported by Paypal and ApplePay/GooglePay via MPGS Wallets.
3481
3492
  *
3482
3493
  * @example
3483
3494
  * var button = new WalletButtons(
@@ -281,6 +281,7 @@ declare const FORM_FIELD: {
281
281
  ADDRESS_CITY: string;
282
282
  ADDRESS_POSTCODE: string;
283
283
  ADDRESS_COMPANY: string;
284
+ SAVE_CARD_CONSENT_ACCEPTED: string;
284
285
  };
285
286
  declare const STYLE: {
286
287
  BACKGROUND_COLOR: string;
@@ -455,6 +456,7 @@ interface IParams extends IStyles$1, ITexts, ICommonParams {
455
456
  vault_display_token?: string;
456
457
  sdk_origin?: boolean;
457
458
  hide_ui_errors?: boolean;
459
+ save_card_consent_accepted?: string;
458
460
  }
459
461
  interface ICountryPhoneMask {
460
462
  preferred_countries?: string[];
@@ -1215,6 +1217,14 @@ declare class MultiWidget {
1215
1217
  setLanguage(code: any): void;
1216
1218
  getLink(): Link;
1217
1219
  protected handleErrorEvent(event: EventTypes, error: IEventError, purpose: PURPOSE): void;
1220
+ /**
1221
+ * The Current method can set a consent checkbox to save card
1222
+ *
1223
+ * @example
1224
+ * widget.enableSaveCardConsentCheckbox();
1225
+ *
1226
+ */
1227
+ enableSaveCardConsentCheckbox(): void;
1218
1228
  }
1219
1229
 
1220
1230
  interface ITriggerData {
@@ -3203,6 +3213,7 @@ declare class ClickToPay extends SRC {
3203
3213
  protected public_key_or_access_token: string;
3204
3214
  protected meta: IClickToPayMeta;
3205
3215
  protected holdingForCustomerData: boolean;
3216
+ private pendingCustomerData;
3206
3217
  /** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
3207
3218
  /**
3208
3219
  * The final method after configuring the SRC to start the load process of Click To Pay checkout
@@ -3442,7 +3453,7 @@ interface IWalletUpdateData {
3442
3453
  success: boolean;
3443
3454
  }
3444
3455
  /**
3445
- * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)
3456
+ * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay V2, Paypal, Afterpay)
3446
3457
  * @constructor
3447
3458
  *
3448
3459
  * @example
@@ -3477,7 +3488,7 @@ declare class WalletButtons {
3477
3488
  load(): void;
3478
3489
  /**
3479
3490
  * Triggers the update process of the wallet, if available.
3480
- * Currently supported by Flypay, Paypal and ApplePay/GooglePay via MPGS Wallets.
3491
+ * Currently supported by Paypal and ApplePay/GooglePay via MPGS Wallets.
3481
3492
  *
3482
3493
  * @example
3483
3494
  * var button = new WalletButtons(