@payfurl/react-plugin 1.0.11 → 1.2.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 (31) hide show
  1. package/dist/{CxPayThreeDsProvider-DHyY0SJN-mkHWDkHg.js → CxPayThreeDsProvider-BLfTGjPF-kfggfjdU.js} +1 -1
  2. package/dist/{DefaultThreeDsProvider-BbyoW5gI-Bm2Tl1xC.js → DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js} +33 -33
  3. package/dist/{EcentricThreeDsProvider-CJkAKhCm-4a0z3e8l.js → EcentricThreeDsProvider-C0fijqNm-J1HqpcUG.js} +32 -32
  4. package/dist/{EpnaThreeDsProvider-CbuCAz8E-8AT3NiUZ.js → EpnaThreeDsProvider-BKcMV0Ni-C8jATWyJ.js} +1 -1
  5. package/dist/{FlashBancThreeDsProvider-yEpICp2s-B-fAmFIe.js → FlashBancThreeDsProvider-BL79DnxY-CKAnpF83.js} +1 -1
  6. package/dist/{GPaymentsThreeDsProvider-ZzFlXQYx-DxEfT4MU.js → GPaymentsThreeDsProvider-DK7o9MEd-CotMfLS4.js} +23 -22
  7. package/dist/{MetricsGlobalThreeDsProvider-COVvDD_A-BpwZGUJd.js → MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js} +33 -33
  8. package/dist/{NmiThreeDsProvider-CyQ9ToCv-C5qjGxEE.js → NmiThreeDsProvider-CjG8JCAW-SClrMiRm.js} +1 -1
  9. package/dist/{NuveiThreeDsProvider-wpWbdDVQ-Df-izyuz.js → NuveiThreeDsProvider-C511D4Vv-CI0PLP-t.js} +6 -6
  10. package/dist/{PayGLocalThreeDsProvider-piT2VTln-BSZsat2V.js → PayGLocalThreeDsProvider-Isk8RrpT-Du6bWeJa.js} +31 -31
  11. package/dist/{PayWayAppleButton-lOpUyVhK-C3sG34i0.js → PayWayAppleButton-CP2C2UFi-CE7cLGod.js} +1 -1
  12. package/dist/{PayabliThreeDsProvider-chEmLOO6-DsAXAJs1.js → PayabliThreeDsProvider-D04tIaoI-C9P-h4fx.js} +1 -1
  13. package/dist/{SkyBankThreeDsProvider-B1KB-MBu-BvB-_qyj.js → SkyBankThreeDsProvider-CI5tCFi6-Bc7KqUKb.js} +1 -1
  14. package/dist/{cxpay-CkpinAwr-ChgTpH3-.js → cxpay-CXd-gWgJ-o6fIVfHa.js} +1 -1
  15. package/dist/{default-CCjRF2gJ-CD4CwffS.js → default-Bn_jZqbH-Bl2uje9s.js} +1 -1
  16. package/dist/{ecentric-C7aOx_5y-CEzn5wge.js → ecentric-BUuKlIAj-DtLsDgEq.js} +1 -1
  17. package/dist/{epna-C3FB2xZQ-DH6OQlXc.js → epna-DquO2ajM-D6mOIN8h.js} +1 -1
  18. package/dist/{flashbanc-tBq9tJrU-YpLBHiBR.js → flashbanc-C4qF4wum-YDAB9IfO.js} +1 -1
  19. package/dist/{gpayments-utHsl2Sf-CVGRwoei.js → gpayments-B99Rhx-h-CQnyzSas.js} +1 -1
  20. package/dist/{index-BK7gCCkz.js → index-BmYcZJxX.js} +6257 -5865
  21. package/dist/{metrics_global-CP2_hsNY-PAbKkq2a.js → metrics_global-BhM_CqUq-uWSbroEt.js} +1 -1
  22. package/dist/nmi-B31Ng1Zj-CtTrEAj2.js +7 -0
  23. package/dist/{nuvei-DFcv1FC6-Do0hVbvU.js → nuvei-C_wJxvcg-9I4of95a.js} +1 -1
  24. package/dist/{payabli-C_GFUDE_-B3AKtHbR.js → payabli-DEjkMyU_-CjTbSafb.js} +1 -1
  25. package/dist/payfurl-react.es.js +1 -1
  26. package/dist/payfurl-react.umd.js +29 -29
  27. package/dist/{payglocal-CfnXIS4O-DFlDGlnE.js → payglocal-DrWsvnYA-WB4rb0ul.js} +1 -1
  28. package/dist/{payway_rest-Bl-RqdsM-DtXvxCWL.js → payway_rest-gds3Rn3R-B9t3rfRC.js} +1 -1
  29. package/dist/{skybank-ChiLuKWf-CtXaMyvJ.js → skybank-Cr24BYBd-BmDAIEtF.js} +1 -1
  30. package/package.json +2 -2
  31. package/dist/nmi-Crex5ZZF-Cq6YYDcI.js +0 -7
