@paydock/client-sdk 1.105.1 → 1.106.1

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 (54) hide show
  1. package/README.md +255 -246
  2. package/bundles/widget.umd.js +1197 -1724
  3. package/bundles/widget.umd.min.js +1 -1
  4. package/lib/api/api-service-internal.d.ts +2 -1
  5. package/lib/api/api-service-internal.js +1 -0
  6. package/lib/api/api-service-internal.js.map +1 -1
  7. package/lib/components/iframe-event.d.ts +2 -0
  8. package/lib/components/iframe-event.js +2 -0
  9. package/lib/components/iframe-event.js.map +1 -1
  10. package/lib/components/link.d.ts +3 -2
  11. package/lib/components/link.js +1 -0
  12. package/lib/components/link.js.map +1 -1
  13. package/lib/components/param.d.ts +2 -2
  14. package/lib/components/param.js.map +1 -1
  15. package/lib/components/wallet-background.js +12 -0
  16. package/lib/components/wallet-background.js.map +1 -1
  17. package/lib/configs/sdk.js +1 -1
  18. package/lib/secure-remote-commerce/index.d.ts +102 -1
  19. package/lib/secure-remote-commerce/index.js +102 -1
  20. package/lib/secure-remote-commerce/index.js.map +1 -1
  21. package/lib/secure-remote-commerce/interfaces.d.ts +109 -32
  22. package/lib/secure-remote-commerce/interfaces.js +31 -11
  23. package/lib/secure-remote-commerce/interfaces.js.map +1 -1
  24. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.d.ts +30 -0
  25. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js +40 -0
  26. package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js.map +1 -0
  27. package/lib/secure-remote-commerce/providers/mastercard-src/index.d.ts +1 -0
  28. package/lib/secure-remote-commerce/providers/mastercard-src/index.js +2 -0
  29. package/lib/secure-remote-commerce/providers/mastercard-src/index.js.map +1 -0
  30. package/lib/secure-remote-commerce/providers/{visa-src/visa-src.d.ts → mastercard-src/mastercard-src.d.ts} +4 -7
  31. package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js +89 -0
  32. package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js.map +1 -0
  33. package/lib/secure-remote-commerce/secure-remote-commerce.d.ts +13 -91
  34. package/lib/secure-remote-commerce/secure-remote-commerce.js +15 -99
  35. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +1 -1
  36. package/lib/wallet-buttons/flypay-v2.wallet-service.d.ts +0 -1
  37. package/lib/wallet-buttons/flypay-v2.wallet-service.js +28 -30
  38. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +1 -1
  39. package/package.json +2 -2
  40. package/slate.md +69 -131
  41. package/typings/index.d.ts +0 -1
  42. package/vendors/zipmoney.js +1 -2
  43. package/lib/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -7
  44. package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
  45. package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
  46. package/lib/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
  47. package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
  48. package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
  49. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
  50. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
  51. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -8
  52. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
  53. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
  54. package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../secure-remote-commerce/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,KAOX;AAPD,WAAY,KAAK;IACb,wDAA+C,CAAA;IAC/C,0DAAiD,CAAA;IACjD,uCAA8B,CAAA;IAC9B,yCAAgC,CAAA;IAChC,iDAAwC,CAAA;IACxC,yCAAgC,CAAA;AACpC,CAAC,EAPW,KAAK,KAAL,KAAK,QAOhB;AAsDD,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAC,cAAc;CAC9B,CAAC"}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../secure-remote-commerce/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,KAOX;AAPD,WAAY,KAAK;IACb,uCAA8B,CAAA;IAC9B,yCAAgC,CAAA;IAChC,iDAAwC,CAAA;IACxC,yCAAgC,CAAA;IAChC,kDAAyC,CAAA;IACzC,oDAA2C,CAAA;AAC/C,CAAC,EAPW,KAAK,KAAL,KAAK,QAOhB;AAKA,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,mDAAgC,CAAA;IAChC,2CAAwB,CAAA;IACxB,sCAAmB,CAAA;AACvB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAAA,CAAC;AA2BD,CAAC;AAuFF,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,2BAA2B,EAAE,6BAA6B;IAC1D,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,kBAAkB;CACvC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { IMastercardSRCMeta } from './interfaces';
