@payfurl/client 4.6.32 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/sdk/{CxPayThreeDsProvider-C3SVxMVV.js → CxPayThreeDsProvider-DHyY0SJN.js} +1 -1
  2. package/dist/sdk/{DefaultThreeDsProvider-DSJFbhYb.js → DefaultThreeDsProvider-BbyoW5gI.js} +1 -1
  3. package/dist/sdk/{EcentricThreeDsProvider-M7JlFNrQ.js → EcentricThreeDsProvider-CJkAKhCm.js} +2 -2
  4. package/dist/sdk/{EpnaThreeDsProvider-BFvrkGJv.js → EpnaThreeDsProvider-CbuCAz8E.js} +1 -1
  5. package/dist/sdk/{FlashBancThreeDsProvider-CqjYV8SM.js → FlashBancThreeDsProvider-yEpICp2s.js} +1 -1
  6. package/dist/sdk/{GPaymentsThreeDsProvider-BMCOtJAd.js → GPaymentsThreeDsProvider-ZzFlXQYx.js} +2 -2
  7. package/dist/sdk/{MetricsGlobalThreeDsProvider-B9rzZcOb.js → MetricsGlobalThreeDsProvider-COVvDD_A.js} +30 -30
  8. package/dist/sdk/{NmiThreeDsProvider-C8Gf2tSm.js → NmiThreeDsProvider-CyQ9ToCv.js} +1 -1
  9. package/dist/sdk/{NuveiThreeDsProvider-CjtjRIqU.js → NuveiThreeDsProvider-wpWbdDVQ.js} +4 -4
  10. package/dist/sdk/{PayGLocalThreeDsProvider-CkBdY3-6.js → PayGLocalThreeDsProvider-piT2VTln.js} +2 -2
  11. package/dist/sdk/{PayWayAppleButton-3Jcspw8r.js → PayWayAppleButton-lOpUyVhK.js} +1 -1
  12. package/dist/sdk/{PayabliThreeDsProvider-BYNvOB9r.js → PayabliThreeDsProvider-chEmLOO6.js} +1 -1
  13. package/dist/sdk/{SkyBankThreeDsProvider-D1loCi58.js → SkyBankThreeDsProvider-B1KB-MBu.js} +1 -1
  14. package/dist/sdk/{ThreeDsProvider.interface-BMFqLcBL.js → ThreeDsProvider.interface-BcufVMJY.js} +3922 -3849
  15. package/dist/sdk/{cxpay-tBsH5Qq9.js → cxpay-CkpinAwr.js} +1 -1
  16. package/dist/sdk/{default-CU0qSz8c.js → default-CCjRF2gJ.js} +1 -1
  17. package/dist/sdk/{ecentric-BoreYd7u.js → ecentric-C7aOx_5y.js} +1 -1
  18. package/dist/sdk/{epna-S8i7BPJA.js → epna-C3FB2xZQ.js} +1 -1
  19. package/dist/sdk/{flashbanc-BoYu0io2.js → flashbanc-tBq9tJrU.js} +1 -1
  20. package/dist/sdk/{gpayments-BSnudVfM.js → gpayments-utHsl2Sf.js} +1 -1
  21. package/dist/sdk/{metrics_global-C-3-Z-LB.js → metrics_global-CP2_hsNY.js} +1 -1
  22. package/dist/sdk/{nmi-CP4vI9mH.js → nmi-Crex5ZZF.js} +1 -1
  23. package/dist/sdk/{nuvei-rKAQzNmO.js → nuvei-DFcv1FC6.js} +1 -1
  24. package/dist/sdk/{payabli-uJdaROjR.js → payabli-C_GFUDE_.js} +1 -1
  25. package/dist/sdk/payfurl.es.js +1 -1
  26. package/dist/sdk/payfurl.umd.js +17 -17
  27. package/dist/sdk/{payglocal-BtWr5bKE.js → payglocal-CfnXIS4O.js} +1 -1
  28. package/dist/sdk/{payway_rest-YdocXQB2.js → payway_rest-Bl-RqdsM.js} +1 -1
  29. package/dist/sdk/{skybank-B_BtMhk2.js → skybank-ChiLuKWf.js} +1 -1
  30. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-COVvDD_A.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "CxPay";
