@payfurl/client 4.6.17 → 4.6.19

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 (71) hide show
  1. package/dist/sdk/CxPayThreeDsProvider-qI6LA8iK.js +12 -0
  2. package/dist/sdk/{DefaultThreeDsProvider-5bbd9bcd.mjs → DefaultThreeDsProvider-BKnpkX8X.js} +88 -66
  3. package/dist/sdk/EcentricThreeDsProvider-Dor61dsV.js +89 -0
  4. package/dist/sdk/{EpnaThreeDsProvider-c1f5c9fa.mjs → EpnaThreeDsProvider-6j4cBf2g.js} +3 -5
  5. package/dist/sdk/FlashBancThreeDsProvider-B1IMjfpm.js +12 -0
  6. package/dist/sdk/{GPaymentsThreeDsProvider-16dc92e6.mjs → GPaymentsThreeDsProvider-PKB94NB4.js} +24 -25
  7. package/dist/sdk/{MetricsGlobalThreeDsProvider-7d0227b3.mjs → MetricsGlobalThreeDsProvider-CkIGiDkd.js} +50 -51
  8. package/dist/sdk/{NmiThreeDsProvider-8ce84e51.mjs → NmiThreeDsProvider-CcMEqhmQ.js} +3 -5
  9. package/dist/sdk/{NuveiThreeDsProvider-82d61208.mjs → NuveiThreeDsProvider-CwXxM_h7.js} +57 -58
  10. package/dist/sdk/PayGLocalThreeDsProvider-sIfhhTia.js +127 -0
  11. package/dist/sdk/{PayWayAppleButton-1a850092.mjs → PayWayAppleButton-BhhFv3LB.js} +5 -6
  12. package/dist/sdk/{PayabliThreeDsProvider-0cb53366.mjs → PayabliThreeDsProvider-Dbril8Rp.js} +3 -5
  13. package/dist/sdk/{SkyBankThreeDsProvider-141ecfd6.mjs → SkyBankThreeDsProvider-C07fNAvi.js} +3 -5
  14. package/dist/sdk/ThreeDsProvider.interface-5bg05KgY.js +12863 -0
  15. package/dist/sdk/cxpay-CEQ4-BTN.js +7 -0
  16. package/dist/sdk/default-C_HQSLX4.js +7 -0
  17. package/dist/sdk/ecentric-BNc1h8Eo.js +7 -0
  18. package/dist/sdk/epna-B9Y2q1w-.js +7 -0
  19. package/dist/sdk/flashbanc-C0Ty8vp7.js +7 -0
  20. package/dist/sdk/{forter-b1affe9e.mjs → forter-CfW26Mkn.js} +2 -2
  21. package/dist/sdk/gpayments-rnHqXJDK.js +7 -0
  22. package/dist/sdk/icons/Amex.svg +17 -0
  23. package/dist/sdk/icons/ApplePay.svg +13 -0
  24. package/dist/sdk/icons/BankPayment.svg +3 -0
  25. package/dist/sdk/icons/Card.svg +12 -0
  26. package/dist/sdk/icons/ClickToPay.svg +1 -1
  27. package/dist/sdk/icons/Diners.svg +165 -0
  28. package/dist/sdk/icons/Discover.svg +61 -0
  29. package/dist/sdk/icons/GooglePay.svg +18 -0
  30. package/dist/sdk/icons/Maestro.svg +69 -0
  31. package/dist/sdk/icons/Mastercard.svg +89 -0
  32. package/dist/sdk/icons/PayByAccount.svg +27 -28
  33. package/dist/sdk/icons/PayId.svg +10 -12
  34. package/dist/sdk/icons/PayPal.svg +39 -0
  35. package/dist/sdk/icons/PayTo.svg +5 -0
  36. package/dist/sdk/icons/Pesapal.svg +622 -10
  37. package/dist/sdk/icons/Shift.svg +21 -12
  38. package/dist/sdk/icons/Upi.svg +148 -300
  39. package/dist/sdk/icons/Visa.svg +29 -0
  40. package/dist/sdk/metrics_global-B6yYoxRR.js +7 -0
  41. package/dist/sdk/nmi-2JLTZ129.js +7 -0
  42. package/dist/sdk/nuvei-Bh2t9NPs.js +7 -0
  43. package/dist/sdk/payabli-NfqCrBOu.js +7 -0
  44. package/dist/sdk/payfurl.es.js +1 -1
  45. package/dist/sdk/payfurl.umd.js +18 -26
  46. package/dist/sdk/payglocal-D3sg1uGV.js +7 -0
  47. package/dist/sdk/payway_rest-B7rIKWt2.js +7 -0
  48. package/dist/sdk/skybank-CrMnPsZ3.js +7 -0
  49. package/dist/sdk/style.css +1 -1
  50. package/package.json +26 -20
  51. package/dist/sdk/CxPayThreeDsProvider-02e1c15d.mjs +0 -14
  52. package/dist/sdk/EcentricThreeDsProvider-bed332f9.mjs +0 -90
  53. package/dist/sdk/FlashBancThreeDsProvider-9d5b3ff3.mjs +0 -14
  54. package/dist/sdk/PayGLocalThreeDsProvider-5aff4993.mjs +0 -129
  55. package/dist/sdk/ThreeDsProvider.interface-370c3a6b.mjs +0 -24
  56. package/dist/sdk/cxpay-b3193036.mjs +0 -10
  57. package/dist/sdk/default-e43840e4.mjs +0 -8
  58. package/dist/sdk/ecentric-81bae7f7.mjs +0 -9
  59. package/dist/sdk/epna-749c8efd.mjs +0 -10
  60. package/dist/sdk/flashbanc-402a9b0a.mjs +0 -10
  61. package/dist/sdk/gpayments-349c834c.mjs +0 -9
  62. package/dist/sdk/main-45dd3fda.mjs +0 -10947
  63. package/dist/sdk/metrics_global-1f068b80.mjs +0 -9
  64. package/dist/sdk/nmi-85bcc67a.mjs +0 -10
  65. package/dist/sdk/nuvei-1657def9.mjs +0 -9
  66. package/dist/sdk/payabli-abb7c149.mjs +0 -10
  67. package/dist/sdk/payglocal-8a34ab60.mjs +0 -9
  68. package/dist/sdk/payway_rest-ece82fc0.mjs +0 -8
  69. package/dist/sdk/skybank-60a82bbc.mjs +0 -10
  70. /package/dist/sdk/{ThreeDsPostAuthResponse.type-3091950f.mjs → ThreeDsPostAuthResponse.type-CaV_50Qh.js} +0 -0
  71. /package/dist/sdk/{fraudProvider.type-c77ee71c.mjs → fraudProvider.type-ewIWghbD.js} +0 -0
@@ -0,0 +1,12 @@
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-CkIGiDkd.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-45dd3fda.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-5bg05KgY.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-BKnpkX8X.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-5bg05KgY.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-7d0227b3.mjs";
2
- import "./DefaultThreeDsProvider-5bbd9bcd.mjs";
3
- import "./main-45dd3fda.mjs";
4
- class i extends e {
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-CkIGiDkd.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-CkIGiDkd.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-5bbd9bcd.mjs";
5
- import { d as u, a as d, c as p, b as a, n as h, _, h as g } from "./main-45dd3fda.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-BKnpkX8X.js";
5
+ import { d, a as u, c as p, b as h, n as a, _ as g, f as D } from "./ThreeDsProvider.interface-5bg05KgY.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
  };