@@ -1,57 +1,57 @@
1
- import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-BbyoW5gI-Bm2Tl1xC.js";
2
- import { b as c, y as f, z as C, i as h, a as w, d as L, X as m, e as p, J as E, Y as I, L as g, P as S } from "./index-BK7gCCkz.js";
3
- const u = h(!1);
4
- function k(r, ...e) {
5
- u.value && console.log(r, e);
1
+ import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
2
+ import { v as h, P as C, J as w, F as I, i as D, O as E, d as L, e as m, h as p, Y as S, a as k, b as g, f as R, j as b } from "./index-BmYcZJxX.js";
3
+ const c = D(!1);
4
+ function A(r, ...e) {
5
+ c.value && console.log(r, e);
6
6
  }
7
- function D(r) {
7
+ function v(r) {
8
8
  var e, t;
9
- (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (u.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
9
+ (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === R && (c.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
10
10
  }
11
- function R() {
11
+ function $() {
12
12
  return m(() => {
13
- window.addEventListener("message", D);
13
+ window.addEventListener("message", v);
14
14
  }), p(() => {
15
- window.removeEventListener("message", D);
15
+ window.removeEventListener("message", v);
16
16
  }), {
17
- debug: u,
18
- logMessage: k
17
+ debug: c,
18
+ logMessage: A
19
19
  };
20
20
  }
21
- const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"], x = /* @__PURE__ */ w({
21
+ const x = { class: "modal-mask" }, U = { class: "modal-wrapper" }, G = ["src"], M = /* @__PURE__ */ I({
22
22
  __name: "PayGLocalThreeDsChallenge",
23
23
  props: {
24
24
  url: {}
25
25
  },
26
26
  emits: ["close"],
27
27
  setup(r, { emit: e }) {
28
- const { logMessage: t } = R(), a = r, s = e, o = h(a.url);
29
- h(null), L(() => a.url, (l) => {
28
+ const { logMessage: t } = $(), a = r, s = e, o = D(a.url), n = E(() => b(o.value) ? o.value : "");
29
+ L(() => a.url, (l) => {
30
30
  o.value = l;
31
31
  }), m(() => {
32
- window.addEventListener("message", n);
32
+ window.addEventListener("message", u);
33
33
  }), p(() => {
34
- window.removeEventListener("message", n);
34
+ window.removeEventListener("message", u);
35
35
  });
36
- function n(l) {
36
+ function u(l) {
37
37
  var i;
38
38
  if (t("PayGLocalThreeDsChallenge: Message received", l.data), !((i = l == null ? void 0 : l.data) != null && i["payglocal-token"])) return;
39
39
  const d = l.data["payglocal-token"];
40
40
  t("Token received", d);
41
- const v = d.split(".")[1], P = window.atob(v), T = JSON.parse(P);
42
- s("close", T);
41
+ const P = d.split(".")[1], T = window.atob(P), f = JSON.parse(T);
42
+ s("close", f);
43
43
  }
44
- return (l, i) => (I(), E("div", b, [
44
+ return (l, i) => (S(), k("div", x, [
45
45
  g("div", U, [
46
46
  g("iframe", {
47
- src: o.value,
47
+ src: n.value,
48
48
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
49
- }, null, 8, A)
49
+ }, null, 8, G)
50
50
  ])
51
51
  ]));
52
52
  }
53
- }), M = /* @__PURE__ */ C(x, [["__scopeId", "data-v-6f042298"]]);
54
- class G extends y {
53
+ }), O = /* @__PURE__ */ w(M, [["__scopeId", "data-v-0699f67d"]]);
54
+ class F extends y {
55
55
  getType() {
56
56
  return "PayGLocal";
57
57
  }
@@ -62,14 +62,14 @@ class G extends y {
62
62
  var n;
63
63
  this.log(`[${this.getType()}]: getCardDetails`, s, o), (n = this.threeDsProcessor) == null || n.setPaymentInfo(s), this.initChallenge(o.RedirectUrl);
64
64
  }, () => {
65
- c(this.container, "Unable to get card information");
65
+ h(this.container, "Unable to get card information");
66
66
  });
67
67
  return;
68
68
  }
69
69
  (a = this.threeDsProcessor) == null || a.tokeniseCard(this.threeDsProcessor.getProviderId(), (s) => {
70
70
  this.log(`[${this.getType()}]: tokeniseCard`, s), this.initChallenge(s.gatewayTokenData.RedirectUrl);
71
71
  }, (s) => {
72
- c(this.container, s);
72
+ h(this.container, s);
73
73
  });
74
74
  }
75
75
  onAuth(e, t) {
@@ -78,12 +78,12 @@ class G extends y {
78
78
  }
79
79
  initChallenge(e) {
80
80
  if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
81
- c(this.container, "3D Secure URL is missing");
81
+ h(this.container, "3D Secure URL is missing");
82
82
  return;
83
83
  }
84
- const { destroy: t } = f({
84
+ const { destroy: t } = C({
85
85
  el: document.body,
86
- component: M,
86
+ component: O,
87
87
  props: {
88
88
  url: e
89
89
  },
@@ -123,5 +123,5 @@ class G extends y {
123
123
  }
124
124
  }
125
125
  export {
126
- G as PayGLocalThreeDsProvider
126
+ F as PayGLocalThreeDsProvider
127
127
  };
@@ -1,4 +1,4 @@
1
- import { U as b, R as v, _ as g } from "./index-BK7gCCkz.js";
1
+ import { R as b, $ as v, T as g } from "./index-BmYcZJxX.js";
2
2
  var A = Object.defineProperty, C = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, i = (n, t, e) => C(n, typeof t != "symbol" ? t + "" : t, e);
3
3
  const h = {
4
4
  CHECKOUT: "CHECKOUT",
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-COVvDD_A-BpwZGUJd.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.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-COVvDD_A-BpwZGUJd.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js";
2
2
  class s extends e {
3
3
  getType() {
4
4
  return "SkyBank";
@@ -1,4 +1,4 @@
1
- import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-DHyY0SJN-mkHWDkHg.js";
1
+ import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-BLfTGjPF-kfggfjdU.js";
2
2
  function t(r, e, a) {
3
3
  return new n(r, e, a);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-BbyoW5gI-Bm2Tl1xC.js";
1
+ import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
2
2
  function a(e, r, t) {
3
3
  return new o(e, r, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-CJkAKhCm-4a0z3e8l.js";
1
+ import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-C0fijqNm-J1HqpcUG.js";
2
2
  function o(r, e, t) {
3
3
  return new i(r, e, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-CbuCAz8E-8AT3NiUZ.js";
1
+ import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-BKcMV0Ni-C8jATWyJ.js";
2
2
  function t(r, e, a) {
3
3
  return new n(r, e, a);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-yEpICp2s-B-fAmFIe.js";
1
+ import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-BL79DnxY-CKAnpF83.js";
2
2
  function o(r, e, t) {
3
3
  return new a(r, e, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-ZzFlXQYx-DxEfT4MU.js";
1
+ import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-DK7o9MEd-CotMfLS4.js";
2
2
  function o(e, r, t) {
3
3
  return new a(e, r, t);
4
4
  }