@@ -1,7 +1,7 @@
1
1
  var d = Object.defineProperty;
2
2
  var S = (n, e, s) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
3
3
  var r = (n, e, s) => S(n, typeof e != "symbol" ? e + "" : e, s);
4
- import { d as p, r as g, o as m, c as T, a as f, b as D, e as I, C as y, u as C, _ as A, h as E, T as v, f as _ } from "./ThreeDsProvider.interface-BMFqLcBL.js";
4
+ import { d as p, r as g, o as m, c as T, a as f, b as D, e as I, C as y, u as C, _ as A, h as E, T as v, f as _ } from "./ThreeDsProvider.interface-BcufVMJY.js";
5
5
  const R = { class: "mask" }, P = { class: "wrapper" }, U = { class: "container" }, $ = ["action"], b = ["value"], L = /* @__PURE__ */ p({
6
6
  __name: "ThreeDsChallenge",
7
7
  props: {
@@ -1,8 +1,8 @@
1
1
  var h = Object.defineProperty;
2
2
  var c = (s, t, e) => t in s ? h(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
3
  var l = (s, t, e) => c(s, typeof t != "symbol" ? t + "" : t, e);
4
- import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-DSJFbhYb.js";
5
- import { d as p, r as u, o as D, c as m, a as g, b as a, e as f, C as S, u as T, _, f as y } from "./ThreeDsProvider.interface-BMFqLcBL.js";
4
+ import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-BbyoW5gI.js";
5
+ import { d as p, r as u, o as D, c as m, a as g, b as a, e as f, C as S, u as T, _, f as y } from "./ThreeDsProvider.interface-BcufVMJY.js";
6
6
  const C = { class: "mask" }, v = { class: "wrapper" }, P = { class: "container" }, I = ["action"], A = ["value"], V = /* @__PURE__ */ p({
7
7
  __name: "ecentric",
8
8
  props: {
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-COVvDD_A.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "EPNA";
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-COVvDD_A.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "FlashBanc";
@@ -1,8 +1,8 @@
1
1
  var i = Object.defineProperty;
2
2
  var l = (o, r, e) => r in o ? i(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
3
3
  var n = (o, r, e) => l(o, typeof r != "symbol" ? r + "" : r, e);
4
- import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-DSJFbhYb.js";
5
- import { d, c as u, a as p, b as h, n as a, _ as g, f as D } from "./ThreeDsProvider.interface-BMFqLcBL.js";
4
+ import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-BbyoW5gI.js";
5
+ import { d, c as u, a as p, b as h, n as a, _ as g, f as D } from "./ThreeDsProvider.interface-BcufVMJY.js";
6
6
  const S = { class: "mask" }, m = { class: "wrapper" }, y = ["src"], f = /* @__PURE__ */ d({
7
7
  __name: "GPayments",
8
8
  props: {
@@ -1,37 +1,37 @@
1
- var S = Object.defineProperty;
2
- var P = (h, o, t) => o in h ? S(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t;
3
- var m = (h, o, t) => P(h, typeof o != "symbol" ? o + "" : o, t);
4
- import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-DSJFbhYb.js";
5
- import { d as E, r as _, o as A, i as v, w as T, v as b, c as x, a as I, b as g, e as L, C as N, _ as G, h as $, s as p, f as H } from "./ThreeDsProvider.interface-BMFqLcBL.js";
6
- const M = { class: "mask" }, k = { class: "wrapper" }, O = { class: "container" }, j = /* @__PURE__ */ E({
1
+ var E = Object.defineProperty;
2
+ var _ = (h, o, t) => o in h ? E(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t;
3
+ var m = (h, o, t) => _(h, typeof o != "symbol" ? o + "" : o, t);
4
+ import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-BbyoW5gI.js";
5
+ import { d as v, r as T, o as b, i as L, w as N, v as x, c as I, a as G, b as g, e as $, C as H, _ as M, h as k, s as p, f as F } from "./ThreeDsProvider.interface-BcufVMJY.js";
6
+ const O = { class: "mask" }, U = { class: "wrapper" }, j = { class: "container" }, B = /* @__PURE__ */ v({
7
7
  __name: "MetricsGlobalThreeDsChallenge",
8
8
  emits: ["close", "submit"],
9
9
  setup(h, { emit: o }) {
10
- const t = o, e = _(!1);
10
+ const t = o, e = T(!1);
11
11
  function s(r) {
12
12
  var i;
13
13
  ["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((i = r.data) == null ? void 0 : i.message) && (e.value = r.data.message === "3DS_CHALLENGE_SHOW");
14
14
  }
15
- return A(() => {
15
+ return b(() => {
16
16
  window.addEventListener("message", s);
17
- }), v(() => {
17
+ }), L(() => {
18
18
  window.removeEventListener("message", s);
19
- }), (r, i) => T((I(), x("div", M, [
20
- g("div", k, [
21
- g("div", O, [
22
- L(N, {
23
- onClick: i[0] || (i[0] = (l) => t("close")),
19
+ }), (r, i) => N((G(), I("div", O, [
20
+ g("div", U, [
21
+ g("div", j, [
22
+ $(H, {
23
+ onClick: i[0] || (i[0] = (D) => t("close")),
24
24
  id: "3ds-challenge-close"
25
25
  }),
26
26
  i[1] || (i[1] = g("div", { id: "ThreeDsChallengeIFrame" }, null, -1))
27
27
  ])
28
28
  ])
29
29
  ], 512)), [
30
- [b, e.value]
30
+ [x, e.value]
31
31
  ]);
32
32
  }
33
- }), B = /* @__PURE__ */ G(j, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: F } = $(), u = 5;
34
- class K extends f {
33
+ }), W = /* @__PURE__ */ M(B, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: R } = k(), u = 5;
34
+ class q extends A {
35
35
  constructor(t, e, s) {
36
36
  var r;
37
37
  super(t, e, s);
@@ -68,30 +68,30 @@ class K extends f {
68
68
  onPostAuth() {
69
69
  }
70
70
  startAuth() {
71
- var D, y, d, C, w;
71
+ var y, d, C, w, S, f;
72
72
  this.log(`[${this.getType()}]: startAuth`);
73
- const t = (D = this.threeDsProcessor) == null ? void 0 : D.getPaymentInfo();
73
+ const t = (y = this.threeDsProcessor) == null ? void 0 : y.getPaymentInfo();
74
74
  if (!t) {
75
75
  c(), p(this.container, "Payment information is missing");
76
76
  return;
77
77
  }
78
- F();
79
- const e = (y = this.threeDsProcessor) == null ? void 0 : y.getAddressInfo(), s = t.expiryDate.length === 4 ? t.expiryDate[2] + t.expiryDate[3] : "", r = t.expiryDate.length === 4 ? t.expiryDate[0] + t.expiryDate[1] : "", i = {
78
+ R();
79
+ const e = (d = this.threeDsProcessor) == null ? void 0 : d.getAddressInfo(), s = t.expiryDate.length === 4 ? t.expiryDate[2] + t.expiryDate[3] : "", r = t.expiryDate.length === 4 ? t.expiryDate[0] + t.expiryDate[1] : "", [i = "", D = ""] = ((C = t.cardholder) == null ? void 0 : C.split(/\s+/)) || [], P = {
80
80
  cardNumber: t.cardNumber,
81
81
  cardExpMonth: s,
82
82
  cardExpYear: parseInt(r) + 2e3,
83
- currency: (d = this.threeDsProcessor) == null ? void 0 : d.getCurrency(),
84
- amount: (C = this.threeDsProcessor) == null ? void 0 : C.getAmount(),
85
- email: (w = this.threeDsProcessor) == null ? void 0 : w.getEmail(),
83
+ currency: (w = this.threeDsProcessor) == null ? void 0 : w.getCurrency(),
84
+ amount: (S = this.threeDsProcessor) == null ? void 0 : S.getAmount(),
85
+ email: (f = this.threeDsProcessor) == null ? void 0 : f.getEmail(),
86
86
  phone: e == null ? void 0 : e.phoneNumber,
87
87
  city: e == null ? void 0 : e.city,
88
88
  state: e == null ? void 0 : e.state,
89
89
  address1: e == null ? void 0 : e.streetAddress,
90
90
  country: e == null ? void 0 : e.country,
91
- firstName: e == null ? void 0 : e.firstName,
92
- lastName: e == null ? void 0 : e.lastName,
91
+ firstName: (e == null ? void 0 : e.firstName) || i || "payFURL",
92
+ lastName: (e == null ? void 0 : e.lastName) || D || "payFURL",
93
93
  postalCode: e == null ? void 0 : e.postalCode
94
- }, l = this.threeDS.createUI(i);
94
+ }, l = this.threeDS.createUI(P);
95
95
  l.start("#ThreeDsChallengeIFrame"), l.on("challenge", (n) => {
96
96
  this.log(`[${this.getType()}][onChallenge]`, n), c(), this.showChallenge();
97
97
  }), l.on("complete", (n) => {
@@ -120,9 +120,9 @@ class K extends f {
120
120
  });
121
121
  }
122
122
  initChallenge() {
123
- const { destroy: t } = H({
123
+ const { destroy: t } = F({
124
124
  el: document.body,
125
- component: B,
125
+ component: W,
126
126
  on: {
127
127
  close: () => {
128
128
  var e;
@@ -148,5 +148,5 @@ class K extends f {
148
148
  }
149
149
  }
150
150
  export {
151
- K as MetricsGlobalThreeDsProvider
151
+ q as MetricsGlobalThreeDsProvider
152
152
  };
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-COVvDD_A.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "NMI";
@@ -1,8 +1,8 @@
1
1
  var u = Object.defineProperty;
2
2
  var p = (n, o, t) => o in n ? u(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t;
3
3
  var h = (n, o, t) => p(n, typeof o != "symbol" ? o + "" : o, t);
4
- import { d as m, h as d, o as g, c as D, a as S, b as l, _ as f, s as y, f as P } from "./ThreeDsProvider.interface-BMFqLcBL.js";
5
- import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-DSJFbhYb.js";
4
+ import { d as m, h as d, o as g, c as D, a as S, b as l, _ as f, s as y, f as P } from "./ThreeDsProvider.interface-BcufVMJY.js";
5
+ import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-BbyoW5gI.js";
6
6
  const C = { class: "mask" }, _ = /* @__PURE__ */ m({
7
7
  __name: "nuvei",
8
8
  props: {
@@ -73,11 +73,11 @@ const C = { class: "mask" }, _ = /* @__PURE__ */ m({
73
73
  window.postMessage({ status: "3ds_challenge_complete", cres: a }, "*");
74
74
  });
75
75
  }
76
- return (s, a) => (S(), D("div", C, a[0] || (a[0] = [
76
+ return (s, a) => (S(), D("div", C, [...a[0] || (a[0] = [
77
77
  l("div", { class: "wrapper" }, [
78
78
  l("div", { class: "container" })
79
79
  ], -1)
80
- ])));
80
+ ])]));
81
81
  }
82
82
  }), E = /* @__PURE__ */ f(_, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: V } = d();
83
83
  class A extends T {
@@ -1,5 +1,5 @@
1
- import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-DSJFbhYb.js";
2
- import { r as h, o as p, i as D, I as y, d as _, j as w, c as E, a as I, b as u, _ as L, s as c, f as S } from "./ThreeDsProvider.interface-BMFqLcBL.js";
1
+ import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-BbyoW5gI.js";
2
+ import { r as h, o as p, i as D, I as y, d as _, j as w, c as E, a as I, b as u, _ as L, s as c, f as S } from "./ThreeDsProvider.interface-BcufVMJY.js";
3
3
  const d = h(!1);
4
4
  function R(s, ...e) {
5
5
  d.value && console.log(s, e);
@@ -1,7 +1,7 @@
1
1
  var g = Object.defineProperty;
2
2
  var b = (o, t, i) => t in o ? g(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
3
3
  var e = (o, t, i) => b(o, typeof t != "symbol" ? t + "" : t, i);
4
- import { R as A, g as v, H as C } from "./ThreeDsProvider.interface-BMFqLcBL.js";
4
+ import { R as A, g as v, H as C } from "./ThreeDsProvider.interface-BcufVMJY.js";
5
5
  const d = {
6
6
  CHECKOUT: "CHECKOUT",
7
7
  CHARGE: "CHARGE"
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-COVvDD_A.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "Payabli";
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-B9rzZcOb.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-COVvDD_A.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "SkyBank";