@payfurl/client 4.5.9 → 4.6.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 (29) hide show
  1. package/README.md +3 -1
  2. package/dist/sdk/CxPayThreeDsProvider-068b25ce.mjs +14 -0
  3. package/dist/sdk/DefaultThreeDsProvider-e98c909f.mjs +220 -0
  4. package/dist/sdk/EpnaThreeDsProvider-189e652c.mjs +14 -0
  5. package/dist/sdk/FlashBancThreeDsProvider-36e453b8.mjs +14 -0
  6. package/dist/sdk/GPaymentsThreeDsProvider-fe5a9704.mjs +105 -0
  7. package/dist/sdk/MetricsGlobalThreeDsProvider-7f36be7b.mjs +147 -0
  8. package/dist/sdk/NmiThreeDsProvider-f7c7a154.mjs +14 -0
  9. package/dist/sdk/PayabliThreeDsProvider-66b568d3.mjs +14 -0
  10. package/dist/sdk/SkyBankThreeDsProvider-fbfe9597.mjs +14 -0
  11. package/dist/sdk/{ThreeDsInitResponse.type-06482849.mjs → ThreeDsProvider.interface-da0ab2aa.mjs} +3 -0
  12. package/dist/sdk/cxpay-6ff3d8ba.mjs +10 -0
  13. package/dist/sdk/default-957c2000.mjs +8 -0
  14. package/dist/sdk/{ecentric-cd8695ea.mjs → ecentric-7741cdc3.mjs} +23 -23
  15. package/dist/sdk/epna-1da33a88.mjs +10 -0
  16. package/dist/sdk/flashbanc-6eb51520.mjs +10 -0
  17. package/dist/sdk/gpayments-dce1eccd.mjs +9 -0
  18. package/dist/sdk/main-eb4bb451.mjs +18753 -0
  19. package/dist/sdk/metrics_global-5f5b54ee.mjs +9 -0
  20. package/dist/sdk/nmi-d67f1324.mjs +10 -0
  21. package/dist/sdk/payabli-02b4bd3b.mjs +10 -0
  22. package/dist/sdk/payfurl.es.js +1 -1
  23. package/dist/sdk/payfurl.umd.js +55 -11
  24. package/dist/sdk/skybank-53b51d4e.mjs +10 -0
  25. package/dist/sdk/style.css +1 -1
  26. package/package.json +2 -1
  27. package/dist/sdk/default-ecf62258.mjs +0 -179
  28. package/dist/sdk/gpayments-e536251a.mjs +0 -165
  29. package/dist/sdk/main-041a6652.mjs +0 -8717