2
+ import { SRC } from './secure-remote-commerce';
3
+ /**
4
+ * Class MastercardSRCClickToPay include methods for interacting with the MastercardSRC checkout and Manual Card option
5
+ *
6
+ * @extends SRC
7
+ *
8
+ * @constructor
9
+ *
10
+ * @param {string} iframe_selector - Selector of html element. Container for SRC checkout iFrame.
11
+ * @param {string} service_id - Card Scheme Service ID
12
+ * @param {string} public_key_or_access_token - Paydock public key or Access Token
13
+ * @param {IMastercardSRCMeta} meta - Data that configures the SRC checkout
14
+ * @example
15
+ * var mastercardSRC = new MastercardSRCClickToPay('#checkoutIframe', 'service_id', 'public_key', {});
16
+ *
17
+ */
18
+ declare class MastercardSRCClickToPay extends SRC {
19
+ protected iframe_selector: string;
20
+ protected service_id: string;
21
+ protected public_key_or_access_token: string;
22
+ protected meta: IMastercardSRCMeta;
23
+ /** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IMastercardSRCMeta);
24
+ /**
25
+ * The final method after configuring the SRC to start the load process of SRC checkout
26
+ *
27
+ */
28
+ load(): void;
29
+ }
30
+ export { MastercardSRCClickToPay };
@@ -0,0 +1,40 @@
1
+ import { MastercardSRC } from './providers/mastercard-src/mastercard-src';
2
+ import { SRC } from './secure-remote-commerce';
3
+ /**
4
+ * Class MastercardSRCClickToPay include methods for interacting with the MastercardSRC checkout and Manual Card option
5
+ *
6
+ * @extends SRC
7
+ *
8
+ * @constructor
9
+ *
10
+ * @param {string} iframe_selector - Selector of html element. Container for SRC checkout iFrame.
11
+ * @param {string} service_id - Card Scheme Service ID
12
+ * @param {string} public_key_or_access_token - Paydock public key or Access Token
13
+ * @param {IMastercardSRCMeta} meta - Data that configures the SRC checkout
14
+ * @example
15
+ * var mastercardSRC = new MastercardSRCClickToPay('#checkoutIframe', 'service_id', 'public_key', {});
16
+ *
17
+ */
18
+ class MastercardSRCClickToPay extends SRC {
19
+ /** @constructs */ // constructs added for correct parse classes jsdoc2md
20
+ constructor(iframe_selector, service_id, public_key_or_access_token, meta) {
21
+ super(iframe_selector, service_id, public_key_or_access_token, meta);
22
+ this.iframe_selector = iframe_selector;
23
+ this.service_id = service_id;
24
+ this.public_key_or_access_token = public_key_or_access_token;
25
+ this.meta = meta;
26
+ }
27
+ /**
28
+ * The final method after configuring the SRC to start the load process of SRC checkout
29
+ *
30
+ */
31
+ load() {
32
+ if (this.provider)
33
+ return;
34
+ this.meta.customizations = this.style;
35
+ this.provider = new MastercardSRC(this.iframe_selector, this.service_id, this.public_key_or_access_token, this.meta, this.eventEmitter, this.autoResize, this.env, this.alias);
36
+ this.provider.load();
37
+ }
38
+ }
39
+ export { MastercardSRCClickToPay };
40
+ //# sourceMappingURL=../../src/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mastercard-secure-remote-commerce.js","sourceRoot":"","sources":["../../secure-remote-commerce/mastercard-secure-remote-commerce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C;;;;;;;;;;;;;;GAcG;AACH,MAAM,uBAAwB,SAAQ,GAAG;IACrC,kBAAkB,CAAC,sDAAsD;IACzE,YAAsB,eAAuB,EAAY,UAAkB,EAAY,0BAAkC,EAAY,IAAwB;QACzJ,KAAK,CAAC,eAAe,EAAE,UAAU,EAAE,0BAA0B,EAAE,IAAI,CAAC,CAAC;QADnD,oBAAe,GAAf,eAAe,CAAQ;QAAY,eAAU,GAAV,UAAU,CAAQ;QAAY,+BAA0B,GAA1B,0BAA0B,CAAQ;QAAY,SAAI,GAAJ,IAAI,CAAoB;IAE7J,CAAC;IAED;;;OAGG;IACI,IAAI;QACP,IAAI,IAAI,CAAC,QAAQ;YACb,OAAO;QAEX,IAAI,CAAC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC;QAEtC,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,CAC7B,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,0BAA0B,EAC/B,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,KAAK,CACb,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export { MastercardSRC } from './mastercard-src';
@@ -0,0 +1,2 @@
1
+ export { MastercardSRC } from './mastercard-src';
2
+ //# sourceMappingURL=../../../../src/lib/secure-remote-commerce/providers/mastercard-src/index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/mastercard-src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -4,22 +4,19 @@ import { IFrame } from '../../../components/iframe';
4
4
  import { IFrameEvent } from '../../../components/iframe-event';
