@paydock/client-sdk 1.127.0 → 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.
- package/README.md +1136 -3960
- package/bundles/index.cjs +292 -85
- package/bundles/index.cjs.d.ts +48 -3
- package/bundles/index.mjs +292 -85
- package/bundles/index.mjs.d.ts +48 -3
- package/bundles/types/checkout/checkout.d.ts +4 -4
- package/bundles/types/checkout/checkout.d.ts.map +1 -1
- package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -1
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +2 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/components/trigger.d.ts +2 -0
- package/bundles/types/components/trigger.d.ts.map +1 -1
- package/bundles/types/index-cba.d.ts +11 -11
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/index.d.ts +11 -11
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +24 -2
- package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/index.d.ts +7 -1
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +10 -2
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +15 -4
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +2 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/services/performance.service.d.ts +32 -0
- package/bundles/types/secure-remote-commerce/services/performance.service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index.d.ts +6 -6
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/index.d.ts +3 -3
- package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +2 -2
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +5 -5
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +1 -1
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +4 -4
- package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -1
- package/bundles/types/widget/multi-widget.d.ts +8 -0
- package/bundles/types/widget/multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +292 -85
- package/bundles/widget.umd.js.d.ts +48 -3
- package/bundles/widget.umd.js.min.d.ts +48 -3
- package/bundles/widget.umd.min.js +1 -1
- package/docs/api-checkout-button.md +0 -370
- package/docs/api-widget.md +1 -2110
- package/docs/checkout-examples.md +2 -127
- package/docs/click-to-pay-examples.md +109 -0
- package/docs/click-to-pay.md +31 -1
- package/docs/license.md +1 -1
- package/docs/wallet-buttons-examples.md +3 -134
- package/docs/wallet-buttons.md +10 -10
- package/docs/wallet-cba-buttons-examples.md +1 -1
- package/package.json +1 -1
- package/slate.md +114 -524
- package/docs/api-vault-display.md +0 -94
package/bundles/index.mjs
CHANGED
|
@@ -952,7 +952,7 @@ SDK.headerKeys = Object.freeze({
|
|
|
952
952
|
version: 'x-sdk-version',
|
|
953
953
|
type: 'x-sdk-type'
|
|
954
954
|
});
|
|
955
|
-
SDK._version = 'v1.
|
|
955
|
+
SDK._version = 'v1.128.2';
|
|
956
956
|
|
|
957
957
|
/******************************************************************************
|
|
958
958
|
Copyright (c) Microsoft Corporation.
|
|
@@ -5755,7 +5755,8 @@ var FORM_FIELD$1 = {
|
|
|
5755
5755
|
ADDRESS_COUNTRY: 'address_country',
|
|
5756
5756
|
ADDRESS_CITY: 'address_city',
|
|
5757
5757
|
ADDRESS_POSTCODE: 'address_postcode',
|
|
5758
|
-
ADDRESS_COMPANY: 'address_company'
|
|
5758
|
+
ADDRESS_COMPANY: 'address_company',
|
|
5759
|
+
SAVE_CARD_CONSENT_ACCEPTED: 'save_card_consent_accepted'
|
|
5759
5760
|
};
|
|
5760
5761
|
var STYLE$2 = {
|
|
5761
5762
|
BACKGROUND_COLOR: 'background_color',
|
|
@@ -8656,6 +8657,59 @@ var HtmlPaymentSourceWidget = /*#__PURE__*/function (_PaymentSourceWidget) {
|
|
|
8656
8657
|
}]);
|
|
8657
8658
|
}(PaymentSourceWidget);
|
|
8658
8659
|
|
|
8660
|
+
/**
|
|
8661
|
+
* Interface for classes that represent a trigger data.
|
|
8662
|
+
* @interface ITriggerData
|
|
8663
|
+
*
|
|
8664
|
+
* @param {string} [configuration_token]
|
|
8665
|
+
* @param {string} [tab_number]
|
|
8666
|
+
* @param {string} [elements]
|
|
8667
|
+
* @param {string} [form_values]
|
|
8668
|
+
* */
|
|
8669
|
+
/**
|
|
8670
|
+
* List of available triggers
|
|
8671
|
+
*
|
|
8672
|
+
* @type {object}
|
|
8673
|
+
* @param {string} SUBMIT_FORM=submit_form
|
|
8674
|
+
* @param {string} CHANGE_TAB=tab
|
|
8675
|
+
* @param {string} HIDE_ELEMENTS=hide_elements
|
|
8676
|
+
* @param {string} SHOW_ELEMENTS=show_elements
|
|
8677
|
+
* @param {string} REFRESH_CHECKOUT=refresh_checkout
|
|
8678
|
+
* @param {string} UPDATE_FORM_VALUES=update_form_values
|
|
8679
|
+
* @param {string} INIT_CHECKOUT=init_checkout
|
|
8680
|
+
* @param {string} INJECT_CUSTOMER_DATA=inject_customer_data
|
|
8681
|
+
*/
|
|
8682
|
+
var TRIGGER$1 = {
|
|
8683
|
+
SUBMIT_FORM: 'submit_form',
|
|
8684
|
+
CHANGE_TAB: 'tab',
|
|
8685
|
+
HIDE_ELEMENTS: 'hide_elements',
|
|
8686
|
+
SHOW_ELEMENTS: 'show_elements',
|
|
8687
|
+
REFRESH_CHECKOUT: 'refresh_checkout',
|
|
8688
|
+
UPDATE_FORM_VALUES: 'update_form_values',
|
|
8689
|
+
INIT_CHECKOUT: 'init_checkout',
|
|
8690
|
+
INJECT_CUSTOMER_DATA: 'inject_customer_data'
|
|
8691
|
+
};
|
|
8692
|
+
var Trigger = /*#__PURE__*/function () {
|
|
8693
|
+
function Trigger(iFrame) {
|
|
8694
|
+
_classCallCheck(this, Trigger);
|
|
8695
|
+
this.iFrame = iFrame;
|
|
8696
|
+
}
|
|
8697
|
+
return _createClass(Trigger, [{
|
|
8698
|
+
key: "push",
|
|
8699
|
+
value: function push(triggerName) {
|
|
8700
|
+
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8701
|
+
if (!this.iFrame.isExist()) return;
|
|
8702
|
+
if (ObjectHelper.values(TRIGGER$1).indexOf(triggerName) === -1) console.warn('unsupported trigger type');
|
|
8703
|
+
var body = {
|
|
8704
|
+
trigger: triggerName,
|
|
8705
|
+
destination: 'widget.paydock',
|
|
8706
|
+
data: data
|
|
8707
|
+
};
|
|
8708
|
+
this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(body), '*');
|
|
8709
|
+
}
|
|
8710
|
+
}]);
|
|
8711
|
+
}();
|
|
8712
|
+
|
|
8659
8713
|
/**
|
|
8660
8714
|
* List of available event's name in the Click To Pay checkout lifecycle
|
|
8661
8715
|
* @enum EVENT
|
|
@@ -8701,12 +8755,125 @@ var STYLE = {
|
|
|
8701
8755
|
ENABLE_SRC_POPUP: 'enable_src_popup'
|
|
8702
8756
|
};
|
|
8703
8757
|
|
|
8758
|
+
var PerformanceService = /*#__PURE__*/function () {
|
|
8759
|
+
function PerformanceService() {
|
|
8760
|
+
_classCallCheck(this, PerformanceService);
|
|
8761
|
+
}
|
|
8762
|
+
return _createClass(PerformanceService, null, [{
|
|
8763
|
+
key: "initialize",
|
|
8764
|
+
value: function initialize(env) {
|
|
8765
|
+
var _this = this;
|
|
8766
|
+
performance.now();
|
|
8767
|
+
// Set environment configuration
|
|
8768
|
+
var envInstance = new Env(API_URL, env);
|
|
8769
|
+
var finalUrl = envInstance.getConf().url;
|
|
8770
|
+
// Add performance optimizations in parallel
|
|
8771
|
+
Promise.all([
|
|
8772
|
+
// Add preconnect
|
|
8773
|
+
new Promise(function (resolve) {
|
|
8774
|
+
_this.addLinkTag('preconnect', finalUrl, true);
|
|
8775
|
+
resolve();
|
|
8776
|
+
}),
|
|
8777
|
+
// Add DNS prefetch
|
|
8778
|
+
new Promise(function (resolve) {
|
|
8779
|
+
_this.addLinkTag('dns-prefetch', finalUrl);
|
|
8780
|
+
resolve();
|
|
8781
|
+
}),
|
|
8782
|
+
// Send warmup request
|
|
8783
|
+
new Promise(function (resolve) {
|
|
8784
|
+
if (window.fetch) {
|
|
8785
|
+
fetch("".concat(finalUrl, "/v1/echo"), {
|
|
8786
|
+
mode: 'no-cors',
|
|
8787
|
+
keepalive: true
|
|
8788
|
+
})["catch"](function () {})["finally"](resolve);
|
|
8789
|
+
} else {
|
|
8790
|
+
resolve();
|
|
8791
|
+
}
|
|
8792
|
+
})]);
|
|
8793
|
+
}
|
|
8794
|
+
/**
|
|
8795
|
+
* Dynamically adds or updates a `<link>` tag in the document's `<head>`.
|
|
8796
|
+
* This utility is designed for performance optimizations like `dns-prefetch` and `preconnect`.
|
|
8797
|
+
*
|
|
8798
|
+
* @param rel - The relationship type of the link (e.g., 'dns-prefetch', 'preconnect').
|
|
8799
|
+
* @param href - The URL for the resource.
|
|
8800
|
+
* @param crossorigin - Specifies if the resource should be fetched with a CORS request. Defaults to false.
|
|
8801
|
+
*/
|
|
8802
|
+
}, {
|
|
8803
|
+
key: "addLinkTag",
|
|
8804
|
+
value: function addLinkTag(rel, href) {
|
|
8805
|
+
var crossorigin = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
8806
|
+
try {
|
|
8807
|
+
var existingTag = document.head.querySelector("link[rel=\"".concat(rel, "\"][href*=\"").concat(new URL(href).host, "\"]"));
|
|
8808
|
+
if (existingTag) {
|
|
8809
|
+
return;
|
|
8810
|
+
}
|
|
8811
|
+
var linkElement = this.createLinkElement(rel, href, crossorigin);
|
|
8812
|
+
document.head.prepend(linkElement);
|
|
8813
|
+
} catch (error) {
|
|
8814
|
+
console.error("\u274C [Performance] Failed to add ".concat(rel, " tag for ").concat(href, "."), error);
|
|
8815
|
+
}
|
|
8816
|
+
}
|
|
8817
|
+
/**
|
|
8818
|
+
* Creates and configures a new HTMLLinkElement.
|
|
8819
|
+
*
|
|
8820
|
+
* @param rel - The relationship type.
|
|
8821
|
+
* @param href - The resource URL.
|
|
8822
|
+
* @param crossorigin - The CORS setting.
|
|
8823
|
+
* @returns A configured HTMLLinkElement.
|
|
8824
|
+
* @private
|
|
8825
|
+
*/
|
|
8826
|
+
}, {
|
|
8827
|
+
key: "createLinkElement",
|
|
8828
|
+
value: function createLinkElement(rel, href, crossorigin) {
|
|
8829
|
+
var linkElement = document.createElement('link');
|
|
8830
|
+
linkElement.rel = rel;
|
|
8831
|
+
linkElement.href = this.determineHref(rel, href);
|
|
8832
|
+
if (crossorigin) {
|
|
8833
|
+
linkElement.crossOrigin = 'anonymous';
|
|
8834
|
+
}
|
|
8835
|
+
return linkElement;
|
|
8836
|
+
}
|
|
8837
|
+
/**
|
|
8838
|
+
* Determines the appropriate href value based on the link relationship.
|
|
8839
|
+
*
|
|
8840
|
+
* @param rel - The relationship type.
|
|
8841
|
+
* @param originalHref - The original URL.
|
|
8842
|
+
* @returns The processed href string.
|
|
8843
|
+
* @private
|
|
8844
|
+
*/
|
|
8845
|
+
}, {
|
|
8846
|
+
key: "determineHref",
|
|
8847
|
+
value: function determineHref(rel, originalHref) {
|
|
8848
|
+
if (rel === 'dns-prefetch') {
|
|
8849
|
+
// For dns-prefetch, a protocol-relative URL to the host is sufficient.
|
|
8850
|
+
var _URL = new URL(originalHref),
|
|
8851
|
+
host = _URL.host;
|
|
8852
|
+
return "//".concat(host);
|
|
8853
|
+
}
|
|
8854
|
+
// For others, like preconnect, the full original URL is required.
|
|
8855
|
+
return originalHref;
|
|
8856
|
+
}
|
|
8857
|
+
}]);
|
|
8858
|
+
}();
|
|
8859
|
+
|
|
8704
8860
|
var ClickToPaySRC = /*#__PURE__*/function () {
|
|
8705
8861
|
function ClickToPaySRC(iframe_selector, service_id, public_key, meta, eventEmitter, autoResize, env, alias) {
|
|
8706
8862
|
_classCallCheck(this, ClickToPaySRC);
|
|
8863
|
+
var _a, _b, _c;
|
|
8707
8864
|
this.meta = meta;
|
|
8708
8865
|
this.eventEmitter = eventEmitter;
|
|
8709
8866
|
this.autoResize = autoResize;
|
|
8867
|
+
this.isIframeLoaded = false;
|
|
8868
|
+
this.injectedCustomerData = null;
|
|
8869
|
+
if (meta.dpa_config) {
|
|
8870
|
+
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));
|
|
8871
|
+
// if doesnt have all fields remove dpa_config from meta
|
|
8872
|
+
if (!hasAllRawDpaConfig) {
|
|
8873
|
+
console.warn('DPA config is missing some required fields, removing it from meta');
|
|
8874
|
+
delete meta.dpa_config;
|
|
8875
|
+
}
|
|
8876
|
+
}
|
|
8710
8877
|
this.link = new Link(MASTERCARD_SRC);
|
|
8711
8878
|
this.link.setParams(_extends({
|
|
8712
8879
|
service_id: service_id,
|
|
@@ -8723,6 +8890,7 @@ var ClickToPaySRC = /*#__PURE__*/function () {
|
|
|
8723
8890
|
if (env) this.link.setEnv(env, alias);
|
|
8724
8891
|
this.iFrameContainer = new Container(iframe_selector);
|
|
8725
8892
|
this.iFrame = new IFrame(this.iFrameContainer);
|
|
8893
|
+
this.trigger = new Trigger(this.iFrame);
|
|
8726
8894
|
this.iFrameEvent = new IFrameEvent(window);
|
|
8727
8895
|
this.setupIFrameEvents();
|
|
8728
8896
|
}
|
|
@@ -8758,6 +8926,8 @@ var ClickToPaySRC = /*#__PURE__*/function () {
|
|
|
8758
8926
|
key: "load",
|
|
8759
8927
|
value: function load() {
|
|
8760
8928
|
var _this2 = this;
|
|
8929
|
+
// Initialize performance optimizations when environment is guaranteed to be final
|
|
8930
|
+
PerformanceService.initialize(this.link.getEnv());
|
|
8761
8931
|
this.iFrame.load(this.link.getUrl(), {
|
|
8762
8932
|
title: 'Click To Pay checkout'
|
|
8763
8933
|
});
|
|
@@ -8766,7 +8936,12 @@ var ClickToPaySRC = /*#__PURE__*/function () {
|
|
|
8766
8936
|
if (iframeElement) {
|
|
8767
8937
|
iframeElement.setAttribute('allow', 'payment; accelerometer;');
|
|
8768
8938
|
iframeElement.onload = function () {
|
|
8769
|
-
|
|
8939
|
+
_this2.isIframeLoaded = true;
|
|
8940
|
+
_this2.eventEmitter.emit(EVENT$3.IFRAME_LOADED, {});
|
|
8941
|
+
if (_this2.injectedCustomerData) {
|
|
8942
|
+
_this2.injectCustomerData(_this2.injectedCustomerData);
|
|
8943
|
+
_this2.injectedCustomerData = null;
|
|
8944
|
+
}
|
|
8770
8945
|
};
|
|
8771
8946
|
}
|
|
8772
8947
|
}
|
|
@@ -8809,6 +8984,22 @@ var ClickToPaySRC = /*#__PURE__*/function () {
|
|
|
8809
8984
|
}
|
|
8810
8985
|
});
|
|
8811
8986
|
}
|
|
8987
|
+
/**
|
|
8988
|
+
* Send customer data to iframe using the established trigger pattern
|
|
8989
|
+
*
|
|
8990
|
+
* @param {CustomerData} customerData - Customer data to inject
|
|
8991
|
+
*/
|
|
8992
|
+
}, {
|
|
8993
|
+
key: "injectCustomerData",
|
|
8994
|
+
value: function injectCustomerData(customerData) {
|
|
8995
|
+
if (!this.isIframeLoaded) {
|
|
8996
|
+
this.injectedCustomerData = customerData;
|
|
8997
|
+
return;
|
|
8998
|
+
}
|
|
8999
|
+
this.trigger.push(TRIGGER$1.INJECT_CUSTOMER_DATA, {
|
|
9000
|
+
customer: customerData
|
|
9001
|
+
});
|
|
9002
|
+
}
|
|
8812
9003
|
}]);
|
|
8813
9004
|
}();
|
|
8814
9005
|
|
|
@@ -8997,74 +9188,75 @@ var ClickToPay = /*#__PURE__*/function (_SRC) {
|
|
|
8997
9188
|
_this.service_id = service_id;
|
|
8998
9189
|
_this.public_key_or_access_token = public_key_or_access_token;
|
|
8999
9190
|
_this.meta = meta;
|
|
9191
|
+
_this.holdingForCustomerData = false;
|
|
9192
|
+
_this.pendingCustomerData = null;
|
|
9193
|
+
// Dequeue customer data only when the iframe has loaded
|
|
9194
|
+
_this.on('iframeLoaded', function () {
|
|
9195
|
+
if (_this.pendingCustomerData && _this.provider) {
|
|
9196
|
+
_this.provider.injectCustomerData(_this.pendingCustomerData);
|
|
9197
|
+
_this.pendingCustomerData = null;
|
|
9198
|
+
}
|
|
9199
|
+
});
|
|
9000
9200
|
return _this;
|
|
9001
9201
|
}
|
|
9002
9202
|
/**
|
|
9003
9203
|
* The final method after configuring the SRC to start the load process of Click To Pay checkout
|
|
9004
|
-
*
|
|
9005
9204
|
*/
|
|
9006
9205
|
_inherits(ClickToPay, _SRC);
|
|
9007
9206
|
return _createClass(ClickToPay, [{
|
|
9008
9207
|
key: "load",
|
|
9009
9208
|
value: function load() {
|
|
9010
|
-
if (this.provider)
|
|
9209
|
+
if (this.provider) {
|
|
9210
|
+
return;
|
|
9211
|
+
}
|
|
9011
9212
|
this.meta.customizations = this.style;
|
|
9213
|
+
this.holdingForCustomerData = !!this.meta.hold_for_customer_data;
|
|
9012
9214
|
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);
|
|
9013
9215
|
this.provider.load();
|
|
9014
9216
|
}
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
value: function push(triggerName) {
|
|
9056
|
-
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9057
|
-
if (!this.iFrame.isExist()) return;
|
|
9058
|
-
if (ObjectHelper.values(TRIGGER$1).indexOf(triggerName) === -1) console.warn('unsupported trigger type');
|
|
9059
|
-
var body = {
|
|
9060
|
-
trigger: triggerName,
|
|
9061
|
-
destination: 'widget.paydock',
|
|
9062
|
-
data: data
|
|
9063
|
-
};
|
|
9064
|
-
this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(body), '*');
|
|
9217
|
+
/**
|
|
9218
|
+
* Inject customer data after widget initialization via postMessage
|
|
9219
|
+
*
|
|
9220
|
+
* @param {Customer} customerData - Customer data to inject
|
|
9221
|
+
* @throws {Error} When customer data is invalid or widget is not ready
|
|
9222
|
+
* @example
|
|
9223
|
+
* widget.injectCustomerData({
|
|
9224
|
+
* email: 'user@example.com',
|
|
9225
|
+
* first_name: 'John',
|
|
9226
|
+
* last_name: 'Doe'
|
|
9227
|
+
* });
|
|
9228
|
+
*/
|
|
9229
|
+
}, {
|
|
9230
|
+
key: "injectCustomerData",
|
|
9231
|
+
value: function injectCustomerData(customerData) {
|
|
9232
|
+
if (!this.validateCustomerData(customerData)) {
|
|
9233
|
+
throw new Error('Invalid customer data format. Must include at least email or phone.');
|
|
9234
|
+
}
|
|
9235
|
+
if (!this.provider) {
|
|
9236
|
+
throw new Error('ClickToPay is not ready. Please call `load` method first.');
|
|
9237
|
+
}
|
|
9238
|
+
this.provider.injectCustomerData(customerData);
|
|
9239
|
+
}
|
|
9240
|
+
/**
|
|
9241
|
+
* Validate customer data format
|
|
9242
|
+
*
|
|
9243
|
+
* @private
|
|
9244
|
+
* @param {Customer} customerData - Customer data to validate
|
|
9245
|
+
* @returns {boolean} True if valid
|
|
9246
|
+
*/
|
|
9247
|
+
}, {
|
|
9248
|
+
key: "validateCustomerData",
|
|
9249
|
+
value: function validateCustomerData(customerData) {
|
|
9250
|
+
if (!customerData || _typeof$1(customerData) !== 'object') {
|
|
9251
|
+
return false;
|
|
9252
|
+
}
|
|
9253
|
+
// Check if at least email or phone is provided
|
|
9254
|
+
var hasEmail = customerData.email && typeof customerData.email === 'string';
|
|
9255
|
+
var hasPhone = customerData.phone && _typeof$1(customerData.phone) === 'object' && customerData.phone.phone && typeof customerData.phone.phone === 'string';
|
|
9256
|
+
return hasEmail || hasPhone;
|
|
9065
9257
|
}
|
|
9066
9258
|
}]);
|
|
9067
|
-
}();
|
|
9259
|
+
}(SRC);
|
|
9068
9260
|
|
|
9069
9261
|
var VAULT_DISPLAY_EVENT;
|
|
9070
9262
|
(function (VAULT_DISPLAY_EVENT) {
|
|
@@ -13019,7 +13211,7 @@ var EVENT$2 = {
|
|
|
13019
13211
|
ON_CHECKOUT_CLOSE: EventEnum.ON_CHECKOUT_CLOSE
|
|
13020
13212
|
};
|
|
13021
13213
|
/**
|
|
13022
|
-
* Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay
|
|
13214
|
+
* 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)
|
|
13023
13215
|
* @constructor
|
|
13024
13216
|
*
|
|
13025
13217
|
* @example
|
|
@@ -13136,7 +13328,7 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
13136
13328
|
}
|
|
13137
13329
|
/**
|
|
13138
13330
|
* Triggers the update process of the wallet, if available.
|
|
13139
|
-
* Currently supported by
|
|
13331
|
+
* Currently supported by Paypal and ApplePay/GooglePay via MPGS Wallets.
|
|
13140
13332
|
*
|
|
13141
13333
|
* @example
|
|
13142
13334
|
* var button = new WalletButtons(
|
|
@@ -13256,7 +13448,7 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
13256
13448
|
* });
|
|
13257
13449
|
* // or
|
|
13258
13450
|
* button.on('unavailable').then(function () {
|
|
13259
|
-
* console.log('No button is available);
|
|
13451
|
+
* console.log('No button is available');
|
|
13260
13452
|
* });
|
|
13261
13453
|
*
|
|
13262
13454
|
* @param {string} eventName - Available event names [EVENT]{@link EVENT}
|
|
@@ -15010,6 +15202,21 @@ var MultiWidget = /*#__PURE__*/function () {
|
|
|
15010
15202
|
error: error
|
|
15011
15203
|
});
|
|
15012
15204
|
}
|
|
15205
|
+
/**
|
|
15206
|
+
* The Current method can set a consent checkbox to save card
|
|
15207
|
+
*
|
|
15208
|
+
* @example
|
|
15209
|
+
* widget.enableSaveCardConsentCheckbox();
|
|
15210
|
+
*
|
|
15211
|
+
*/
|
|
15212
|
+
}, {
|
|
15213
|
+
key: "enableSaveCardConsentCheckbox",
|
|
15214
|
+
value: function enableSaveCardConsentCheckbox() {
|
|
15215
|
+
var _a, _b, _c;
|
|
15216
|
+
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') {
|
|
15217
|
+
this.setFormValue('save_card_consent_accepted', 'false');
|
|
15218
|
+
}
|
|
15219
|
+
}
|
|
15013
15220
|
}]);
|
|
15014
15221
|
}();
|
|
15015
15222
|
|
|
@@ -15683,6 +15890,30 @@ var HtmlWidget = /*#__PURE__*/function (_HtmlMultiWidget) {
|
|
|
15683
15890
|
}]);
|
|
15684
15891
|
}(HtmlMultiWidget);
|
|
15685
15892
|
|
|
15893
|
+
var Spinner = /*#__PURE__*/function () {
|
|
15894
|
+
function Spinner() {
|
|
15895
|
+
_classCallCheck(this, Spinner);
|
|
15896
|
+
}
|
|
15897
|
+
return _createClass(Spinner, null, [{
|
|
15898
|
+
key: "getSpinnerElement",
|
|
15899
|
+
value: function getSpinnerElement() {
|
|
15900
|
+
return document.getElementById('spinner');
|
|
15901
|
+
}
|
|
15902
|
+
}, {
|
|
15903
|
+
key: "show",
|
|
15904
|
+
value: function show() {
|
|
15905
|
+
var spinner = this.getSpinnerElement();
|
|
15906
|
+
spinner === null || spinner === void 0 ? void 0 : spinner.classList.remove('spinner-wrapper--hidden');
|
|
15907
|
+
}
|
|
15908
|
+
}, {
|
|
15909
|
+
key: "hide",
|
|
15910
|
+
value: function hide() {
|
|
15911
|
+
var spinner = this.getSpinnerElement();
|
|
15912
|
+
spinner === null || spinner === void 0 ? void 0 : spinner.classList.add('spinner-wrapper--hidden');
|
|
15913
|
+
}
|
|
15914
|
+
}]);
|
|
15915
|
+
}();
|
|
15916
|
+
|
|
15686
15917
|
var InstructionModule$1 = /*#__PURE__*/function () {
|
|
15687
15918
|
function InstructionModule() {
|
|
15688
15919
|
_classCallCheck(this, InstructionModule);
|
|
@@ -15748,30 +15979,6 @@ function Instruction(instruction) {
|
|
|
15748
15979
|
};
|
|
15749
15980
|
}
|
|
15750
15981
|
|
|
15751
|
-
var Spinner = /*#__PURE__*/function () {
|
|
15752
|
-
function Spinner() {
|
|
15753
|
-
_classCallCheck(this, Spinner);
|
|
15754
|
-
}
|
|
15755
|
-
return _createClass(Spinner, null, [{
|
|
15756
|
-
key: "getSpinnerElement",
|
|
15757
|
-
value: function getSpinnerElement() {
|
|
15758
|
-
return document.getElementById('spinner');
|
|
15759
|
-
}
|
|
15760
|
-
}, {
|
|
15761
|
-
key: "show",
|
|
15762
|
-
value: function show() {
|
|
15763
|
-
var spinner = this.getSpinnerElement();
|
|
15764
|
-
spinner === null || spinner === void 0 ? void 0 : spinner.classList.remove('spinner-wrapper--hidden');
|
|
15765
|
-
}
|
|
15766
|
-
}, {
|
|
15767
|
-
key: "hide",
|
|
15768
|
-
value: function hide() {
|
|
15769
|
-
var spinner = this.getSpinnerElement();
|
|
15770
|
-
spinner === null || spinner === void 0 ? void 0 : spinner.classList.add('spinner-wrapper--hidden');
|
|
15771
|
-
}
|
|
15772
|
-
}]);
|
|
15773
|
-
}();
|
|
15774
|
-
|
|
15775
15982
|
var SessionHelper = /*#__PURE__*/function () {
|
|
15776
15983
|
function SessionHelper() {
|
|
15777
15984
|
_classCallCheck(this, SessionHelper);
|
|
@@ -17307,7 +17514,7 @@ var Checkout = /*#__PURE__*/function () {
|
|
|
17307
17514
|
key: "isTimeoutInstruction",
|
|
17308
17515
|
value: function isTimeoutInstruction(response) {
|
|
17309
17516
|
var _a, _b;
|
|
17310
|
-
return ((_a = response.payload) === null || _a === void 0 ? void 0 : _a.status) === 'expired' || ((_b = response.
|
|
17517
|
+
return ((_a = response.payload) === null || _a === void 0 ? void 0 : _a.status) === 'expired' || ((_b = response.payload) === null || _b === void 0 ? void 0 : _b.title) === 'Session expired';
|
|
17311
17518
|
}
|
|
17312
17519
|
}, {
|
|
17313
17520
|
key: "handleInstruction",
|
|
@@ -19107,7 +19314,7 @@ var PayPalSavePaymentSourceWidget = /*#__PURE__*/function () {
|
|
|
19107
19314
|
}]);
|
|
19108
19315
|
}();
|
|
19109
19316
|
|
|
19110
|
-
window.postMessage(
|
|
19317
|
+
window.postMessage('PAYDOCK_PAYMENTS_WIDGET_LOADED');
|
|
19111
19318
|
|
|
19112
19319
|
class Timer {
|
|
19113
19320
|
constructor(opts, ms) {
|
package/bundles/index.mjs.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -1243,6 +1253,7 @@ interface ITriggerData {
|
|
|
1243
1253
|
* @param {string} REFRESH_CHECKOUT=refresh_checkout
|
|
1244
1254
|
* @param {string} UPDATE_FORM_VALUES=update_form_values
|
|
1245
1255
|
* @param {string} INIT_CHECKOUT=init_checkout
|
|
1256
|
+
* @param {string} INJECT_CUSTOMER_DATA=inject_customer_data
|
|
1246
1257
|
*/
|
|
1247
1258
|
declare const TRIGGER: {
|
|
1248
1259
|
SUBMIT_FORM: string;
|
|
@@ -1252,6 +1263,7 @@ declare const TRIGGER: {
|
|
|
1252
1263
|
REFRESH_CHECKOUT: string;
|
|
1253
1264
|
UPDATE_FORM_VALUES: string;
|
|
1254
1265
|
INIT_CHECKOUT: string;
|
|
1266
|
+
INJECT_CUSTOMER_DATA: string;
|
|
1255
1267
|
};
|
|
1256
1268
|
declare class Trigger {
|
|
1257
1269
|
protected iFrame: IFrame;
|
|
@@ -2899,6 +2911,12 @@ interface Customer {
|
|
|
2899
2911
|
first_name?: string;
|
|
2900
2912
|
last_name?: string;
|
|
2901
2913
|
}
|
|
2914
|
+
interface DpaConfig {
|
|
2915
|
+
dpa_id: string;
|
|
2916
|
+
dpa_name: string;
|
|
2917
|
+
dpa_supported_card_schemes: ('MASTERCARD' | 'VISA' | 'AMEX' | 'DISCOVER')[];
|
|
2918
|
+
mode: 'sandbox' | 'live';
|
|
2919
|
+
}
|
|
2902
2920
|
interface IClickToPayMeta extends IBaseSRCMeta {
|
|
2903
2921
|
dpa_data?: IBaseSRCMeta['dpa_data'] & {
|
|
2904
2922
|
dpa_address?: string;
|
|
@@ -2927,6 +2945,8 @@ interface IClickToPayMeta extends IBaseSRCMeta {
|
|
|
2927
2945
|
customer?: Customer;
|
|
2928
2946
|
unaccepted_card_type?: 'CREDIT' | 'DEBIT';
|
|
2929
2947
|
recognition_token?: string;
|
|
2948
|
+
dpa_config?: DpaConfig;
|
|
2949
|
+
hold_for_customer_data?: boolean;
|
|
2930
2950
|
}
|
|
2931
2951
|
type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
|
|
2932
2952
|
type MASTERCARD_ORDER_TYPE = 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
|
|
@@ -3077,6 +3097,8 @@ declare class ApiInternal extends ApiBase {
|
|
|
3077
3097
|
gateway(): ApiGatewayInternal;
|
|
3078
3098
|
}
|
|
3079
3099
|
|
|
3100
|
+
type CustomerData = Customer;
|
|
3101
|
+
|
|
3080
3102
|
interface SRCProvider {
|
|
3081
3103
|
load(): void;
|
|
3082
3104
|
getEnv(): string;
|
|
@@ -3086,6 +3108,7 @@ interface SRCProvider {
|
|
|
3086
3108
|
showCheckout?(): void;
|
|
3087
3109
|
reload(): void;
|
|
3088
3110
|
useAutoResize?(): void;
|
|
3111
|
+
injectCustomerData(customerData: CustomerData): void;
|
|
3089
3112
|
}
|
|
3090
3113
|
|
|
3091
3114
|
declare abstract class SRC {
|
|
@@ -3189,12 +3212,34 @@ declare class ClickToPay extends SRC {
|
|
|
3189
3212
|
protected service_id: string;
|
|
3190
3213
|
protected public_key_or_access_token: string;
|
|
3191
3214
|
protected meta: IClickToPayMeta;
|
|
3215
|
+
protected holdingForCustomerData: boolean;
|
|
3216
|
+
private pendingCustomerData;
|
|
3192
3217
|
/** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
|
|
3193
3218
|
/**
|
|
3194
3219
|
* The final method after configuring the SRC to start the load process of Click To Pay checkout
|
|
3195
|
-
*
|
|
3196
3220
|
*/
|
|
3197
3221
|
load(): void;
|
|
3222
|
+
/**
|
|
3223
|
+
* Inject customer data after widget initialization via postMessage
|
|
3224
|
+
*
|
|
3225
|
+
* @param {Customer} customerData - Customer data to inject
|
|
3226
|
+
* @throws {Error} When customer data is invalid or widget is not ready
|
|
3227
|
+
* @example
|
|
3228
|
+
* widget.injectCustomerData({
|
|
3229
|
+
* email: 'user@example.com',
|
|
3230
|
+
* first_name: 'John',
|
|
3231
|
+
* last_name: 'Doe'
|
|
3232
|
+
* });
|
|
3233
|
+
*/
|
|
3234
|
+
injectCustomerData(customerData: Customer): void;
|
|
3235
|
+
/**
|
|
3236
|
+
* Validate customer data format
|
|
3237
|
+
*
|
|
3238
|
+
* @private
|
|
3239
|
+
* @param {Customer} customerData - Customer data to validate
|
|
3240
|
+
* @returns {boolean} True if valid
|
|
3241
|
+
*/
|
|
3242
|
+
private validateCustomerData;
|
|
3198
3243
|
}
|
|
3199
3244
|
|
|
3200
3245
|
declare class VaultDisplayIframeEvent extends IFrameEvent {
|
|
@@ -3408,7 +3453,7 @@ interface IWalletUpdateData {
|
|
|
3408
3453
|
success: boolean;
|
|
3409
3454
|
}
|
|
3410
3455
|
/**
|
|
3411
|
-
* Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay
|
|
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)
|
|
3412
3457
|
* @constructor
|
|
3413
3458
|
*
|
|
3414
3459
|
* @example
|
|
@@ -3443,7 +3488,7 @@ declare class WalletButtons {
|
|
|
3443
3488
|
load(): void;
|
|
3444
3489
|
/**
|
|
3445
3490
|
* Triggers the update process of the wallet, if available.
|
|
3446
|
-
* Currently supported by
|
|
3491
|
+
* Currently supported by Paypal and ApplePay/GooglePay via MPGS Wallets.
|
|
3447
3492
|
*
|
|
3448
3493
|
* @example
|
|
3449
3494
|
* var button = new WalletButtons(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { ApiCheckoutInternal } from '../api/api-checkout-internal';
|
|
2
|
+
import { ApiInternal } from '../api/api-internal';
|
|
1
3
|
import { Container } from '../components/container';
|
|
4
|
+
import { IEventData } from '../components/iframe-event';
|
|
2
5
|
import { EventEmitter } from '../helper/event-emitter';
|
|
3
|
-
import { InstructionModule } from './helpers/instruction-module';
|
|
4
|
-
import { ApiInternal } from '../api/api-internal';
|
|
5
6
|
import { InstructionDestroyable, InstructionHandleable } from './helpers/instruction-handler';
|
|
6
|
-
import {
|
|
7
|
-
import { ApiCheckoutInternal } from '../api/api-checkout-internal';
|
|
7
|
+
import { InstructionModule } from './helpers/instruction-module';
|
|
8
8
|
export declare const EVENT: {
|
|
9
9
|
PAYMENT_SUCCESSFUL: string;
|
|
10
10
|
PAYMENT_FAILURE: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"additionals.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/additionals.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"additionals.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/additionals.ts"],"names":[],"mappings":";AAAA,wBA2FE"}
|