@@ -1,5 +1,5 @@
1
- import { d as T, r as A, o as R, a as v, c as C, b as u, e as y, C as U, u as b, p as k, f as E, _ as V, F as w, T as L, g as N } from "./main-041a6652.mjs";
2
- const M = (t) => (k("data-v-82a75009"), t = t(), E(), t), F = { class: "mask" }, x = { class: "wrapper" }, O = { class: "container" }, q = /* @__PURE__ */ M(() => /* @__PURE__ */ u("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), J = ["action"], B = ["value"], j = /* @__PURE__ */ T({
1
+ import { d as T, r as A, o as v, a as R, c as C, b as c, e as y, C as U, u as b, p as k, f as E, _ as V, F as w, T as L, g as N } from "./main-eb4bb451.mjs";
2
+ const M = (t) => (k("data-v-82a75009"), t = t(), E(), t), F = { class: "mask" }, x = { class: "wrapper" }, O = { class: "container" }, q = /* @__PURE__ */ M(() => /* @__PURE__ */ c("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), J = ["action"], B = ["value"], j = /* @__PURE__ */ T({
3
3
  __name: "ecentric",
4
4
  props: {
5
5
  threeDSServerTransID: null,
@@ -9,24 +9,24 @@ const M = (t) => (k("data-v-82a75009"), t = t(), E(), t), F = { class: "mask" },
9
9
  },
10
10
  setup(t) {
11
11
  const n = t, e = A(null), r = n.authenticationValue;
12
- return R(() => {
13
- var i;
14
- (i = e.value) == null || i.submit();
15
- }), (i, p) => (v(), C("div", F, [
16
- u("div", x, [
17
- u("div", O, [
12
+ return v(() => {
13
+ var l;
14
+ (l = e.value) == null || l.submit();
15
+ }), (l, p) => (R(), C("div", F, [
16
+ c("div", x, [
17
+ c("div", O, [
18
18
  y(U, {
19
- onClick: p[0] || (p[0] = (Z) => i.emit("close"))
19
+ onClick: p[0] || (p[0] = (Z) => l.emit("close"))
20
20
  }),
21
21
  q,
22
- u("form", {
22
+ c("form", {
23
23
  action: n.formAction,
24
24
  target: "ThreeDsChallengeIFrame",
25
25
  method: "post",
26
26
  ref_key: "form",
27
27
  ref: e
28
28
  }, [
29
- u("input", {
29
+ c("input", {
30
30
  type: "hidden",
31
31
  name: "PaReq",
32
32
  value: b(r)
@@ -38,7 +38,7 @@ const M = (t) => (k("data-v-82a75009"), t = t(), E(), t), F = { class: "mask" },
38
38
  }
39
39
  });
40
40
  const $ = /* @__PURE__ */ V(j, [["__scopeId", "data-v-82a75009"]]);
41
- let d = null, m, G = null, a = null, D = "", c = "", _ = "", H, l = null, h = "";
41
+ let d = null, m, G = null, a = null, D = "", i = "", _ = "", H, u = null, h = "";
42
42
  function o(t, ...n) {
43
43
  d && d(t, n);
44
44
  }
@@ -46,31 +46,31 @@ function K() {
46
46
  o("init authentication"), a == null || a.onPreAuth(Q, s), window.addEventListener("message", g);
47
47
  }
48
48
  function S(t) {
49
- o("Do Authentication for transId", c, t), a == null || a.onAuth(_, D, c, t, "", W, s);
49
+ o("Do Authentication for transId", i, t), a == null || a.onAuth(_, D, i, t, "", W, s);
50
50
  }
51
51
  function I() {
52
- o("Do Post Authentication for transId", c, h), a == null || a.onPostAuth({ threeDSServerTransID: c, authenticationValue: h }, z, s);
52
+ o("Do Post Authentication for transId", i, h), a == null || a.onPostAuth({ threeDSServerTransID: i, authenticationValue: h }, z, s);
53
53
  }
54
54
  function Y(t, n, e) {
55
55
  const { destroy: r } = N({
56
56
  el: document.body,
57
57
  component: $,
58
58
  props: {
59
- threeDSServerTransID: c,
59
+ threeDSServerTransID: i,
60
60
  acsTransID: n,
61
61
  formAction: t,
62
62
  authenticationValue: e
63
63
  },
64
64
  on: {
65
65
  close: () => {
66
- r(), l = null, a == null || a.onError({ error: "Challenge cancelled" });
66
+ r(), u = null, a == null || a.onError({ error: "Challenge cancelled" });
67
67
  }
68
68
  }
69
69
  });
70
- l = r;
70
+ u = r;
71
71
  }
72
72
  function f() {
73
- l == null || l(), window.removeEventListener("message", g);
73
+ u == null || u(), window.removeEventListener("message", g);
74
74
  }
75
75
  const s = (t, n) => {
76
76
  f(), a == null || a.onError({ error: "3D Secure failed", body: n });
@@ -80,7 +80,7 @@ const s = (t, n) => {
80
80
  ["Y", "A"].includes(e.transStatus) ? a == null || a.onSuccess(e) : (o("3D Secure failed", e), a == null || a.onError({ error: "3D Secure failed" }));
81
81
  }, Q = (t, n) => {
82
82
  const e = JSON.parse(n);
83
- if (o("[onInitAuthSuccess]", e), D = e.threeDSRequestorTransID, c = e.threeDSServerTransID, e.threeDSMonitorURL, _ = e.threeDSAuthURL, e.threeDSMethodURL) {
83
+ if (o("[onInitAuthSuccess]", e), D = e.threeDSRequestorTransID, i = e.threeDSServerTransID, e.threeDSMonitorURL, _ = e.threeDSAuthURL, e.threeDSMethodURL) {
84
84
  X(e.threeDSServerTransID, e.threeDSMethodURL);
85
85
  return;
86
86
  }
@@ -150,13 +150,13 @@ function g(t) {
150
150
  t.data.status === "3ds_challenge_complete" && (o("3Ds Challenge complete", t.data), t.stopPropagation(), f(), o("cresData", t.data.cres), t.data.cres ? (h = t.data.cres, I()) : (o("Failed 3DS Challenge", t.data), s(400, "Failed 3DS Challenge")));
151
151
  }
152
152
  }
153
- function ee(t, n, e, r) {
154
- return d = t, G = n, H = e || document.body, m = r, {
153
+ function ee(t, n, e) {
154
+ return d = t, G = e.environment, H = n || document.body, m = e.apiUrl, {
155
155
  onPreAuth: K,
156
156
  onAuth: S,
157
157
  onPostAuth: I,
158
- setThreeDsProcessor: (i) => {
159
- a = i;
158
+ setThreeDsProcessor: (r) => {
159
+ a = r;
160
160
  }
161
161
  };
162
162
  }
@@ -0,0 +1,10 @@
1
+ import { EpnaThreeDsProvider as t } from "./EpnaThreeDsProvider-189e652c.mjs";
2
+ import "./MetricsGlobalThreeDsProvider-7f36be7b.mjs";
3
+ import "./DefaultThreeDsProvider-e98c909f.mjs";
4
+ import "./main-eb4bb451.mjs";
5
+ function a(r, e, o) {
6
+ return new t(r, e, o);
7
+ }
8
+ export {
9
+ a as default
10
+ };
@@ -0,0 +1,10 @@
1
+ import { FlashBancThreeDsProvider as e } from "./FlashBancThreeDsProvider-36e453b8.mjs";
2
+ import "./MetricsGlobalThreeDsProvider-7f36be7b.mjs";
3
+ import "./DefaultThreeDsProvider-e98c909f.mjs";
4
+ import "./main-eb4bb451.mjs";
5
+ function p(r, o, t) {
6
+ return new e(r, o, t);
7
+ }
8
+ export {
9
+ p as default
10
+ };
@@ -0,0 +1,9 @@
1
+ import { GPaymentsThreeDsProvider as o } from "./GPaymentsThreeDsProvider-fe5a9704.mjs";
2
+ import "./DefaultThreeDsProvider-e98c909f.mjs";
3
+ import "./main-eb4bb451.mjs";
4
+ function p(r, e, t) {
5
+ return new o(r, e, t);
6
+ }
7
+ export {
8
+ p as default
9
+ };