@payfurl/react-plugin 1.0.6 → 1.0.8
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/{CxPayThreeDsProvider-4BCpCsdK-5y-jJAUH.js → CxPayThreeDsProvider-DUx0ZP9g-CZ0dDiUf.js} +1 -1
- package/dist/{DefaultThreeDsProvider-C8FSCo8b-Bifhwxc_.js → DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js} +12 -12
- package/dist/{EcentricThreeDsProvider-DMFPFtaO-B6oROY8T.js → EcentricThreeDsProvider-C0n-kUpY-B7faJJZS.js} +14 -14
- package/dist/{EpnaThreeDsProvider-B5S5hU_--Dsl9eOr2.js → EpnaThreeDsProvider-BlzPLUQj-5xYvlDhH.js} +1 -1
- package/dist/{FlashBancThreeDsProvider-luFjZ63i-BySOhThG.js → FlashBancThreeDsProvider-BZD1Bmox-CXii2Z5u.js} +1 -1
- package/dist/{GPaymentsThreeDsProvider-6qulsjP4-CfWQs-AG.js → GPaymentsThreeDsProvider-Dmc3T7m7-ClWUXsKr.js} +8 -8
- package/dist/{MetricsGlobalThreeDsProvider-CMbA70S4-DWNzNSwW.js → MetricsGlobalThreeDsProvider-D8pmLCaF-9Zn9KMBT.js} +18 -18
- package/dist/{NmiThreeDsProvider-CaDEfbnA-DS5gnDcf.js → NmiThreeDsProvider-D6MYO9TE-XP3i5DD0.js} +1 -1
- package/dist/{NuveiThreeDsProvider-NHowIDoE-_Je2HZn5.js → NuveiThreeDsProvider-B0_hr137-BSeS3Dtw.js} +44 -44
- package/dist/{PayGLocalThreeDsProvider-BURFf-eJ-CffD4wbC.js → PayGLocalThreeDsProvider-CcVtz_cC-CryvMpZk.js} +17 -17
- package/dist/{PayWayAppleButton-Kiqg1nWI-DlAdkLl4.js → PayWayAppleButton-DI0k_xsw-gdBZ6sUf.js} +1 -1
- package/dist/{PayabliThreeDsProvider-C6ourY3u-4S5vdBoa.js → PayabliThreeDsProvider-BTuW5mNX-zUudDCiq.js} +1 -1
- package/dist/{SkyBankThreeDsProvider-CocwPgj3-CSQSEtCI.js → SkyBankThreeDsProvider-CFsEdtDi-D_AeZUTT.js} +1 -1
- package/dist/{cxpay-BCOYAnDK-BUEsu20K.js → cxpay-CzXEk7uT-CHEaX1oC.js} +1 -1
- package/dist/{default-B9fgGMCu-cvfbDfsL.js → default-CVlT2ZTw-GAb6ONvT.js} +1 -1
- package/dist/{ecentric-BdxLq2Fp-DpZS-ORt.js → ecentric-p4HkLdd1-CNm1w3kN.js} +1 -1
- package/dist/{epna-VMfQGBHy-Db9GqDwv.js → epna-ugAK06qE-CkwGUb_w.js} +1 -1
- package/dist/{flashbanc-C5_gW-Ru-BLtd2df2.js → flashbanc-BD7QXswZ-Fdy1B6BS.js} +1 -1
- package/dist/{gpayments-ta5TF0Vv-DjYWBYkx.js → gpayments-BJ23p2Lx-QfoNtcpr.js} +1 -1
- package/dist/{index-CwPndRAR.js → index-gsXnNX5E.js} +4729 -4799
- package/dist/{metrics_global-B9vt1fuY-B-mFPkPv.js → metrics_global-Ce0HIVhq-DU1Eh9Do.js} +1 -1
- package/dist/nmi-Ci4ItU_O-Dp-mCkGK.js +7 -0
- package/dist/{nuvei-BfNusJeN-C-yeYE1M.js → nuvei-Dy9kXWcy-D3SDtRgj.js} +1 -1
- package/dist/{payabli-NvcAIz8a-CVrjJnVT.js → payabli-FwdYUjhG-AALDzHYk.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +27 -27
- package/dist/{payglocal-XRSVL_Mu-xTaim_K3.js → payglocal-DX_7nogS-CX5mt--e.js} +1 -1
- package/dist/{payway_rest-DYhBIk_r-i9UWjHTv.js → payway_rest-BMXIpCn0-DUHYQ0hf.js} +1 -1
- package/dist/plugins/payfurl/react/src/components/PayfurlDropin.d.ts +1 -0
- package/dist/{skybank-CLI49-PQ-AY_KHOf-.js → skybank-JGD9tw1a-Bnir5oV2.js} +1 -1
- package/dist/src/sdk/types/PaymentType.type.d.ts +2 -2
- package/package.json +2 -2
- package/dist/nmi-7Noaj-hm-C8r_dvJq.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as d,
|
|
1
|
+
import { c as d, M as S, P as g, z as p, U as m, i as T, J as v, q as I, N as u, $ as f, C as y, O as A, Y as C } from "./index-gsXnNX5E.js";
|
|
2
2
|
var R = Object.defineProperty, E = (l, e, s) => e in l ? R(l, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[e] = s, n = (l, e, s) => E(l, typeof e != "symbol" ? e + "" : e, s);
|
|
3
|
-
const P = { class: "mask" },
|
|
3
|
+
const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container" }, $ = ["action"], M = ["value"], L = /* @__PURE__ */ m({
|
|
4
4
|
__name: "ThreeDsChallenge",
|
|
5
5
|
props: {
|
|
6
6
|
threeDSServerTransID: {},
|
|
@@ -16,13 +16,13 @@ const P = { class: "mask" }, b = { class: "wrapper" }, U = { class: "container"
|
|
|
16
16
|
messageType: "CReq",
|
|
17
17
|
challengeWindowSize: "01"
|
|
18
18
|
}), r = encodeURI(window.btoa(i).replace(/=*$/, ""));
|
|
19
|
-
return
|
|
19
|
+
return I(() => {
|
|
20
20
|
var t;
|
|
21
21
|
(t = o.value) == null || t.submit();
|
|
22
|
-
}), (t, h) => (
|
|
23
|
-
u("div",
|
|
24
|
-
u("div",
|
|
25
|
-
y
|
|
22
|
+
}), (t, h) => (C(), v("div", P, [
|
|
23
|
+
u("div", U, [
|
|
24
|
+
u("div", b, [
|
|
25
|
+
f(y, {
|
|
26
26
|
onClick: h[0] || (h[0] = (c) => a("close")),
|
|
27
27
|
id: "3ds-challenge-close"
|
|
28
28
|
}),
|
|
@@ -37,14 +37,14 @@ const P = { class: "mask" }, b = { class: "wrapper" }, U = { class: "container"
|
|
|
37
37
|
u("input", {
|
|
38
38
|
type: "hidden",
|
|
39
39
|
name: "creq",
|
|
40
|
-
value:
|
|
41
|
-
}, null, 8,
|
|
40
|
+
value: A(r)
|
|
41
|
+
}, null, 8, M)
|
|
42
42
|
], 8, $)
|
|
43
43
|
])
|
|
44
44
|
])
|
|
45
45
|
]));
|
|
46
46
|
}
|
|
47
|
-
}), _ = /* @__PURE__ */ p(
|
|
47
|
+
}), _ = /* @__PURE__ */ p(L, [["__scopeId", "data-v-ac351494"]]);
|
|
48
48
|
class w {
|
|
49
49
|
constructor() {
|
|
50
50
|
n(this, "iframeId", "threeDsIframeMethod"), n(this, "containerId", "payfurlContainerFormInvoker"), n(this, "iframe", null), n(this, "container", null);
|
|
@@ -65,7 +65,7 @@ class w {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
const { hideSpinner: D, showSpinner: N } = d(), O = "3ds_method_invocation_complete", k = "3ds_challenge_complete";
|
|
68
|
-
class
|
|
68
|
+
class V {
|
|
69
69
|
constructor(e, s, a) {
|
|
70
70
|
n(this, "log"), n(this, "container"), n(this, "options"), n(this, "threeDsProcessor", null), n(this, "threeDSDestroy", () => {
|
|
71
71
|
}), n(this, "threeDSServerTransID", ""), n(this, "threeDSAuthURL", ""), n(this, "threeDSRequestorTransID", ""), n(this, "threeDSMonitorURL", ""), n(this, "internalMessageHandler", this.messageHandler.bind(this)), n(this, "onError", (o, i) => {
|
|
@@ -218,7 +218,7 @@ class q {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
export {
|
|
221
|
-
|
|
221
|
+
V as DefaultThreeDsProvider,
|
|
222
222
|
k as THREE_DS_CHALLENGE_COMPLETE,
|
|
223
223
|
O as THREE_DS_METHOD_INVOCATION_COMPLETE
|
|
224
224
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
1
|
+
import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
|
|
2
|
+
import { P as i, z as h, U as c, i as u, J as D, q as d, Y as p, N as o, $ as m, C as g, O as v } from "./index-gsXnNX5E.js";
|
|
3
3
|
var S = Object.defineProperty, T = (r, e, t) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, y = (r, e, t) => T(r, e + "", t);
|
|
4
|
-
const
|
|
4
|
+
const P = { class: "mask" }, f = { class: "wrapper" }, C = { class: "container" }, I = ["action"], A = ["value"], $ = /* @__PURE__ */ c({
|
|
5
5
|
__name: "ecentric",
|
|
6
6
|
props: {
|
|
7
7
|
threeDSServerTransID: {},
|
|
@@ -11,14 +11,14 @@ const f = { class: "mask" }, P = { class: "wrapper" }, I = { class: "container"
|
|
|
11
11
|
},
|
|
12
12
|
setup(r) {
|
|
13
13
|
const e = r, t = u(null), n = e.authenticationValue;
|
|
14
|
-
return
|
|
14
|
+
return d(() => {
|
|
15
15
|
var a;
|
|
16
16
|
(a = t.value) == null || a.submit();
|
|
17
|
-
}), (a, s) => (
|
|
18
|
-
o("div",
|
|
19
|
-
o("div",
|
|
20
|
-
|
|
21
|
-
onClick: s[0] || (s[0] = (
|
|
17
|
+
}), (a, s) => (p(), D("div", P, [
|
|
18
|
+
o("div", f, [
|
|
19
|
+
o("div", C, [
|
|
20
|
+
m(g, {
|
|
21
|
+
onClick: s[0] || (s[0] = (b) => a.emit("close"))
|
|
22
22
|
}),
|
|
23
23
|
s[1] || (s[1] = o("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
|
|
24
24
|
o("form", {
|
|
@@ -31,14 +31,14 @@ const f = { class: "mask" }, P = { class: "wrapper" }, I = { class: "container"
|
|
|
31
31
|
o("input", {
|
|
32
32
|
type: "hidden",
|
|
33
33
|
name: "PaReq",
|
|
34
|
-
value:
|
|
35
|
-
}, null, 8,
|
|
36
|
-
], 8,
|
|
34
|
+
value: v(n)
|
|
35
|
+
}, null, 8, A)
|
|
36
|
+
], 8, I)
|
|
37
37
|
])
|
|
38
38
|
])
|
|
39
39
|
]));
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), V = /* @__PURE__ */ h($, [["__scopeId", "data-v-8d26953f"]]);
|
|
42
42
|
class R extends l {
|
|
43
43
|
constructor() {
|
|
44
44
|
super(...arguments), y(this, "paResPayload", "");
|
|
@@ -60,7 +60,7 @@ class R extends l {
|
|
|
60
60
|
this.log(`[${this.getType()}][doChallenge]`);
|
|
61
61
|
const { destroy: a } = i({
|
|
62
62
|
el: document.body,
|
|
63
|
-
component:
|
|
63
|
+
component: V,
|
|
64
64
|
props: {
|
|
65
65
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
66
66
|
acsTransID: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as
|
|
2
|
-
import {
|
|
3
|
-
var d = Object.defineProperty, g = (r, e, t) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t,
|
|
1
|
+
import { DefaultThreeDsProvider as n } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
|
|
2
|
+
import { P as o, z as l, U as u, J as c, Y as p, N as h, E as i } from "./index-gsXnNX5E.js";
|
|
3
|
+
var d = Object.defineProperty, g = (r, e, t) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, a = (r, e, t) => g(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
const S = { class: "mask" }, D = { class: "wrapper" }, m = ["src"], y = /* @__PURE__ */ u({
|
|
5
5
|
__name: "GPayments",
|
|
6
6
|
props: {
|
|
@@ -16,7 +16,7 @@ const S = { class: "mask" }, D = { class: "wrapper" }, m = ["src"], y = /* @__PU
|
|
|
16
16
|
height: `${e.height || 400}px`
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
return (s, v) => (
|
|
19
|
+
return (s, v) => (p(), c("div", S, [
|
|
20
20
|
h("div", D, [
|
|
21
21
|
h("div", {
|
|
22
22
|
class: "container",
|
|
@@ -31,9 +31,9 @@ const S = { class: "mask" }, D = { class: "wrapper" }, m = ["src"], y = /* @__PU
|
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
33
|
}), f = /* @__PURE__ */ l(y, [["__scopeId", "data-v-9b0ef3a8"]]);
|
|
34
|
-
class
|
|
34
|
+
class U extends n {
|
|
35
35
|
constructor() {
|
|
36
|
-
super(...arguments),
|
|
36
|
+
super(...arguments), a(this, "onDoAuthSuccess", (e, t) => {
|
|
37
37
|
const s = JSON.parse(t);
|
|
38
38
|
if (this.log(`[${this.getType()}][onDoAuthSuccess]`, s), !s.transStatus) {
|
|
39
39
|
this.onError(e, "No transStatus specified");
|
|
@@ -51,7 +51,7 @@ class A extends a {
|
|
|
51
51
|
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${s.transStatus}`), this.onPostAuth();
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
|
-
}),
|
|
54
|
+
}), a(this, "onInitAuthSuccess", (e, t) => {
|
|
55
55
|
const s = JSON.parse(t);
|
|
56
56
|
if (this.log(`[${this.getType()}][onInitAuthSuccess]`, s), !s.threeDSAuthURL) {
|
|
57
57
|
this.onError(e, "No AuthUrl specified");
|
|
@@ -96,5 +96,5 @@ class A extends a {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
U as GPaymentsThreeDsProvider
|
|
100
100
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-
|
|
2
|
-
import { c as P, d,
|
|
3
|
-
var
|
|
4
|
-
const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container" },
|
|
1
|
+
import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
|
|
2
|
+
import { c as P, b as d, P as S, z as w, U as E, i as A, I as b, q as f, u as T, R as L, Y as _, J as I, N as g, $ as N, C as x } from "./index-gsXnNX5E.js";
|
|
3
|
+
var G = Object.defineProperty, $ = (l, e, t) => e in l ? G(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e, t) => $(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container" }, j = /* @__PURE__ */ E({
|
|
5
5
|
__name: "MetricsGlobalThreeDsChallenge",
|
|
6
6
|
emits: ["close", "submit"],
|
|
7
7
|
setup(l, { emit: e }) {
|
|
@@ -10,14 +10,14 @@ const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container"
|
|
|
10
10
|
var r;
|
|
11
11
|
["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((r = h.data) == null ? void 0 : r.message) && (o.value = h.data.message === "3DS_CHALLENGE_SHOW");
|
|
12
12
|
}
|
|
13
|
-
return
|
|
13
|
+
return f(() => {
|
|
14
14
|
window.addEventListener("message", a);
|
|
15
|
-
}),
|
|
15
|
+
}), T(() => {
|
|
16
16
|
window.removeEventListener("message", a);
|
|
17
|
-
}), (h, r) =>
|
|
17
|
+
}), (h, r) => b((_(), I("div", H, [
|
|
18
18
|
g("div", M, [
|
|
19
19
|
g("div", O, [
|
|
20
|
-
x
|
|
20
|
+
N(x, {
|
|
21
21
|
onClick: r[0] || (r[0] = (s) => t("close")),
|
|
22
22
|
id: "3ds-challenge-close"
|
|
23
23
|
}),
|
|
@@ -28,8 +28,8 @@ const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container"
|
|
|
28
28
|
[L, o.value]
|
|
29
29
|
]);
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
32
|
-
class
|
|
31
|
+
}), k = /* @__PURE__ */ w(j, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: u, showSpinner: F } = P(), p = 5;
|
|
32
|
+
class q extends C {
|
|
33
33
|
constructor(e, t, o) {
|
|
34
34
|
var a;
|
|
35
35
|
super(e, t, o), m(this, "gateway"), m(this, "threeDS"), m(this, "numAttempts", 0), this.initScript(((a = o.clientParameters) == null ? void 0 : a.PublicKey) || "");
|
|
@@ -42,11 +42,11 @@ class K extends C {
|
|
|
42
42
|
}
|
|
43
43
|
onPreAuth() {
|
|
44
44
|
var e, t;
|
|
45
|
-
if (this.log(`[${this.getType()}]: onPreAuth`), !this.threeDS && this.numAttempts >=
|
|
45
|
+
if (this.log(`[${this.getType()}]: onPreAuth`), !this.threeDS && this.numAttempts >= p) {
|
|
46
46
|
u(), d(this.container, "Error loading 3D Secure");
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
if (!this.threeDS && this.numAttempts <
|
|
49
|
+
if (!this.threeDS && this.numAttempts < p) {
|
|
50
50
|
this.numAttempts++, this.log(`[${this.getType()}]: 3DS not ready, retrying in 1s`), setTimeout(() => this.onPreAuth(), 1e3);
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -69,10 +69,10 @@ class K extends C {
|
|
|
69
69
|
u(), d(this.container, "Payment information is missing");
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(),
|
|
72
|
+
F();
|
|
73
|
+
const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), D = r.expiryDate.length === 4 ? r.expiryDate[2] + r.expiryDate[3] : "", v = r.expiryDate.length === 4 ? r.expiryDate[0] + r.expiryDate[1] : "", y = {
|
|
74
74
|
cardNumber: r.cardNumber,
|
|
75
|
-
cardExpMonth:
|
|
75
|
+
cardExpMonth: D,
|
|
76
76
|
cardExpYear: parseInt(v) + 2e3,
|
|
77
77
|
currency: (o = this.threeDsProcessor) == null ? void 0 : o.getCurrency(),
|
|
78
78
|
amount: (a = this.threeDsProcessor) == null ? void 0 : a.getAmount(),
|
|
@@ -110,13 +110,13 @@ class K extends C {
|
|
|
110
110
|
initGateway(e) {
|
|
111
111
|
this.gateway = window.Gateway.create(e), this.threeDS = this.gateway.get3DSecure(), this.gateway.on("error", (t) => {
|
|
112
112
|
var o;
|
|
113
|
-
this.log(`[${this.getType()}]: gateway error`, t), (o = this.threeDsProcessor) == null || o.onError({ error: t.message }), this.threeDS = null, this.numAttempts =
|
|
113
|
+
this.log(`[${this.getType()}]: gateway error`, t), (o = this.threeDsProcessor) == null || o.onError({ error: t.message }), this.threeDS = null, this.numAttempts = p;
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
initChallenge() {
|
|
117
117
|
const { destroy: e } = S({
|
|
118
118
|
el: document.body,
|
|
119
|
-
component:
|
|
119
|
+
component: k,
|
|
120
120
|
on: {
|
|
121
121
|
close: () => {
|
|
122
122
|
var t;
|
|
@@ -142,5 +142,5 @@ class K extends C {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
export {
|
|
145
|
-
|
|
145
|
+
q as MetricsGlobalThreeDsProvider
|
|
146
146
|
};
|
package/dist/{NuveiThreeDsProvider-NHowIDoE-_Je2HZn5.js → NuveiThreeDsProvider-B0_hr137-BSeS3Dtw.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-
|
|
3
|
-
var f = Object.defineProperty, N = (n, e,
|
|
1
|
+
import { b as d, P as p, z as m, U as g, c as h, q as D, J as S, Y as v, N as l } from "./index-gsXnNX5E.js";
|
|
2
|
+
import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
|
|
3
|
+
var f = Object.defineProperty, N = (n, e, a) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, c = (n, e, a) => N(n, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
const I = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
5
5
|
__name: "nuvei",
|
|
6
6
|
props: {
|
|
@@ -20,15 +20,15 @@ const I = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
|
20
20
|
country: {}
|
|
21
21
|
},
|
|
22
22
|
setup(n) {
|
|
23
|
-
const { hideSpinner: e, showSpinner:
|
|
23
|
+
const { hideSpinner: e, showSpinner: a } = h(), s = n;
|
|
24
24
|
D(() => {
|
|
25
|
-
|
|
25
|
+
a();
|
|
26
26
|
const t = document.createElement("script");
|
|
27
27
|
t.type = "text/javascript", t.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", t.onload = () => {
|
|
28
|
-
const
|
|
29
|
-
document.getElementsByClassName("sfcModal-dialog")[0] && (e(),
|
|
30
|
-
}), i = { childList: !0 },
|
|
31
|
-
|
|
28
|
+
const r = new MutationObserver(function() {
|
|
29
|
+
document.getElementsByClassName("sfcModal-dialog")[0] && (e(), r.disconnect());
|
|
30
|
+
}), i = { childList: !0 }, u = document.querySelector("body");
|
|
31
|
+
r.observe(u, i), o();
|
|
32
32
|
}, document.head.appendChild(t);
|
|
33
33
|
});
|
|
34
34
|
function o() {
|
|
@@ -67,53 +67,53 @@ const I = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
|
67
67
|
email: s.email,
|
|
68
68
|
country: s.country
|
|
69
69
|
}
|
|
70
|
-
}, function(
|
|
71
|
-
window.postMessage({ status: "3ds_challenge_complete", cres:
|
|
70
|
+
}, function(r) {
|
|
71
|
+
window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
return (t,
|
|
74
|
+
return (t, r) => (v(), S("div", I, r[0] || (r[0] = [
|
|
75
75
|
l("div", { class: "wrapper" }, [
|
|
76
76
|
l("div", { class: "container" })
|
|
77
77
|
], -1)
|
|
78
78
|
])));
|
|
79
79
|
}
|
|
80
|
-
}), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner:
|
|
80
|
+
}), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: b } = h();
|
|
81
81
|
class A extends y {
|
|
82
82
|
constructor() {
|
|
83
|
-
super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e,
|
|
83
|
+
super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
|
|
84
84
|
var s, o;
|
|
85
|
-
this.closeChallenge(),
|
|
86
|
-
const t = JSON.parse(
|
|
85
|
+
this.closeChallenge(), b();
|
|
86
|
+
const t = JSON.parse(a);
|
|
87
87
|
t.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(t) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, t), (o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" }));
|
|
88
|
-
}), c(this, "onDoAuthSuccess", (e,
|
|
88
|
+
}), c(this, "onDoAuthSuccess", (e, a) => {
|
|
89
89
|
var s, o, t;
|
|
90
|
-
const
|
|
91
|
-
if (this.log(`[${this.getType()}][onDoAuthSuccess]`,
|
|
90
|
+
const r = JSON.parse(a);
|
|
91
|
+
if (this.log(`[${this.getType()}][onDoAuthSuccess]`, r), !r.transStatus || !r.authenticationValue) {
|
|
92
92
|
this.onError(e, "No transStatus specified");
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
switch (
|
|
95
|
+
switch (r.transStatus) {
|
|
96
96
|
case "C":
|
|
97
|
-
this.doNuveiChallenge(
|
|
97
|
+
this.doNuveiChallenge(r.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (o = this.threeDsProcessor) == null ? void 0 : o.getPaymentInfo());
|
|
98
98
|
break;
|
|
99
99
|
default:
|
|
100
|
-
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` +
|
|
101
|
-
threeDSServerTransID:
|
|
100
|
+
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + r.transStatus), (t = this.threeDsProcessor) == null || t.onSuccess({
|
|
101
|
+
threeDSServerTransID: r.threeDSServerTransID,
|
|
102
102
|
threeDSRequestorTransID: "",
|
|
103
|
-
acsRenderingType:
|
|
104
|
-
acsTransID:
|
|
105
|
-
authenticationType:
|
|
106
|
-
authenticationValue:
|
|
103
|
+
acsRenderingType: r.acsRenderingType,
|
|
104
|
+
acsTransID: r.acsTransID,
|
|
105
|
+
authenticationType: r.authenticationType,
|
|
106
|
+
authenticationValue: r.authenticationValue,
|
|
107
107
|
challengeCancel: "",
|
|
108
|
-
dsTransID:
|
|
109
|
-
eci:
|
|
108
|
+
dsTransID: r.dsTransID,
|
|
109
|
+
eci: r.eci,
|
|
110
110
|
interactionCounter: "",
|
|
111
111
|
messageCategory: "",
|
|
112
|
-
messageExtension:
|
|
113
|
-
messageType:
|
|
114
|
-
messageVersion:
|
|
115
|
-
transStatus:
|
|
116
|
-
transStatusReason:
|
|
112
|
+
messageExtension: r.messageExtension,
|
|
113
|
+
messageType: r.messageType,
|
|
114
|
+
messageVersion: r.messageVersion,
|
|
115
|
+
transStatus: r.transStatus,
|
|
116
|
+
transStatusReason: r.transStatusReason
|
|
117
117
|
});
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
@@ -123,12 +123,12 @@ class A extends y {
|
|
|
123
123
|
return "Nuvei";
|
|
124
124
|
}
|
|
125
125
|
onPreAuth() {
|
|
126
|
-
var e,
|
|
127
|
-
this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (
|
|
126
|
+
var e, a;
|
|
127
|
+
this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (a = this.threeDsProcessor) == null || a.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
|
|
128
128
|
var o;
|
|
129
129
|
(o = this.threeDsProcessor) == null || o.setPaymentInfo(s), super.onPreAuth();
|
|
130
130
|
}, () => {
|
|
131
|
-
|
|
131
|
+
d(this.container, "Unable to get card information");
|
|
132
132
|
}) : super.onPreAuth();
|
|
133
133
|
}
|
|
134
134
|
onPostAuth() {
|
|
@@ -142,27 +142,27 @@ class A extends y {
|
|
|
142
142
|
xid: this._paResPayload.xid
|
|
143
143
|
}, this.onSuccess, this.onError);
|
|
144
144
|
}
|
|
145
|
-
doNuveiChallenge(e,
|
|
145
|
+
doNuveiChallenge(e, a, s) {
|
|
146
146
|
var o;
|
|
147
147
|
const t = JSON.parse(e);
|
|
148
|
-
(t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })),
|
|
149
|
-
const { destroy:
|
|
148
|
+
(t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })), a && (t.firstName = a.firstName, t.lastName = a.lastName, t.email = a.email, t.country = a.country), s && (t.cardNumber = s.cardNumber, t.cardHolderName = s.cardholder || "", t.expirationMonth = s.expiryDate.substring(2, 4), t.expirationYear = s.expiryDate.substring(0, 2), t.CVV = s.ccv);
|
|
149
|
+
const { destroy: r } = p({
|
|
150
150
|
el: document.body,
|
|
151
151
|
component: _,
|
|
152
152
|
props: t,
|
|
153
153
|
on: {
|
|
154
154
|
close: () => {
|
|
155
155
|
var i;
|
|
156
|
-
|
|
156
|
+
r(), this.threeDSDestroy = () => {
|
|
157
157
|
}, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
|
-
this.threeDSDestroy =
|
|
161
|
+
this.threeDSDestroy = r;
|
|
162
162
|
}
|
|
163
163
|
messageHandler(e) {
|
|
164
|
-
var
|
|
165
|
-
if ((
|
|
164
|
+
var a, s, o;
|
|
165
|
+
if ((a = e == null ? void 0 : e.data) != null && a.status) {
|
|
166
166
|
if (e.data.status === P) {
|
|
167
167
|
this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), e.stopPropagation(), this.onAuth(!0, "");
|
|
168
168
|
return;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
1
|
+
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js";
|
|
2
|
+
import { b as c, P as f, z as C, i as u, U as w, a as E, q as D, u as m, J as I, Y as L, N as g, _ as S } from "./index-gsXnNX5E.js";
|
|
3
3
|
const h = u(!1);
|
|
4
4
|
function k(r, ...e) {
|
|
5
5
|
h.value && console.log(r, e);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function p(r) {
|
|
8
8
|
var e, t;
|
|
9
9
|
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (h.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
|
|
10
10
|
}
|
|
11
11
|
function R() {
|
|
12
|
-
return
|
|
13
|
-
window.addEventListener("message",
|
|
14
|
-
}),
|
|
15
|
-
window.removeEventListener("message",
|
|
12
|
+
return D(() => {
|
|
13
|
+
window.addEventListener("message", p);
|
|
14
|
+
}), m(() => {
|
|
15
|
+
window.removeEventListener("message", p);
|
|
16
16
|
}), {
|
|
17
17
|
debug: h,
|
|
18
18
|
logMessage: k
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const b = { class: "modal-mask" },
|
|
21
|
+
const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"], _ = /* @__PURE__ */ w({
|
|
22
22
|
__name: "PayGLocalThreeDsChallenge",
|
|
23
23
|
props: {
|
|
24
24
|
url: {}
|
|
@@ -28,9 +28,9 @@ const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, U = ["src"],
|
|
|
28
28
|
const { logMessage: t } = R(), a = r, s = e, o = u(a.url);
|
|
29
29
|
u(null), E(() => a.url, (l) => {
|
|
30
30
|
o.value = l;
|
|
31
|
-
}), p(() => {
|
|
32
|
-
window.addEventListener("message", n);
|
|
33
31
|
}), D(() => {
|
|
32
|
+
window.addEventListener("message", n);
|
|
33
|
+
}), m(() => {
|
|
34
34
|
window.removeEventListener("message", n);
|
|
35
35
|
});
|
|
36
36
|
function n(l) {
|
|
@@ -38,19 +38,19 @@ const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, U = ["src"],
|
|
|
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
|
|
42
|
-
s("close",
|
|
41
|
+
const v = d.split(".")[1], P = window.atob(v), T = JSON.parse(P);
|
|
42
|
+
s("close", T);
|
|
43
43
|
}
|
|
44
|
-
return (l, i) => (
|
|
45
|
-
g("div",
|
|
44
|
+
return (l, i) => (L(), I("div", b, [
|
|
45
|
+
g("div", U, [
|
|
46
46
|
g("iframe", {
|
|
47
47
|
src: o.value,
|
|
48
48
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
49
|
-
}, null, 8,
|
|
49
|
+
}, null, 8, A)
|
|
50
50
|
])
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), x = /* @__PURE__ */ C(_, [["__scopeId", "data-v-6f042298"]]);
|
|
54
54
|
class G extends y {
|
|
55
55
|
getType() {
|
|
56
56
|
return "PayGLocal";
|
|
@@ -83,7 +83,7 @@ class G extends y {
|
|
|
83
83
|
}
|
|
84
84
|
const { destroy: t } = f({
|
|
85
85
|
el: document.body,
|
|
86
|
-
component:
|
|
86
|
+
component: x,
|
|
87
87
|
props: {
|
|
88
88
|
url: e
|
|
89
89
|
},
|
package/dist/{PayWayAppleButton-Kiqg1nWI-DlAdkLl4.js → PayWayAppleButton-DI0k_xsw-gdBZ6sUf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as b, x as v, k as g } from "./index-gsXnNX5E.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",
|