@payfurl/client 4.7.0 → 4.7.2
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.
- package/dist/sdk/{CxPayThreeDsProvider-DHyY0SJN.js → CxPayThreeDsProvider-7yh00m_f.js} +1 -1
- package/dist/sdk/{DefaultThreeDsProvider-BbyoW5gI.js → DefaultThreeDsProvider-Bs-1jjDE.js} +43 -43
- package/dist/sdk/{EcentricThreeDsProvider-CJkAKhCm.js → EcentricThreeDsProvider-BjVGZlb9.js} +26 -26
- package/dist/sdk/{EpnaThreeDsProvider-CbuCAz8E.js → EpnaThreeDsProvider-D-jEeUhd.js} +1 -1
- package/dist/sdk/{FlashBancThreeDsProvider-yEpICp2s.js → FlashBancThreeDsProvider-Cov5ey75.js} +1 -1
- package/dist/sdk/{GPaymentsThreeDsProvider-ZzFlXQYx.js → GPaymentsThreeDsProvider-DC48F4-s.js} +23 -22
- package/dist/sdk/{MetricsGlobalThreeDsProvider-COVvDD_A.js → MetricsGlobalThreeDsProvider-D1adNHH6.js} +10 -10
- package/dist/sdk/{NmiThreeDsProvider-CyQ9ToCv.js → NmiThreeDsProvider-UdLXXANS.js} +1 -1
- package/dist/sdk/{NuveiThreeDsProvider-wpWbdDVQ.js → NuveiThreeDsProvider-Da4x--0n.js} +3 -3
- package/dist/sdk/{PayGLocalThreeDsProvider-piT2VTln.js → PayGLocalThreeDsProvider-BnHoCS8k.js} +33 -33
- package/dist/sdk/{PayWayAppleButton-lOpUyVhK.js → PayWayAppleButton-BnfVXscK.js} +1 -1
- package/dist/sdk/{PayabliThreeDsProvider-chEmLOO6.js → PayabliThreeDsProvider-DputC3bO.js} +1 -1
- package/dist/sdk/{SkyBankThreeDsProvider-B1KB-MBu.js → SkyBankThreeDsProvider-Dv1Vr_P5.js} +1 -1
- package/dist/sdk/{cxpay-CkpinAwr.js → cxpay-DvznoDgN.js} +1 -1
- package/dist/sdk/{default-CCjRF2gJ.js → default-C5N621sA.js} +1 -1
- package/dist/sdk/{ecentric-C7aOx_5y.js → ecentric-CAuUEG5b.js} +1 -1
- package/dist/sdk/{epna-C3FB2xZQ.js → epna-diKGQ91-.js} +1 -1
- package/dist/sdk/{flashbanc-tBq9tJrU.js → flashbanc-D8UHX81f.js} +1 -1
- package/dist/sdk/{ThreeDsProvider.interface-BcufVMJY.js → fraudStatus.type-C4L24YnC.js} +3219 -3141
- package/dist/sdk/{gpayments-utHsl2Sf.js → gpayments-C4CSZg2r.js} +1 -1
- package/dist/sdk/{metrics_global-CP2_hsNY.js → metrics_global-BawXVoSi.js} +1 -1
- package/dist/sdk/{nmi-Crex5ZZF.js → nmi-LmUsZTYy.js} +1 -1
- package/dist/sdk/{nuvei-DFcv1FC6.js → nuvei-DXKVuVRr.js} +1 -1
- package/dist/sdk/{payabli-C_GFUDE_.js → payabli-7PdId67j.js} +1 -1
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +15 -15
- package/dist/sdk/{payglocal-CfnXIS4O.js → payglocal-vL14oF4n.js} +1 -1
- package/dist/sdk/{payway_rest-Bl-RqdsM.js → payway_rest-Ca-gqNG3.js} +1 -1
- package/dist/sdk/{skybank-ChiLuKWf.js → skybank-B8zqMe9Y.js} +1 -1
- package/dist/sdk/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
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,
|
|
5
|
-
const
|
|
4
|
+
import { d as p, c as m, i as g, o as T, a as f, b as I, e as l, f as y, C as A, u as C, r as E, _ as v, T as _, h as R, j as P } from "./fraudStatus.type-C4L24YnC.js";
|
|
5
|
+
const U = { class: "mask" }, $ = { class: "wrapper" }, b = { class: "container" }, L = ["action"], M = ["value"], k = /* @__PURE__ */ p({
|
|
6
6
|
__name: "ThreeDsChallenge",
|
|
7
7
|
props: {
|
|
8
8
|
threeDSServerTransID: {},
|
|
@@ -11,43 +11,43 @@ const R = { class: "mask" }, P = { class: "wrapper" }, U = { class: "container"
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["close", "submit"],
|
|
13
13
|
setup(n, { emit: e }) {
|
|
14
|
-
const s = n, t = e, o = g(
|
|
14
|
+
const s = n, t = e, o = m(() => g(s.formAction) ? s.formAction : ""), a = E(null), h = 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
|
-
}),
|
|
21
|
-
return
|
|
20
|
+
}), u = encodeURI(window.btoa(h).replace(/=*$/, ""));
|
|
21
|
+
return T(() => {
|
|
22
22
|
var c;
|
|
23
|
-
(c =
|
|
24
|
-
}), (c,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
onClick:
|
|
23
|
+
o.value && ((c = a.value) == null || c.submit());
|
|
24
|
+
}), (c, i) => (f(), I("div", U, [
|
|
25
|
+
l("div", $, [
|
|
26
|
+
l("div", b, [
|
|
27
|
+
y(A, {
|
|
28
|
+
onClick: i[0] || (i[0] = (V) => t("close")),
|
|
29
29
|
id: "3ds-challenge-close"
|
|
30
30
|
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
action:
|
|
31
|
+
i[1] || (i[1] = l("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
|
|
32
|
+
l("form", {
|
|
33
|
+
action: o.value,
|
|
34
34
|
target: "ThreeDsChallengeIFrame",
|
|
35
35
|
method: "post",
|
|
36
36
|
ref_key: "form",
|
|
37
|
-
ref:
|
|
37
|
+
ref: a
|
|
38
38
|
}, [
|
|
39
|
-
|
|
39
|
+
l("input", {
|
|
40
40
|
type: "hidden",
|
|
41
41
|
name: "creq",
|
|
42
|
-
value: C(
|
|
43
|
-
}, null, 8,
|
|
44
|
-
], 8,
|
|
42
|
+
value: C(u)
|
|
43
|
+
}, null, 8, M)
|
|
44
|
+
], 8, L)
|
|
45
45
|
])
|
|
46
46
|
])
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
50
|
-
class
|
|
49
|
+
}), N = /* @__PURE__ */ v(k, [["__scopeId", "data-v-07081e85"]]);
|
|
50
|
+
class w {
|
|
51
51
|
constructor() {
|
|
52
52
|
r(this, "iframeId", "threeDsIframeMethod");
|
|
53
53
|
r(this, "containerId", "payfurlContainerFormInvoker");
|
|
@@ -58,19 +58,19 @@ class k {
|
|
|
58
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
59
|
}
|
|
60
60
|
invoke(e, s, t, o, a) {
|
|
61
|
-
var
|
|
61
|
+
var u;
|
|
62
62
|
this.createIFrame();
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
for (let
|
|
66
|
-
const
|
|
67
|
-
|
|
63
|
+
const h = document.createElement("form");
|
|
64
|
+
h.action = e, h.target = this.iframeId, h.method = "post", (u = this.container) == null || u.appendChild(h);
|
|
65
|
+
for (let c in t) {
|
|
66
|
+
const i = document.createElement("input");
|
|
67
|
+
i.type = "hidden", i.name = c, i.value = t[c], h.appendChild(i);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
h.submit();
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const { hideSpinner:
|
|
73
|
-
class
|
|
72
|
+
const { hideSpinner: D, showSpinner: O } = P(), H = "3ds_method_invocation_complete", q = "3ds_challenge_complete";
|
|
73
|
+
class x {
|
|
74
74
|
constructor(e, s, t) {
|
|
75
75
|
r(this, "log");
|
|
76
76
|
r(this, "container");
|
|
@@ -85,7 +85,7 @@ class V {
|
|
|
85
85
|
r(this, "internalMessageHandler", this.messageHandler.bind(this));
|
|
86
86
|
r(this, "onError", (e, s) => {
|
|
87
87
|
var t, o;
|
|
88
|
-
if (this.closeChallenge(),
|
|
88
|
+
if (this.closeChallenge(), D(), e === 404) {
|
|
89
89
|
(t = this.threeDsProcessor) == null || t.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
@@ -93,7 +93,7 @@ class V {
|
|
|
93
93
|
});
|
|
94
94
|
r(this, "onSuccess", (e, s) => {
|
|
95
95
|
var o, a;
|
|
96
|
-
this.closeChallenge(),
|
|
96
|
+
this.closeChallenge(), D();
|
|
97
97
|
const t = JSON.parse(s);
|
|
98
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" }));
|
|
99
99
|
});
|
|
@@ -160,7 +160,7 @@ class V {
|
|
|
160
160
|
return "";
|
|
161
161
|
}
|
|
162
162
|
onPreAuth() {
|
|
163
|
-
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (
|
|
163
|
+
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (O(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
|
|
164
164
|
}
|
|
165
165
|
onAuth(e, s) {
|
|
166
166
|
var t;
|
|
@@ -184,12 +184,12 @@ class V {
|
|
|
184
184
|
}
|
|
185
185
|
messageHandler(e) {
|
|
186
186
|
var s, t;
|
|
187
|
-
if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) ===
|
|
188
|
-
if (e.data.status ===
|
|
187
|
+
if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) === _)) {
|
|
188
|
+
if (e.data.status === H) {
|
|
189
189
|
e.stopPropagation(), this.invocationComplete(e);
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
-
e.data.status ===
|
|
192
|
+
e.data.status === q && (e.stopPropagation(), this.challengeComplete(e));
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
invocationComplete(e) {
|
|
@@ -201,10 +201,10 @@ class V {
|
|
|
201
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"));
|
|
202
202
|
}
|
|
203
203
|
doChallenge(e, s, t) {
|
|
204
|
-
this.log(`[${this.getType()}][doChallenge]`),
|
|
205
|
-
const { destroy: o } =
|
|
204
|
+
this.log(`[${this.getType()}][doChallenge]`), D();
|
|
205
|
+
const { destroy: o } = R({
|
|
206
206
|
el: document.body,
|
|
207
|
-
component:
|
|
207
|
+
component: N,
|
|
208
208
|
props: {
|
|
209
209
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
210
210
|
acsTransID: s,
|
|
@@ -231,13 +231,13 @@ class V {
|
|
|
231
231
|
threeDSServerTransID: e,
|
|
232
232
|
threeDSMethodNotificationURL: this.options.apiUrl + "/3ds/method_invocation"
|
|
233
233
|
}, o = encodeURI(window.btoa(JSON.stringify(t)).replace(/=*$/, ""));
|
|
234
|
-
new
|
|
234
|
+
new w().invoke(s, "POST", {
|
|
235
235
|
threeDSMethodData: o
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
export {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
x as DefaultThreeDsProvider,
|
|
241
|
+
q as THREE_DS_CHALLENGE_COMPLETE,
|
|
242
|
+
H as THREE_DS_METHOD_INVOCATION_COMPLETE
|
|
243
243
|
};
|
package/dist/sdk/{EcentricThreeDsProvider-CJkAKhCm.js → EcentricThreeDsProvider-BjVGZlb9.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
5
|
-
import { d as p,
|
|
6
|
-
const
|
|
4
|
+
import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-Bs-1jjDE.js";
|
|
5
|
+
import { d as p, c as u, i as m, o as D, a as f, b as g, e as a, f as S, C as T, u as _, r as y, _ as C, h as v } from "./fraudStatus.type-C4L24YnC.js";
|
|
6
|
+
const P = { class: "mask" }, I = { class: "wrapper" }, A = { class: "container" }, V = ["action"], E = ["value"], $ = /* @__PURE__ */ p({
|
|
7
7
|
__name: "ecentric",
|
|
8
8
|
props: {
|
|
9
9
|
threeDSServerTransID: {},
|
|
@@ -12,36 +12,36 @@ const C = { class: "mask" }, v = { class: "wrapper" }, P = { class: "container"
|
|
|
12
12
|
authenticationValue: {}
|
|
13
13
|
},
|
|
14
14
|
setup(s) {
|
|
15
|
-
const t = s, e = u(
|
|
15
|
+
const t = s, e = u(() => m(t.formAction) ? t.formAction : ""), n = y(null), i = t.authenticationValue;
|
|
16
16
|
return D(() => {
|
|
17
|
-
var
|
|
18
|
-
(
|
|
19
|
-
}), (
|
|
20
|
-
a("div",
|
|
21
|
-
a("div",
|
|
22
|
-
|
|
23
|
-
onClick:
|
|
17
|
+
var o;
|
|
18
|
+
e.value && ((o = n.value) == null || o.submit());
|
|
19
|
+
}), (o, r) => (f(), g("div", P, [
|
|
20
|
+
a("div", I, [
|
|
21
|
+
a("div", A, [
|
|
22
|
+
S(T, {
|
|
23
|
+
onClick: r[0] || (r[0] = (F) => o.emit("close"))
|
|
24
24
|
}),
|
|
25
|
-
|
|
25
|
+
r[1] || (r[1] = a("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
|
|
26
26
|
a("form", {
|
|
27
|
-
action:
|
|
27
|
+
action: e.value,
|
|
28
28
|
target: "ThreeDsChallengeIFrame",
|
|
29
29
|
method: "post",
|
|
30
30
|
ref_key: "form",
|
|
31
|
-
ref:
|
|
31
|
+
ref: n
|
|
32
32
|
}, [
|
|
33
33
|
a("input", {
|
|
34
34
|
type: "hidden",
|
|
35
35
|
name: "PaReq",
|
|
36
|
-
value:
|
|
37
|
-
}, null, 8,
|
|
38
|
-
], 8,
|
|
36
|
+
value: _(i)
|
|
37
|
+
}, null, 8, E)
|
|
38
|
+
], 8, V)
|
|
39
39
|
])
|
|
40
40
|
])
|
|
41
41
|
]));
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
44
|
-
class
|
|
43
|
+
}), k = /* @__PURE__ */ C($, [["__scopeId", "data-v-d0f7984c"]]);
|
|
44
|
+
class B extends d {
|
|
45
45
|
constructor() {
|
|
46
46
|
super(...arguments);
|
|
47
47
|
l(this, "paResPayload", "");
|
|
@@ -59,22 +59,22 @@ class F extends d {
|
|
|
59
59
|
authenticationValue: this.paResPayload
|
|
60
60
|
}, this.onSuccess, this.onError);
|
|
61
61
|
}
|
|
62
|
-
doChallenge(e, n,
|
|
62
|
+
doChallenge(e, n, i) {
|
|
63
63
|
this.log(`[${this.getType()}][doChallenge]`);
|
|
64
|
-
const { destroy: o } =
|
|
64
|
+
const { destroy: o } = v({
|
|
65
65
|
el: document.body,
|
|
66
|
-
component:
|
|
66
|
+
component: k,
|
|
67
67
|
props: {
|
|
68
68
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
69
69
|
acsTransID: n,
|
|
70
70
|
formAction: e,
|
|
71
|
-
authenticationValue:
|
|
71
|
+
authenticationValue: i
|
|
72
72
|
},
|
|
73
73
|
on: {
|
|
74
74
|
close: () => {
|
|
75
|
-
var
|
|
75
|
+
var r;
|
|
76
76
|
o(), this.threeDSDestroy = () => {
|
|
77
|
-
}, (
|
|
77
|
+
}, (r = this.threeDsProcessor) == null || r.onError({ error: "Challenge cancelled" });
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
});
|
|
@@ -85,5 +85,5 @@ class F extends d {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
B as EcentricThreeDsProvider
|
|
89
89
|
};
|
package/dist/sdk/{GPaymentsThreeDsProvider-ZzFlXQYx.js → GPaymentsThreeDsProvider-DC48F4-s.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (o, r, e) =>
|
|
4
|
-
import { DefaultThreeDsProvider as
|
|
5
|
-
import { d, c as
|
|
6
|
-
const
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var c = (o, r, e) => r in o ? l(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
|
|
3
|
+
var n = (o, r, e) => c(o, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-Bs-1jjDE.js";
|
|
5
|
+
import { d as u, c as p, i, a as g, b as m, e as a, n as h, _ as D, h as S } from "./fraudStatus.type-C4L24YnC.js";
|
|
6
|
+
const y = { class: "mask" }, f = { class: "wrapper" }, _ = ["src"], C = /* @__PURE__ */ u({
|
|
7
7
|
__name: "GPayments",
|
|
8
8
|
props: {
|
|
9
9
|
url: {},
|
|
@@ -11,29 +11,29 @@ const S = { class: "mask" }, m = { class: "wrapper" }, y = ["src"], f = /* @__PU
|
|
|
11
11
|
height: {}
|
|
12
12
|
},
|
|
13
13
|
setup(o) {
|
|
14
|
-
const r = o;
|
|
15
|
-
function
|
|
14
|
+
const r = o, e = p(() => i(r.url) ? r.url : "");
|
|
15
|
+
function s() {
|
|
16
16
|
return {
|
|
17
17
|
width: `${r.width || 650}px`,
|
|
18
18
|
height: `${r.height || 400}px`
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
return (t, U) => (g(), m("div", y, [
|
|
22
|
+
a("div", f, [
|
|
23
|
+
a("div", {
|
|
24
24
|
class: "container",
|
|
25
|
-
style:
|
|
25
|
+
style: h([s(), { padding: "0", margin: "0" }])
|
|
26
26
|
}, [
|
|
27
|
-
|
|
28
|
-
src:
|
|
29
|
-
style:
|
|
30
|
-
}, null, 12,
|
|
27
|
+
a("iframe", {
|
|
28
|
+
src: e.value,
|
|
29
|
+
style: h(s())
|
|
30
|
+
}, null, 12, _)
|
|
31
31
|
], 4)
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
36
|
-
class
|
|
35
|
+
}), T = /* @__PURE__ */ D(C, [["__scopeId", "data-v-cf5aa816"]]);
|
|
36
|
+
class $ extends d {
|
|
37
37
|
constructor() {
|
|
38
38
|
super(...arguments);
|
|
39
39
|
n(this, "onDoAuthSuccess", (e, s) => {
|
|
@@ -73,9 +73,9 @@ class v extends c {
|
|
|
73
73
|
}
|
|
74
74
|
doChallenge(e) {
|
|
75
75
|
this.log(`[${this.getType()}][doChallenge]`);
|
|
76
|
-
const { destroy: s } =
|
|
76
|
+
const { destroy: s } = S({
|
|
77
77
|
el: document.body,
|
|
78
|
-
component:
|
|
78
|
+
component: T,
|
|
79
79
|
props: {
|
|
80
80
|
url: e,
|
|
81
81
|
width: 390,
|
|
@@ -94,11 +94,12 @@ class v extends c {
|
|
|
94
94
|
this.log(`[${this.getType()}]: 3Ds Challenge complete`, e.data), this.closeChallenge(), this.onPostAuth();
|
|
95
95
|
}
|
|
96
96
|
initFrame(e) {
|
|
97
|
-
this.log(`[${this.getType()}][init3DSFrame]`, e)
|
|
97
|
+
if (this.log(`[${this.getType()}][init3DSFrame]`, e), !i(e))
|
|
98
|
+
return;
|
|
98
99
|
const s = document.createElement("iframe");
|
|
99
100
|
s.src = e, s.style.width = "1px", s.style.height = "1px", s.style.border = "0", document.body.appendChild(s);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
export {
|
|
103
|
-
|
|
104
|
+
$ as GPaymentsThreeDsProvider
|
|
104
105
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var E = Object.defineProperty;
|
|
2
2
|
var _ = (h, o, t) => o in h ? E(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t;
|
|
3
3
|
var m = (h, o, t) => _(h, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
-
import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d as v,
|
|
4
|
+
import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-Bs-1jjDE.js";
|
|
5
|
+
import { d as v, o as T, k as b, w as L, v as N, a as x, b as I, e as g, f as G, C as $, r as H, _ as M, s as p, h as k, j as F } from "./fraudStatus.type-C4L24YnC.js";
|
|
6
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 =
|
|
10
|
+
const t = o, e = H(!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
|
|
15
|
+
return T(() => {
|
|
16
16
|
window.addEventListener("message", s);
|
|
17
|
-
}),
|
|
17
|
+
}), b(() => {
|
|
18
18
|
window.removeEventListener("message", s);
|
|
19
|
-
}), (r, i) =>
|
|
19
|
+
}), (r, i) => L((x(), I("div", O, [
|
|
20
20
|
g("div", U, [
|
|
21
21
|
g("div", j, [
|
|
22
|
-
|
|
22
|
+
G($, {
|
|
23
23
|
onClick: i[0] || (i[0] = (D) => t("close")),
|
|
24
24
|
id: "3ds-challenge-close"
|
|
25
25
|
}),
|
|
@@ -27,10 +27,10 @@ const O = { class: "mask" }, U = { class: "wrapper" }, j = { class: "container"
|
|
|
27
27
|
])
|
|
28
28
|
])
|
|
29
29
|
], 512)), [
|
|
30
|
-
[
|
|
30
|
+
[N, e.value]
|
|
31
31
|
]);
|
|
32
32
|
}
|
|
33
|
-
}), W = /* @__PURE__ */ M(B, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: R } =
|
|
33
|
+
}), W = /* @__PURE__ */ M(B, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: R } = F(), u = 5;
|
|
34
34
|
class q extends A {
|
|
35
35
|
constructor(t, e, s) {
|
|
36
36
|
var r;
|
|
@@ -120,7 +120,7 @@ class q extends A {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
initChallenge() {
|
|
123
|
-
const { destroy: t } =
|
|
123
|
+
const { destroy: t } = k({
|
|
124
124
|
el: document.body,
|
|
125
125
|
component: W,
|
|
126
126
|
on: {
|
|
@@ -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,
|
|
5
|
-
import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-
|
|
4
|
+
import { d as m, j as d, o as g, a as D, b as S, e as l, _ as f, s as y, h as P } from "./fraudStatus.type-C4L24YnC.js";
|
|
5
|
+
import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-Bs-1jjDE.js";
|
|
6
6
|
const C = { class: "mask" }, _ = /* @__PURE__ */ m({
|
|
7
7
|
__name: "nuvei",
|
|
8
8
|
props: {
|
|
@@ -73,7 +73,7 @@ const C = { class: "mask" }, _ = /* @__PURE__ */ m({
|
|
|
73
73
|
window.postMessage({ status: "3ds_challenge_complete", cres: a }, "*");
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
return (s, a) => (
|
|
76
|
+
return (s, a) => (D(), S("div", C, [...a[0] || (a[0] = [
|
|
77
77
|
l("div", { class: "wrapper" }, [
|
|
78
78
|
l("div", { class: "container" })
|
|
79
79
|
], -1)
|
package/dist/sdk/{PayGLocalThreeDsProvider-piT2VTln.js → PayGLocalThreeDsProvider-BnHoCS8k.js}
RENAMED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
|
|
1
|
+
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-Bs-1jjDE.js";
|
|
2
|
+
import { o as p, k as D, I as _, r as f, d as w, c as E, i as I, l as L, a as S, b as k, e as u, _ as R, s as c, h as U } from "./fraudStatus.type-C4L24YnC.js";
|
|
3
|
+
const h = f(!1);
|
|
4
|
+
function b(s, ...e) {
|
|
5
|
+
h.value && console.log(s, e);
|
|
6
6
|
}
|
|
7
7
|
function m(s) {
|
|
8
8
|
var e, o;
|
|
9
|
-
(e = s == null ? void 0 : s.data) != null && e.status && s.data.status ===
|
|
9
|
+
(e = s == null ? void 0 : s.data) != null && e.status && s.data.status === _ && (h.value = !!((o = s == null ? void 0 : s.data) != null && o.debug));
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function A() {
|
|
12
12
|
return p(() => {
|
|
13
13
|
window.addEventListener("message", m);
|
|
14
14
|
}), D(() => {
|
|
15
15
|
window.removeEventListener("message", m);
|
|
16
16
|
}), {
|
|
17
|
-
debug:
|
|
18
|
-
logMessage:
|
|
17
|
+
debug: h,
|
|
18
|
+
logMessage: b
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const M = { class: "modal-mask" }, v = { class: "modal-wrapper" }, x = ["src"], G = /* @__PURE__ */ w({
|
|
22
22
|
__name: "PayGLocalThreeDsChallenge",
|
|
23
23
|
props: {
|
|
24
24
|
url: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["close"],
|
|
27
27
|
setup(s, { emit: e }) {
|
|
28
|
-
const { logMessage: o } =
|
|
29
|
-
|
|
30
|
-
a.value =
|
|
28
|
+
const { logMessage: o } = A(), r = s, t = e, a = f(r.url), i = E(() => I(a.value) ? a.value : "");
|
|
29
|
+
L(() => r.url, (n) => {
|
|
30
|
+
a.value = n;
|
|
31
31
|
}), p(() => {
|
|
32
|
-
window.addEventListener("message",
|
|
32
|
+
window.addEventListener("message", d);
|
|
33
33
|
}), D(() => {
|
|
34
|
-
window.removeEventListener("message",
|
|
34
|
+
window.removeEventListener("message", d);
|
|
35
35
|
});
|
|
36
|
-
function n
|
|
36
|
+
function d(n) {
|
|
37
37
|
var g;
|
|
38
|
-
if (o("PayGLocalThreeDsChallenge: Message received",
|
|
39
|
-
const l =
|
|
38
|
+
if (o("PayGLocalThreeDsChallenge: Message received", n.data), !((g = n == null ? void 0 : n.data) != null && g["payglocal-token"])) return;
|
|
39
|
+
const l = n.data["payglocal-token"];
|
|
40
40
|
o("Token received", l);
|
|
41
|
-
const
|
|
42
|
-
t("close",
|
|
41
|
+
const P = l.split(".")[1], T = window.atob(P), C = JSON.parse(T);
|
|
42
|
+
t("close", C);
|
|
43
43
|
}
|
|
44
|
-
return (
|
|
45
|
-
u("div",
|
|
44
|
+
return (n, l) => (S(), k("div", M, [
|
|
45
|
+
u("div", v, [
|
|
46
46
|
u("iframe", {
|
|
47
|
-
src:
|
|
47
|
+
src: i.value,
|
|
48
48
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
49
|
-
}, null, 8,
|
|
49
|
+
}, null, 8, x)
|
|
50
50
|
])
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
class
|
|
53
|
+
}), $ = /* @__PURE__ */ R(G, [["__scopeId", "data-v-0699f67d"]]);
|
|
54
|
+
class N extends y {
|
|
55
55
|
getType() {
|
|
56
56
|
return "PayGLocal";
|
|
57
57
|
}
|
|
@@ -59,8 +59,8 @@ class v extends C {
|
|
|
59
59
|
var e, o, r;
|
|
60
60
|
if (this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId()) {
|
|
61
61
|
(o = this.threeDsProcessor) == null || o.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (t, a) => {
|
|
62
|
-
var
|
|
63
|
-
this.log(`[${this.getType()}]: getCardDetails`, t, a), (
|
|
62
|
+
var i;
|
|
63
|
+
this.log(`[${this.getType()}]: getCardDetails`, t, a), (i = this.threeDsProcessor) == null || i.setPaymentInfo(t), this.initChallenge(a.RedirectUrl);
|
|
64
64
|
}, () => {
|
|
65
65
|
c(this.container, "Unable to get card information");
|
|
66
66
|
});
|
|
@@ -81,15 +81,15 @@ class v extends C {
|
|
|
81
81
|
c(this.container, "3D Secure URL is missing");
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
const { destroy: o } =
|
|
84
|
+
const { destroy: o } = U({
|
|
85
85
|
el: document.body,
|
|
86
|
-
component:
|
|
86
|
+
component: $,
|
|
87
87
|
props: {
|
|
88
88
|
url: e
|
|
89
89
|
},
|
|
90
90
|
on: {
|
|
91
91
|
close: (r) => {
|
|
92
|
-
var t, a,
|
|
92
|
+
var t, a, i;
|
|
93
93
|
if (this.closeChallenge(), this.log(`[${this.getType()}]: Challenge Results`, r), r.status === "AUTHORIZED") {
|
|
94
94
|
(t = this.threeDsProcessor) == null || t.onSuccess({
|
|
95
95
|
acsRenderingType: {},
|
|
@@ -115,7 +115,7 @@ class v extends C {
|
|
|
115
115
|
(a = this.threeDsProcessor) == null || a.onError({ error: "Challenge cancelled" });
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
(
|
|
118
|
+
(i = this.threeDsProcessor) == null || i.onError({ error: "3D Secure failed" });
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
});
|
|
@@ -123,5 +123,5 @@ class v extends C {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
N as PayGLocalThreeDsProvider
|
|
127
127
|
};
|
|
@@ -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 "./
|
|
4
|
+
import { R as A, g as v, H as C } from "./fraudStatus.type-C4L24YnC.js";
|
|
5
5
|
const d = {
|
|
6
6
|
CHECKOUT: "CHECKOUT",
|
|
7
7
|
CHARGE: "CHARGE"
|