@payfurl/client 4.6.16 → 4.6.18

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 (53) hide show
  1. package/dist/sdk/CxPayThreeDsProvider-DjX3bJAl.js +12 -0
  2. package/dist/sdk/{DefaultThreeDsProvider-bc94590f.mjs → DefaultThreeDsProvider-wZIfgkTX.js} +88 -66
  3. package/dist/sdk/EcentricThreeDsProvider-QH208RqB.js +89 -0
  4. package/dist/sdk/{EpnaThreeDsProvider-ae87f6a8.mjs → EpnaThreeDsProvider-CC0ljizz.js} +3 -5
  5. package/dist/sdk/FlashBancThreeDsProvider-DGctQQhI.js +12 -0
  6. package/dist/sdk/{GPaymentsThreeDsProvider-c32e2ce2.mjs → GPaymentsThreeDsProvider-BzhmeVh4.js} +24 -25
  7. package/dist/sdk/{MetricsGlobalThreeDsProvider-4a1a277b.mjs → MetricsGlobalThreeDsProvider-BUcb67jM.js} +50 -51
  8. package/dist/sdk/{NmiThreeDsProvider-c7eee818.mjs → NmiThreeDsProvider-D-Dpvf8p.js} +3 -5
  9. package/dist/sdk/{NuveiThreeDsProvider-92ec0af3.mjs → NuveiThreeDsProvider-D2XXrq7E.js} +57 -58
  10. package/dist/sdk/PayGLocalThreeDsProvider-CVb2aTHz.js +127 -0
  11. package/dist/sdk/{PayWayAppleButton-8ec95dcc.mjs → PayWayAppleButton-OqZpXDDS.js} +5 -6
  12. package/dist/sdk/{PayabliThreeDsProvider-4c604ca6.mjs → PayabliThreeDsProvider-CNOV1jlN.js} +3 -5
  13. package/dist/sdk/{SkyBankThreeDsProvider-83c74ce4.mjs → SkyBankThreeDsProvider-BqOWk8zg.js} +3 -5
  14. package/dist/sdk/ThreeDsProvider.interface-CV7f0rWx.js +12181 -0
  15. package/dist/sdk/cxpay-CA6OCA10.js +7 -0
  16. package/dist/sdk/default-DyWsYI7w.js +7 -0
  17. package/dist/sdk/ecentric-CV2ZD1BX.js +7 -0
  18. package/dist/sdk/epna-DyukxWCk.js +7 -0
  19. package/dist/sdk/flashbanc-CDYzXOiJ.js +7 -0
  20. package/dist/sdk/{forter-b1affe9e.mjs → forter-CfW26Mkn.js} +2 -2
  21. package/dist/sdk/gpayments-LV9IpyRD.js +7 -0
  22. package/dist/sdk/metrics_global-DqkuRtA0.js +7 -0
  23. package/dist/sdk/nmi-CUjT46uJ.js +7 -0
  24. package/dist/sdk/nuvei-DDTCsZIS.js +7 -0
  25. package/dist/sdk/payabli-CD5hrhZL.js +7 -0
  26. package/dist/sdk/payfurl.es.js +1 -1
  27. package/dist/sdk/payfurl.umd.js +17 -25
  28. package/dist/sdk/payglocal-CJakz8Bw.js +7 -0
  29. package/dist/sdk/payway_rest-BBKp0h1b.js +7 -0
  30. package/dist/sdk/skybank-DWjKkCZu.js +7 -0
  31. package/dist/sdk/style.css +1 -1
  32. package/package.json +26 -20
  33. package/dist/sdk/CxPayThreeDsProvider-fdb9495d.mjs +0 -14
  34. package/dist/sdk/EcentricThreeDsProvider-b4e83ddb.mjs +0 -90
  35. package/dist/sdk/FlashBancThreeDsProvider-1605038d.mjs +0 -14
  36. package/dist/sdk/PayGLocalThreeDsProvider-40375fae.mjs +0 -129
  37. package/dist/sdk/ThreeDsProvider.interface-370c3a6b.mjs +0 -24
  38. package/dist/sdk/cxpay-4cfbabd6.mjs +0 -10
  39. package/dist/sdk/default-ce52738b.mjs +0 -8
  40. package/dist/sdk/ecentric-6f32c4cc.mjs +0 -9
  41. package/dist/sdk/epna-54185dfc.mjs +0 -10
  42. package/dist/sdk/flashbanc-8664c8b8.mjs +0 -10
  43. package/dist/sdk/gpayments-7527af22.mjs +0 -9
  44. package/dist/sdk/main-0d5d595b.mjs +0 -10947
  45. package/dist/sdk/metrics_global-441d4b91.mjs +0 -9
  46. package/dist/sdk/nmi-21be5427.mjs +0 -10
  47. package/dist/sdk/nuvei-6c9de68e.mjs +0 -9
  48. package/dist/sdk/payabli-2128874d.mjs +0 -10
  49. package/dist/sdk/payglocal-10b095e8.mjs +0 -9
  50. package/dist/sdk/payway_rest-3f40376d.mjs +0 -8
  51. package/dist/sdk/skybank-bbf556c6.mjs +0 -10
  52. /package/dist/sdk/{ThreeDsPostAuthResponse.type-3091950f.mjs → ThreeDsPostAuthResponse.type-CaV_50Qh.js} +0 -0
  53. /package/dist/sdk/{fraudProvider.type-c77ee71c.mjs → fraudProvider.type-ewIWghbD.js} +0 -0