5
5
  import { EventEmitter } from "../../../helper/event-emitter";
6
6
  import { SRCProvider } from '../src-provider';
7
- import { IVisaSRCMeta } from '../../interfaces';
8
- export declare class VisaSRC implements SRCProvider {
9
- protected meta: IVisaSRCMeta;
7
+ import { IMastercardSRCMeta } from '../../interfaces';
8
+ export declare class MastercardSRC implements SRCProvider {
9
+ protected meta: IMastercardSRCMeta;
10
10
  protected eventEmitter: EventEmitter;
11
11
  protected autoResize: any;
12
12
  protected link: Link;
13
13
  protected iFrameContainer: Container;
14
- protected buttonContainer: Container;
15
14
  protected iFrame: IFrame;
16
15
  protected iFrameEvent: IFrameEvent;
17
- constructor(button_selector: string, iframe_selector: string, service_id: string, public_key: string, meta: IVisaSRCMeta, eventEmitter: EventEmitter, autoResize: any, env: string, alias: string);
16
+ constructor(iframe_selector: string, service_id: string, public_key: string, meta: IMastercardSRCMeta, eventEmitter: EventEmitter, autoResize: any, env: string, alias?: string);
18
17
  private setupIFrameEvents;
19
18
  load(): void;
20
19
  getEnv(): string;
21
- hideButton(_saveSize: boolean): void;
22
- showButton(): void;
23
20
  hideCheckout(saveSize: boolean): void;
24
21
  showCheckout(): void;
25
22
  reload(): void;
@@ -0,0 +1,89 @@
1
+ import { Link, MASTERCARD_SRC } from '../../../components/link';
2
+ import { Container } from '../../../components/container';
3
+ import { IFrame } from '../../../components/iframe';
4
+ import { IFrameEvent } from '../../../components/iframe-event';
5
+ import { EVENT } from '../../interfaces';
6
+ import { SDK } from '../../../configs/sdk';
7
+ export class MastercardSRC {
8
+ constructor(iframe_selector, service_id, public_key, meta, eventEmitter, autoResize, env, alias) {
9
+ this.meta = meta;
10
+ this.eventEmitter = eventEmitter;
11
+ this.autoResize = autoResize;
12
+ this.link = new Link(MASTERCARD_SRC);
13
+ this.link.setParams(Object.assign({ service_id, public_key }, meta && { meta: JSON.stringify(meta) }));
14
+ if (SDK.version) {
15
+ this.link.setParams({
16
+ sdk_version: SDK.version,
17
+ sdk_type: SDK.type,
18
+ });
19
+ }
20
+ if (env)
21
+ this.link.setEnv(env, alias);
22
+ this.iFrameContainer = new Container(iframe_selector);
23
+ this.iFrame = new IFrame(this.iFrameContainer);
24
+ this.iFrameEvent = new IFrameEvent(window);
25
+ this.setupIFrameEvents();
26
+ }
27
+ setupIFrameEvents() {
28
+ const widgetId = this.link.getParams().widget_id;
29
+ if (!widgetId)
30
+ return;
31
+ this.iFrameEvent.on(EVENT.CHECKOUT_READY, widgetId, ({ data }) => {
32
+ this.eventEmitter.emit(EVENT.CHECKOUT_READY, data);
33
+ });
34
+ this.iFrameEvent.on(EVENT.CHECKOUT_COMPLETED, widgetId, ({ data }) => {
35
+ this.eventEmitter.emit(EVENT.CHECKOUT_COMPLETED, data);
36
+ });
37
+ this.iFrameEvent.on(EVENT.CHECKOUT_POPUP_OPEN, widgetId, ({ data }) => {
38
+ this.eventEmitter.emit(EVENT.CHECKOUT_POPUP_OPEN, data);
39
+ });
40
+ this.iFrameEvent.on(EVENT.CHECKOUT_POPUP_CLOSE, widgetId, ({ data }) => {
41
+ this.eventEmitter.emit(EVENT.CHECKOUT_POPUP_CLOSE, data);
42
+ });
43
+ this.iFrameEvent.on(EVENT.CHECKOUT_ERROR, widgetId, ({ data }) => {
44
+ this.eventEmitter.emit(EVENT.CHECKOUT_ERROR, data);
45
+ });
46
+ if (this.autoResize)
47
+ this.useAutoResize(true);
48
+ }
49
+ load() {
50
+ this.iFrame.load(this.link.getUrl(), { title: 'Mastercard SRC checkout' });
51
+ const iframeElement = this.iFrame.getElement();
52
+ this.iFrame.setStyle('width', '100%');
53
+ if (iframeElement)
54
+ iframeElement.onload = () => this.eventEmitter.emit(EVENT.IFRAME_LOADED, {});
55
+ }
56
+ getEnv() {
57
+ return this.link.getEnv();
58
+ }
59
+ hideCheckout(saveSize) {
60
+ if (this.iFrame)
61
+ this.iFrame.hide();
62
+ }
63
+ showCheckout() {
64
+ if (this.iFrame)
65
+ this.iFrame.show();
66
+ }
67
+ reload() {
68
+ this.iFrame.remove();
69
+ this.load();
70
+ }
71
+ useAutoResize(force) {
72
+ if (this.autoResize && !force)
73
+ return;
74
+ this.autoResize = true;
75
+ const params = this.link.getParams();
76
+ if (!(params === null || params === void 0 ? void 0 : params.widget_id))
77
+ return;
78
+ this.iFrameEvent.on('resize', params.widget_id, ({ data }) => {
79
+ var _a, _b;
80
+ const iframeElement = this.iFrame.getElement();
81
+ if (iframeElement) {
82
+ iframeElement.scrolling = 'no';
83
+ if ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.height)
84
+ this.iFrame.setStyle('height', ((_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.height) + 'px');
85
+ }
86
+ });
87
+ }
88
+ }
89
+ //# sourceMappingURL=../../../../src/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mastercard-src.js","sourceRoot":"","sources":["../../../../secure-remote-commerce/providers/mastercard-src/mastercard-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EA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MAAM,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAc,EAAE,EAAE;;YACrE,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YAC/C,IAAI,aAAa,EAAE;gBACf,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC;gBAC/B,UAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,MAAM;oBAClB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,MAAM,IAAG,IAAI,CAAC,CAAC;aACjE;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -1,99 +1,36 @@
1
- import { EventEmitter } from "../helper/event-emitter";
1
+ import { EventEmitter } from '../helper/event-emitter';
2
2
  import { ApiInternal } from '../api/api-internal';
3
3
  import { SRCProvider } from './providers/src-provider';
4
- import { IVisaSRCMeta, IStyles } from './interfaces';
5
- /**
6
- * Interface of data used for the Visa Checkout.
7
- * @interface IVisaSRCMeta
8
- *
9
- * @type {object}
10
- * @param {string} [srci_transaction_id] Used to identify the SRC Id.
11
- * @param {object} [dpa_data] Object where the DPA creation data is stored.
12
- * @param {string} [dpa_data.dpa_presentation_name] Name in which the DPA is presented in.
13
- * @param {string} [dpa_data.dpa_uri] Used for indicating the DPA URI.
14
- * @param {object} [dpa_transaction_options] Object that stores options for creating a trasaction with DPA.
15
- * @param {string} [dpa_transaction_options.dpa_locale] DPA’s preferred locale, example en_US.
16
- * @param {Array} [dpa_transaction_options.dpa_accepted_billing_countries] Used to indicate list of accepted billing countries for DPA.
17
- * @param {Array} [dpa_transaction_options.dpa_accepted_shipping_countries] Used to indicate list of accepted shipping countries for DPA.
18
- * @param {string} [dpa_transaction_options.dpa_billing_preference] Used for listing the enumeration for billing preferences for DPA. Options are 'ALL', 'POSTAL_COUNTRY' and 'NONE'.
19
- * @param {string} [dpa_transaction_options.dpa_shipping_preference] Used for listing the enumeration for shipping preferences for DPA. Options are 'ALL', 'POSTAL_COUNTRY' and 'NONE'.
20
- * @param {boolean} [dpa_transaction_options.consumer_name_requested] Used to check if the name of the consumer is needed.
21
- * @param {boolean} [dpa_transaction_options.consumer_email_address_requested] Used to check if the email of the consumer is needed.
22
- * @param {boolean} [dpa_transaction_options.consumer_phone_number_requested] Used to check if the phone number of the consumer is needed.
23
- * @param {object} [dpa_transaction_options.payment_options] Object used to check the payment options that are included.
24
- * @param {number} [dpa_transaction_options.payment_options.dpa_dynamic_data_ttl_minutes] The minimum requested validity period for the transaction credentials.
25
- * @param {string} [dpa_transaction_options.payment_options.dynamic_data_type] Used for listing the enumeration for dynamic data types. Options are 'TAVV' and 'DTVV'.
26
- * @param {boolean} [dpa_transaction_options.payment_options.dpa_pan_requested] Used to check if PAN number was requested.
27
- * @param {string} [dpa_transaction_options.review_action] Used for listing the enumeration of review actions. Options are 'pay' and 'continue'.
28
- * @param {string} [dpa_transaction_options.checkout_description] Used for indicating the description of the checkout.
29
- * @param {string} [dpa_transaction_options.transaction_type] Used for listing the enumeration of the type of the transaction. 'PURCHASE', 'BILL_PAYMENT' and 'MONEY_TRANSFER'
30
- * @param {string} [dpa_transaction_options.order_type] Used for listing the enumeration of the type of the order. Options are 'REAUTHORIZATION', 'RECURRING' and 'INSTALLMENT'.
31
- * @param {object} [dpa_transaction_options.transaction_amount] Object used to describe the details of the transaction.
32
- * @param {number} [dpa_transaction_options.transaction_amount.transaction_amount] Used to indicate the amount of the transaction.
33
- * @param {string} [dpa_transaction_options.transaction_amount.transaction_currency_code] Used to indicate the currency code of the transaction. 3 letter ISO code format.
34
- * @param {string} [dpa_transaction_options.merchant_order_id] Used to indicate the merchants order Id.
35
- * @param {string} [dpa_transaction_options.merchant_category_code] Used to indicate the merchants category code.
36
- * @param {string} [dpa_transaction_options.merchant_country_code] Used to indicate the merchants country code. 2 letter ISO code format.
37
- * @param {object} [customer] Object where the customer data is stored to prefill in the checkout.
38
- * @param {string} [customer.email] Customer email.
39
- * @param {string} [customer.first_name] Customer first name.
40
- * @param {string} [customer.last_name] Customer last name.
41
- * @param {object} [customer.phone] Object where the customer phone is stored.
42
- * @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US).
43
- * @param {string} [customer.phone.phone] Customer phone number.
44
- * @param {object} [customer.payment_source] Object where the customer billing address data is stored.
45
- * @param {string} [customer.payment_source.address_line1] Customer billing address line 1.
46
- * @param {string} [customer.payment_source.address_line2] Customer billing address line 2.
47
- * @param {string} [customer.payment_source.address_city] Customer billing address city.
48
- * @param {string} [customer.payment_source.address_postcode] Customer billing address postcode.
49
- * @param {string} [customer.payment_source.address_state] Customer billing address state code (if applicable for the country, example "FL" for Florida).
50
- * @param {string} [customer.payment_source.address_country] Customer billing address country code (example "US").
51
- */
52
- /**
53
- * Class SRC include methods for interacting with different secure remote commerce options such as Visa SRC
54
- * @constructor
55
- *
56
- * @param {string} button_selector - Selector of html element. Container for SRC checkout button.
57
- * @param {string} iframe_selector - Selector of html element. Container for SRC checkout iFrame.
58
- * @param {string} service_id - Card Scheme Service ID
59
- * @param {string} public_key_or_access_token - Paydock public key or Access Token
60
- * @param {IVisaSRCMeta} meta - Data that configures the SRC checkout
61
- * @example
62
- * var SRC = new SRC('#checkoutButton', '#checkoutIframe', 'service_id', 'public_key', {});
63
- *
64
- */
65
- declare class SRC {
66
- protected button_selector: string;
4
+ import { IStyles, IMastercardSRCMeta } from './interfaces';
5
+ declare abstract class SRC {
67
6
  protected iframe_selector: string;
68
7
  protected service_id: string;
69
8
  protected public_key_or_access_token: string;
70
- protected meta: IVisaSRCMeta;
9
+ protected meta: IMastercardSRCMeta;
71
10
  protected eventEmitter: EventEmitter;
72
11
  protected env: string;
73
- protected alias: string;
12
+ protected alias?: string;
74
13
  protected api: ApiInternal;
75
14
  protected provider: SRCProvider;
76
15
  protected autoResize: boolean;
77
16
  protected style: IStyles;
78
- /** @constructs */ constructor(button_selector: string, iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IVisaSRCMeta);
17
+ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IMastercardSRCMeta);
79
18
  /**
80
19
  * Object contain styles for widget - call before `.load()`.
81
20
  *
82
21
  * @example
83
22
  * widget.setStyles({
84
- * button_text_color: '#32a852',
85
- * primary_color: '#32a852',
86
- * font_family: 'sans-serif',
87
- * card_schemes: ['visa']
88
- * });
23
+ * enable_src_popup: true
24
+ * primary_button_color: 'red',
25
+ * secondary_button_color: 'blue',
26
+ * primary_button_text_color: 'white',
27
+ * secondary_button_text_color: 'white',
28
+ * font_family: 'Arial',
29
+ * });
89
30
  * @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
90
31
  */
91
32
  setStyles(styles: IStyles): void;
92
33
  private setStyle;
93
- /**
94
- * The final method after configuring the SRC to start the load process of SRC checkout
95
- *
96
- */
97
34
  load(): void;
98
35
  /**
99
36
  * Current method can change environment. By default environment = sandbox.
@@ -114,21 +51,6 @@ declare class SRC {
114
51
  getEnv(): string;
115
52
  on(eventName: string): Promise<any>;
116
53
  on(eventName: string, cb: (data: any) => void): any;
117
- /**
118
- * Using this method you can hide button
119
- * @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
120
- *
121
- * @example
122
- * SRC.hideButton();
123
- */
124
- hideButton(saveSize: boolean): void;
125
- /**
126
- * Using this method you can show the SRC button after using hideButton method
127
- *
128
- * @example
129
- * SRC.showButton();
130
- */
131
- showButton(): void;
132
54
  /**
133
55
  * Using this method you can hide checkout after load and button click
134
56
  * @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
@@ -1,74 +1,12 @@
1
1
  import { API_AUTH_TYPE } from '../api/api-base';
2
2
  import { CARD_SCHEME_SERVICE } from '../api/api-service-internal';
3
- import { EventEmitter } from "../helper/event-emitter";
4
- import { VisaSRC } from './providers/visa-src';
3
+ import { EventEmitter } from '../helper/event-emitter';
4
+ import { MastercardSRC } from './providers/mastercard-src';
5
5
  import { ApiInternal } from '../api/api-internal';
6
6
  import { STYLE } from './interfaces';
7
- import { ObjectHelper } from "../helper/object";
8
- /**
9
- * Interface of data used for the Visa Checkout.
10
- * @interface IVisaSRCMeta
11
- *
12
- * @type {object}
13
- * @param {string} [srci_transaction_id] Used to identify the SRC Id.
14
- * @param {object} [dpa_data] Object where the DPA creation data is stored.
15
- * @param {string} [dpa_data.dpa_presentation_name] Name in which the DPA is presented in.
16
- * @param {string} [dpa_data.dpa_uri] Used for indicating the DPA URI.
17
- * @param {object} [dpa_transaction_options] Object that stores options for creating a trasaction with DPA.
18
- * @param {string} [dpa_transaction_options.dpa_locale] DPA’s preferred locale, example en_US.
19
- * @param {Array} [dpa_transaction_options.dpa_accepted_billing_countries] Used to indicate list of accepted billing countries for DPA.
20
- * @param {Array} [dpa_transaction_options.dpa_accepted_shipping_countries] Used to indicate list of accepted shipping countries for DPA.
21
- * @param {string} [dpa_transaction_options.dpa_billing_preference] Used for listing the enumeration for billing preferences for DPA. Options are 'ALL', 'POSTAL_COUNTRY' and 'NONE'.
22
- * @param {string} [dpa_transaction_options.dpa_shipping_preference] Used for listing the enumeration for shipping preferences for DPA. Options are 'ALL', 'POSTAL_COUNTRY' and 'NONE'.
23
- * @param {boolean} [dpa_transaction_options.consumer_name_requested] Used to check if the name of the consumer is needed.
24
- * @param {boolean} [dpa_transaction_options.consumer_email_address_requested] Used to check if the email of the consumer is needed.
25
- * @param {boolean} [dpa_transaction_options.consumer_phone_number_requested] Used to check if the phone number of the consumer is needed.
26
- * @param {object} [dpa_transaction_options.payment_options] Object used to check the payment options that are included.
27
- * @param {number} [dpa_transaction_options.payment_options.dpa_dynamic_data_ttl_minutes] The minimum requested validity period for the transaction credentials.
28
- * @param {string} [dpa_transaction_options.payment_options.dynamic_data_type] Used for listing the enumeration for dynamic data types. Options are 'TAVV' and 'DTVV'.
29
- * @param {boolean} [dpa_transaction_options.payment_options.dpa_pan_requested] Used to check if PAN number was requested.
30
- * @param {string} [dpa_transaction_options.review_action] Used for listing the enumeration of review actions. Options are 'pay' and 'continue'.
31
- * @param {string} [dpa_transaction_options.checkout_description] Used for indicating the description of the checkout.
32
- * @param {string} [dpa_transaction_options.transaction_type] Used for listing the enumeration of the type of the transaction. 'PURCHASE', 'BILL_PAYMENT' and 'MONEY_TRANSFER'
33
- * @param {string} [dpa_transaction_options.order_type] Used for listing the enumeration of the type of the order. Options are 'REAUTHORIZATION', 'RECURRING' and 'INSTALLMENT'.
34
- * @param {object} [dpa_transaction_options.transaction_amount] Object used to describe the details of the transaction.
35
- * @param {number} [dpa_transaction_options.transaction_amount.transaction_amount] Used to indicate the amount of the transaction.
36
- * @param {string} [dpa_transaction_options.transaction_amount.transaction_currency_code] Used to indicate the currency code of the transaction. 3 letter ISO code format.
37
- * @param {string} [dpa_transaction_options.merchant_order_id] Used to indicate the merchants order Id.
38
- * @param {string} [dpa_transaction_options.merchant_category_code] Used to indicate the merchants category code.
39
- * @param {string} [dpa_transaction_options.merchant_country_code] Used to indicate the merchants country code. 2 letter ISO code format.
40
- * @param {object} [customer] Object where the customer data is stored to prefill in the checkout.
41
- * @param {string} [customer.email] Customer email.
42
- * @param {string} [customer.first_name] Customer first name.
43
- * @param {string} [customer.last_name] Customer last name.
44
- * @param {object} [customer.phone] Object where the customer phone is stored.
45
- * @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US).
46
- * @param {string} [customer.phone.phone] Customer phone number.
47
- * @param {object} [customer.payment_source] Object where the customer billing address data is stored.
48
- * @param {string} [customer.payment_source.address_line1] Customer billing address line 1.
49
- * @param {string} [customer.payment_source.address_line2] Customer billing address line 2.
50
- * @param {string} [customer.payment_source.address_city] Customer billing address city.
51
- * @param {string} [customer.payment_source.address_postcode] Customer billing address postcode.
52
- * @param {string} [customer.payment_source.address_state] Customer billing address state code (if applicable for the country, example "FL" for Florida).
53
- * @param {string} [customer.payment_source.address_country] Customer billing address country code (example "US").
54
- */
55
- /**
56
- * Class SRC include methods for interacting with different secure remote commerce options such as Visa SRC
57
- * @constructor
58
- *
59
- * @param {string} button_selector - Selector of html element. Container for SRC checkout button.
60
- * @param {string} iframe_selector - Selector of html element. Container for SRC checkout iFrame.
61
- * @param {string} service_id - Card Scheme Service ID
62
- * @param {string} public_key_or_access_token - Paydock public key or Access Token
63
- * @param {IVisaSRCMeta} meta - Data that configures the SRC checkout
64
- * @example
65
- * var SRC = new SRC('#checkoutButton', '#checkoutIframe', 'service_id', 'public_key', {});
66
- *
67
- */
7
+ import { ObjectHelper } from '../helper/object';
68
8
  class SRC {
69
- /** @constructs */ // constructs added for correct parse classes jsdoc2md
70
- constructor(button_selector, iframe_selector, service_id, public_key_or_access_token, meta) {
71
- this.button_selector = button_selector;
9
+ constructor(iframe_selector, service_id, public_key_or_access_token, meta) {
72
10
  this.iframe_selector = iframe_selector;
73
11
  this.service_id = service_id;
74
12
  this.public_key_or_access_token = public_key_or_access_token;
@@ -83,11 +21,13 @@ class SRC {
83
21
  *
84
22
  * @example
85
23
  * widget.setStyles({
86
- * button_text_color: '#32a852',
87
- * primary_color: '#32a852',
88
- * font_family: 'sans-serif',
89
- * card_schemes: ['visa']
90
- * });
24
+ * enable_src_popup: true
25
+ * primary_button_color: 'red',
26
+ * secondary_button_color: 'blue',
27
+ * primary_button_text_color: 'white',
28
+ * secondary_button_text_color: 'white',
29
+ * font_family: 'Arial',
30
+ * });
91
31
  * @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
92
32
  */
93
33
  setStyles(styles) {
@@ -102,18 +42,14 @@ class SRC {
102
42
  else
103
43
  console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
104
44
  }
105
- /**
106
- * The final method after configuring the SRC to start the load process of SRC checkout
107
- *
108
- */
109
45
  load() {
110
46
  if (this.provider)
111
47
  return;
112
48
  this.api.service().getConfig(this.service_id).then(({ type }) => {
113
49
  this.meta.customizations = this.style; // assign the style on the start of the widget
114
50
  switch (type) {
115
- case CARD_SCHEME_SERVICE.VISA_SRC:
116
- this.provider = new VisaSRC(this.button_selector, this.iframe_selector, this.service_id, this.public_key_or_access_token, this.meta, this.eventEmitter, this.autoResize, this.env, this.alias);
51
+ case CARD_SCHEME_SERVICE.MASTERCARD_SRC:
52
+ this.provider = new MastercardSRC(this.iframe_selector, this.service_id, this.public_key_or_access_token, this.meta, this.eventEmitter, this.autoResize, this.env, this.alias);
117
53
  break;
118
54
  }
119
55
  ;
@@ -161,8 +97,9 @@ class SRC {
161
97
  * SRC.on('checkoutCompleted').then(function (token) {
162
98
  * console.log(token);
163
99
  * });
100
+ *
164
101
  * @param {string} eventName - Available event names [EVENT]{@link EVENT}
165
- * @param {listener} [cb]
102
+ * @param {listener} [cb] - The callback to handle the event. When available, it will send back data of type [EventData]{@link EventData}
166
103
  * @return {Promise<any> | void}
167
104
  */
168
105
  on(eventName, cb) {
@@ -170,27 +107,6 @@ class SRC {
170
107
  return this.eventEmitter.subscribe(eventName, cb);
171
108
  return new Promise((resolve) => this.eventEmitter.subscribe(eventName, (res) => resolve(res)));
172
109
  }
173
- /**
174
- * Using this method you can hide button
175
- * @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
176
- *
177
- * @example
178
- * SRC.hideButton();
179
- */
180
- hideButton(saveSize) {
181
- if (this.provider && typeof this.provider.hideButton === 'function')
182
- this.provider.hideButton(saveSize);
183
- }
184
- /**
185
- * Using this method you can show the SRC button after using hideButton method
186
- *
187
- * @example
188
- * SRC.showButton();
189
- */
190
- showButton() {
191
- if (this.provider && typeof this.provider.showButton === 'function')
192
- this.provider.showButton();
193
- }
194
110
  /**
195
111
  * Using this method you can hide checkout after load and button click
196
112
  * @param {boolean} [saveSize=false] - using this param you can save iframe's size (if applicable)
@@ -1 +1 @@
1
- {"version":3,"file":"secure-remote-commerce.js","sourceRoot":"","sources":["../../secure-remote-commerce/secure-remote-commerce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAA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C,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACT,IAAI,IAAI,CAAC,QAAQ;YACb,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC/B,CAAC;IAED;;;;;;OAMG;IACI,aAAa;QAChB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,IAAI,CAAC,QAAQ,IAAI,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,KAAK,UAAU;YAClE,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;IACtC,CAAC;CACJ;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"}
@@ -12,7 +12,6 @@ export declare class FlypayV2WalletService extends WalletService implements IWal
12
12
  protected orderId?: string;
13
13
  protected containerId?: string;
14
14
  protected flypayV2Button: HTMLButtonElement;
15
- protected processingButtonClick: boolean;
16
15
  constructor(publicKey: string, meta: IWalletServiceMeta);
17
16
  load(container: Container): any;
18
17
  setEnv(env: string): this;