@@ -0,0 +1,12 @@
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BUcb67jM.js";
2
+ class a extends e {
3
+ getType() {
4
+ return "CxPay";
5
+ }
6
+ getDomain() {
7
+ return "cxpay.transactiongateway.com";
8
+ }
9
+ }
10
+ export {
11
+ a as CxPayThreeDsProvider
12
+ };
@@ -1,81 +1,103 @@
1
- var D = Object.defineProperty;
2
- var u = (n, e, s) => e in n ? D(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
3
- var o = (n, e, s) => (u(n, typeof e != "symbol" ? e + "" : e, s), s);
4
- import { d as S, r as d, o as g, a as p, c as T, b as i, e as _, C as m, u as I, p as f, f as y, _ as A, i as v, T as C, h as E, F as R } from "./main-0d5d595b.mjs";
5
- const P = (n) => (f("data-v-ac351494"), n = n(), y(), n), U = { class: "mask" }, $ = { class: "wrapper" }, L = { class: "container" }, b = /* @__PURE__ */ P(() => /* @__PURE__ */ i("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), M = ["action"], w = ["value"], N = /* @__PURE__ */ S({
1
+ var d = Object.defineProperty;
2
+ var S = (n, e, s) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
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, a as T, c 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-CV7f0rWx.js";
5
+ const R = { class: "mask" }, P = { class: "wrapper" }, U = { class: "container" }, $ = ["action"], b = ["value"], L = /* @__PURE__ */ p({
6
6
  __name: "ThreeDsChallenge",
7
7
  props: {
8
- threeDSServerTransID: null,
9
- acsTransID: null,
10
- formAction: null
8
+ threeDSServerTransID: {},
9
+ acsTransID: {},
10
+ formAction: {}
11
11
  },
12
12
  emits: ["close", "submit"],
13
13
  setup(n, { emit: e }) {
14
- const s = n, t = d(null), r = JSON.stringify({
14
+ const s = n, t = e, o = g(null), a = JSON.stringify({
15
15
  threeDSServerTransID: s.threeDSServerTransID,
16
16
  acsTransID: s.acsTransID,
17
17
  messageVersion: "2.2.0",
18
18
  messageType: "CReq",
19
19
  challengeWindowSize: "01"
20
- }), a = encodeURI(window.btoa(r).replace(/=*$/, ""));
21
- return g(() => {
22
- var h;
23
- (h = t.value) == null || h.submit();
24
- }), (h, l) => (p(), T("div", U, [
25
- i("div", $, [
26
- i("div", L, [
27
- _(m, {
28
- onClick: l[0] || (l[0] = (H) => e("close")),
20
+ }), i = encodeURI(window.btoa(a).replace(/=*$/, ""));
21
+ return m(() => {
22
+ var c;
23
+ (c = o.value) == null || c.submit();
24
+ }), (c, h) => (T(), f("div", R, [
25
+ D("div", P, [
26
+ D("div", U, [
27
+ I(y, {
28
+ onClick: h[0] || (h[0] = (l) => t("close")),
29
29
  id: "3ds-challenge-close"
30
30
  }),
31
- b,
32
- i("form", {
31
+ h[1] || (h[1] = D("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
32
+ D("form", {
33
33
  action: s.formAction,
34
34
  target: "ThreeDsChallengeIFrame",
35
35
  method: "post",
36
36
  ref_key: "form",
37
- ref: t
37
+ ref: o
38
38
  }, [
39
- i("input", {
39
+ D("input", {
40
40
  type: "hidden",
41
41
  name: "creq",
42
- value: I(a)
43
- }, null, 8, w)
44
- ], 8, M)
42
+ value: C(i)
43
+ }, null, 8, b)
44
+ ], 8, $)
45
45
  ])
46
46
  ])
47
47
  ]));
48
48
  }
49
- });
50
- const k = /* @__PURE__ */ A(N, [["__scopeId", "data-v-ac351494"]]), { hideSpinner: c, showSpinner: O } = v(), q = "3ds_method_invocation_complete", V = "3ds_challenge_complete";
51
- class J {
49
+ }), M = /* @__PURE__ */ A(L, [["__scopeId", "data-v-ac351494"]]);
50
+ class k {
51
+ constructor() {
52
+ r(this, "iframeId", "threeDsIframeMethod");
53
+ r(this, "containerId", "payfurlContainerFormInvoker");
54
+ r(this, "iframe", null);
55
+ r(this, "container", null);
56
+ }
57
+ createIFrame() {
58
+ this.iframe || (this.container = document.createElement("div"), this.container.id = this.containerId, document.body.appendChild(this.container), this.iframe = document.createElement("iframe"), this.iframe.name = this.iframeId, this.iframe.style.display = "none", this.container.appendChild(this.iframe));
59
+ }
60
+ invoke(e, s, t, o, a) {
61
+ var c;
62
+ this.createIFrame();
63
+ const i = document.createElement("form");
64
+ i.action = e, i.target = this.iframeId, i.method = "post", (c = this.container) == null || c.appendChild(i);
65
+ for (let h in t) {
66
+ const l = document.createElement("input");
67
+ l.type = "hidden", l.name = h, l.value = t[h], i.appendChild(l);
68
+ }
69
+ i.submit();
70
+ }
71
+ }
72
+ const { hideSpinner: u, showSpinner: N } = E(), w = "3ds_method_invocation_complete", O = "3ds_challenge_complete";
73
+ class V {
52
74
  constructor(e, s, t) {
53
- o(this, "log");
54
- o(this, "container");
55
- o(this, "options");
56
- o(this, "threeDsProcessor", null);
57
- o(this, "threeDSDestroy", () => {
75
+ r(this, "log");
76
+ r(this, "container");
77
+ r(this, "options");
78
+ r(this, "threeDsProcessor", null);
79
+ r(this, "threeDSDestroy", () => {
58
80
  });
59
- o(this, "threeDSServerTransID", "");
60
- o(this, "threeDSAuthURL", "");
61
- o(this, "threeDSRequestorTransID", "");
62
- o(this, "threeDSMonitorURL", "");
63
- o(this, "internalMessageHandler", this.messageHandler.bind(this));
64
- o(this, "onError", (e, s) => {
65
- var t, r;
66
- if (this.closeChallenge(), c(), e === 404) {
81
+ r(this, "threeDSServerTransID", "");
82
+ r(this, "threeDSAuthURL", "");
83
+ r(this, "threeDSRequestorTransID", "");
84
+ r(this, "threeDSMonitorURL", "");
85
+ r(this, "internalMessageHandler", this.messageHandler.bind(this));
86
+ r(this, "onError", (e, s) => {
87
+ var t, o;
88
+ if (this.closeChallenge(), u(), e === 404) {
67
89
  (t = this.threeDsProcessor) == null || t.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
68
90
  return;
69
91
  }
70
- (r = this.threeDsProcessor) == null || r.onError({ error: "3D Secure failed", body: s });
92
+ (o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed", body: s });
71
93
  });
72
- o(this, "onSuccess", (e, s) => {
73
- var r, a;
74
- this.closeChallenge(), c();
94
+ r(this, "onSuccess", (e, s) => {
95
+ var o, a;
96
+ this.closeChallenge(), u();
75
97
  const t = JSON.parse(s);
76
- ["Y", "A"].includes(t.transStatus) ? (r = this.threeDsProcessor) == null || r.onSuccess(t) : (this.log(`[${this.getType()}]: 3D Secure failed`, t), (a = this.threeDsProcessor) == null || a.onError({ error: "3D Secure failed" }));
98
+ ["Y", "A"].includes(t.transStatus) ? (o = this.threeDsProcessor) == null || o.onSuccess(t) : (this.log(`[${this.getType()}]: 3D Secure failed`, t), (a = this.threeDsProcessor) == null || a.onError({ error: "3D Secure failed" }));
77
99
  });
78
- o(this, "onInitAuthSuccess", (e, s) => {
100
+ r(this, "onInitAuthSuccess", (e, s) => {
79
101
  const t = JSON.parse(s);
80
102
  if (this.log(`[${this.getType()}][onInitAuthSuccess]`, t), this.threeDSRequestorTransID = t.threeDSRequestorTransID, this.threeDSServerTransID = t.threeDSServerTransID, this.threeDSMonitorURL = t.threeDSMonitorURL, this.threeDSAuthURL = t.threeDSAuthURL, t.threeDSMethodURL) {
81
103
  this.threeDsMethodInvoke(t.threeDSServerTransID, t.threeDSMethodURL);
@@ -83,8 +105,8 @@ class J {
83
105
  }
84
106
  this.onAuth(!1, "");
85
107
  });
86
- o(this, "onDoAuthSuccess", (e, s) => {
87
- var r;
108
+ r(this, "onDoAuthSuccess", (e, s) => {
109
+ var o;
88
110
  const t = JSON.parse(s);
89
111
  if (this.log(`[${this.getType()}][onDoAuthSuccess]`, t), !t.transStatus) {
90
112
  this.onError(e, "No transStatus specified");
@@ -108,7 +130,7 @@ class J {
108
130
  this.log(`[${this.getType()}][threeDsAuth], Unable to perform 3DS verification, rejected at issuer`), this.onError(400, "Unable to perform 3DS verification, rejected at issuer");
109
131
  break;
110
132
  default:
111
- this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${t.transStatus}`), (r = this.threeDsProcessor) == null || r.onSuccess({
133
+ this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${t.transStatus}`), (o = this.threeDsProcessor) == null || o.onSuccess({
112
134
  threeDSServerTransID: t.threeDSServerTransID,
113
135
  threeDSRequestorTransID: "",
114
136
  acsRenderingType: t.acsRenderingType,
@@ -138,7 +160,7 @@ class J {
138
160
  return "";
139
161
  }
140
162
  onPreAuth() {
141
- this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (O(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
163
+ this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (N(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
142
164
  }
143
165
  onAuth(e, s) {
144
166
  var t;
@@ -147,7 +169,7 @@ class J {
147
169
  threeDSRequestorTransID: this.threeDSRequestorTransID,
148
170
  threeDSServerTransID: this.threeDSServerTransID,
149
171
  isMethodPerformed: e
150
- }), (t = this.threeDsProcessor) == null || t.onAuth(this.threeDSAuthURL, this.threeDSRequestorTransID, this.threeDSServerTransID, e, "", this.onDoAuthSuccess, this.onError);
172
+ }), (t = this.threeDsProcessor) == null || t.onAuth(this.threeDSAuthURL, this.threeDSRequestorTransID, this.threeDSServerTransID, e, s, this.onDoAuthSuccess, this.onError);
151
173
  }
152
174
  onPostAuth() {
153
175
  var e;
@@ -162,12 +184,12 @@ class J {
162
184
  }
163
185
  messageHandler(e) {
164
186
  var s, t;
165
- if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) === C)) {
166
- if (e.data.status === q) {
187
+ if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) === v)) {
188
+ if (e.data.status === w) {
167
189
  e.stopPropagation(), this.invocationComplete(e);
168
190
  return;
169
191
  }
170
- e.data.status === V && (e.stopPropagation(), this.challengeComplete(e));
192
+ e.data.status === O && (e.stopPropagation(), this.challengeComplete(e));
171
193
  }
172
194
  }
173
195
  invocationComplete(e) {
@@ -179,10 +201,10 @@ class J {
179
201
  this.log(`[${this.getType()}]: cresData`, s), ["Y", "A"].includes(s.transStatus) ? this.onPostAuth() : ["N", "U", "R"].includes(s.transStatus) && (this.log(`[${this.getType()}]: Failed 3DS Challenge`, e.data), this.onError(400, "Failed 3DS Challenge"));
180
202
  }
181
203
  doChallenge(e, s, t) {
182
- this.log(`[${this.getType()}][doChallenge]`), c();
183
- const { destroy: r } = E({
204
+ this.log(`[${this.getType()}][doChallenge]`), u();
205
+ const { destroy: o } = _({
184
206
  el: document.body,
185
- component: k,
207
+ component: M,
186
208
  props: {
187
209
  threeDSServerTransID: this.threeDSServerTransID,
188
210
  acsTransID: s,
@@ -192,12 +214,12 @@ class J {
192
214
  on: {
193
215
  close: () => {
194
216
  var a;
195
- r(), this.threeDSDestroy = () => {
217
+ o(), this.threeDSDestroy = () => {
196
218
  }, (a = this.threeDsProcessor) == null || a.onError({ error: "Challenge cancelled" });
197
219
  }
198
220
  }
199
221
  });
200
- this.threeDSDestroy = r;
222
+ this.threeDSDestroy = o;
201
223
  }
202
224
  closeChallenge() {
203
225
  var e;
@@ -208,14 +230,14 @@ class J {
208
230
  const t = {
209
231
  threeDSServerTransID: e,
210
232
  threeDSMethodNotificationURL: this.options.apiUrl + "/3ds/method_invocation"
211
- }, r = encodeURI(window.btoa(JSON.stringify(t)).replace(/=*$/, ""));
212
- new R().invoke(s, "POST", {
213
- threeDSMethodData: r
233
+ }, o = encodeURI(window.btoa(JSON.stringify(t)).replace(/=*$/, ""));
234
+ new k().invoke(s, "POST", {
235
+ threeDSMethodData: o
214
236
  });
215
237
  }
216
238
  }
217
239
  export {
218
- J as DefaultThreeDsProvider,
219
- V as THREE_DS_CHALLENGE_COMPLETE,
220
- q as THREE_DS_METHOD_INVOCATION_COMPLETE
240
+ V as DefaultThreeDsProvider,
241
+ O as THREE_DS_CHALLENGE_COMPLETE,
242
+ w as THREE_DS_METHOD_INVOCATION_COMPLETE
221
243
  };
@@ -0,0 +1,89 @@
1
+ var h = Object.defineProperty;
2
+ var c = (s, t, e) => t in s ? h(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
+ var l = (s, t, e) => c(s, typeof t != "symbol" ? t + "" : t, e);
4
+ import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-wZIfgkTX.js";
5
+ import { d as p, r as u, o as D, a as m, c as g, b as a, e as f, C as S, u as T, _, f as y } from "./ThreeDsProvider.interface-CV7f0rWx.js";
6
+ const C = { class: "mask" }, v = { class: "wrapper" }, P = { class: "container" }, I = ["action"], A = ["value"], V = /* @__PURE__ */ p({
7
+ __name: "ecentric",
8
+ props: {
9
+ threeDSServerTransID: {},
10
+ acsTransID: {},
11
+ formAction: {},
12
+ authenticationValue: {}
13
+ },
14
+ setup(s) {
15
+ const t = s, e = u(null), n = t.authenticationValue;
16
+ return D(() => {
17
+ var r;
18
+ (r = e.value) == null || r.submit();
19
+ }), (r, o) => (m(), g("div", C, [
20
+ a("div", v, [
21
+ a("div", P, [
22
+ f(S, {
23
+ onClick: o[0] || (o[0] = (i) => r.emit("close"))
24
+ }),
25
+ o[1] || (o[1] = a("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
26
+ a("form", {
27
+ action: t.formAction,
28
+ target: "ThreeDsChallengeIFrame",
29
+ method: "post",
30
+ ref_key: "form",
31
+ ref: e
32
+ }, [
33
+ a("input", {
34
+ type: "hidden",
35
+ name: "PaReq",
36
+ value: T(n)
37
+ }, null, 8, A)
38
+ ], 8, I)
39
+ ])
40
+ ])
41
+ ]));
42
+ }
43
+ }), E = /* @__PURE__ */ _(V, [["__scopeId", "data-v-8d26953f"]]);
44
+ class F extends d {
45
+ constructor() {
46
+ super(...arguments);
47
+ l(this, "paResPayload", "");
48
+ }
49
+ getType() {
50
+ return "Ecentric";
51
+ }
52
+ onPostAuth() {
53
+ var e;
54
+ this.log(`[${this.getType()}][onPostAuth]`, {
55
+ threeDSServerTransID: this.threeDSServerTransID,
56
+ authenticationValue: this.paResPayload
57
+ }), (e = this.threeDsProcessor) == null || e.onPostAuth({
58
+ threeDSServerTransID: this.threeDSServerTransID,
59
+ authenticationValue: this.paResPayload
60
+ }, this.onSuccess, this.onError);
61
+ }
62
+ doChallenge(e, n, r) {
63
+ this.log(`[${this.getType()}][doChallenge]`);
64
+ const { destroy: o } = y({
65
+ el: document.body,
66
+ component: E,
67
+ props: {
68
+ threeDSServerTransID: this.threeDSServerTransID,
69
+ acsTransID: n,
70
+ formAction: e,
71
+ authenticationValue: r
72
+ },
73
+ on: {
74
+ close: () => {
75
+ var i;
76
+ o(), this.threeDSDestroy = () => {
77
+ }, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
78
+ }
79
+ }
80
+ });
81
+ this.threeDSDestroy = o;
82
+ }
83
+ challengeComplete(e) {
84
+ this.log(`[${this.getType()}]: 3Ds Challenge complete`, e.data), this.closeChallenge(), this.log(`[${this.getType()}]: cresData`, e.data.cres), e.data.cres ? (this.paResPayload = e.data.cres, this.onPostAuth()) : (this.log(`[${this.getType()}]: Failed 3DS Challenge`, e.data), this.onError(400, "Failed 3DS Challenge"));
85
+ }
86
+ }
87
+ export {
88
+ F as EcentricThreeDsProvider
89
+ };
@@ -1,7 +1,5 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
2
- import "./DefaultThreeDsProvider-bc94590f.mjs";
3
- import "./main-0d5d595b.mjs";
4
- class i extends e {
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BUcb67jM.js";
2
+ class a extends e {
5
3
  getType() {
6
4
  return "EPNA";
7
5
  }
@@ -10,5 +8,5 @@ class i extends e {
10
8
  }
11
9
  }
12
10
  export {
13
- i as EpnaThreeDsProvider
11
+ a as EpnaThreeDsProvider
14
12
  };
@@ -0,0 +1,12 @@
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-BUcb67jM.js";
2
+ class t extends e {
3
+ getType() {
4
+ return "FlashBanc";
5
+ }
6
+ getDomain() {
7
+ return "flashbanc.transactiongateway.com";
8
+ }
9
+ }
10
+ export {
11
+ t as FlashBancThreeDsProvider
12
+ };
@@ -1,43 +1,42 @@
1
1
  var i = Object.defineProperty;
2
- var l = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
- var o = (n, r, e) => (l(n, typeof r != "symbol" ? r + "" : r, e), e);
4
- import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-bc94590f.mjs";
5
- import { d as u, a as d, c as p, b as a, n as h, _, h as g } from "./main-0d5d595b.mjs";
6
- const m = { class: "mask" }, D = { class: "wrapper" }, S = ["src"], y = /* @__PURE__ */ u({
2
+ var l = (o, r, e) => r in o ? i(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
3
+ var n = (o, r, e) => l(o, typeof r != "symbol" ? r + "" : r, e);
4
+ import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-wZIfgkTX.js";
5
+ import { d, a as u, c as p, b as h, n as a, _ as g, f as D } from "./ThreeDsProvider.interface-CV7f0rWx.js";
6
+ const S = { class: "mask" }, m = { class: "wrapper" }, y = ["src"], f = /* @__PURE__ */ d({
7
7
  __name: "GPayments",
8
8
  props: {
9
- url: null,
10
- width: null,
11
- height: null
9
+ url: {},
10
+ width: {},
11
+ height: {}
12
12
  },
13
- setup(n) {
14
- const r = n;
13
+ setup(o) {
14
+ const r = o;
15
15
  function e() {
16
16
  return {
17
17
  width: `${r.width || 650}px`,
18
18
  height: `${r.height || 400}px`
19
19
  };
20
20
  }
21
- return (s, t) => (d(), p("div", m, [
22
- a("div", D, [
23
- a("div", {
21
+ return (s, t) => (u(), p("div", S, [
22
+ h("div", m, [
23
+ h("div", {
24
24
  class: "container",
25
- style: h([e(), { padding: "0", margin: "0" }])
25
+ style: a([e(), { padding: "0", margin: "0" }])
26
26
  }, [
27
- a("iframe", {
27
+ h("iframe", {
28
28
  src: r.url,
29
- style: h(e())
30
- }, null, 12, S)
29
+ style: a(e())
30
+ }, null, 12, y)
31
31
  ], 4)
32
32
  ])
33
33
  ]));
34
34
  }
35
- });
36
- const f = /* @__PURE__ */ _(y, [["__scopeId", "data-v-9b0ef3a8"]]);
37
- class A extends c {
35
+ }), _ = /* @__PURE__ */ g(f, [["__scopeId", "data-v-9b0ef3a8"]]);
36
+ class v extends c {
38
37
  constructor() {
39
38
  super(...arguments);
40
- o(this, "onDoAuthSuccess", (e, s) => {
39
+ n(this, "onDoAuthSuccess", (e, s) => {
41
40
  const t = JSON.parse(s);
42
41
  if (this.log(`[${this.getType()}][onDoAuthSuccess]`, t), !t.transStatus) {
43
42
  this.onError(e, "No transStatus specified");
@@ -56,7 +55,7 @@ class A extends c {
56
55
  break;
57
56
  }
58
57
  });
59
- o(this, "onInitAuthSuccess", (e, s) => {
58
+ n(this, "onInitAuthSuccess", (e, s) => {
60
59
  const t = JSON.parse(s);
61
60
  if (this.log(`[${this.getType()}][onInitAuthSuccess]`, t), !t.threeDSAuthURL) {
62
61
  this.onError(e, "No AuthUrl specified");
@@ -74,9 +73,9 @@ class A extends c {
74
73
  }
75
74
  doChallenge(e) {
76
75
  this.log(`[${this.getType()}][doChallenge]`);
77
- const { destroy: s } = g({
76
+ const { destroy: s } = D({
78
77
  el: document.body,
79
- component: f,
78
+ component: _,
80
79
  props: {
81
80
  url: e,
82
81
  width: 390,
@@ -101,5 +100,5 @@ class A extends c {
101
100
  }
102
101
  }
103
102
  export {
104
- A as GPaymentsThreeDsProvider
103
+ v as GPaymentsThreeDsProvider
105
104
  };