@payfurl/react-plugin 1.0.8 → 1.0.9
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-DUx0ZP9g-CZ0dDiUf.js → CxPayThreeDsProvider-C3SVxMVV-CIcyQRzl.js} +1 -1
- package/dist/{DefaultThreeDsProvider-OrSUoygj-C1fnz8Dl.js → DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js} +13 -13
- package/dist/{EcentricThreeDsProvider-C0n-kUpY-B7faJJZS.js → EcentricThreeDsProvider-M7JlFNrQ-CfLmEg8r.js} +15 -15
- package/dist/{EpnaThreeDsProvider-BlzPLUQj-5xYvlDhH.js → EpnaThreeDsProvider-BFvrkGJv-CmgaZQ8W.js} +1 -1
- package/dist/{FlashBancThreeDsProvider-BZD1Bmox-CXii2Z5u.js → FlashBancThreeDsProvider-CqjYV8SM-D932Lamr.js} +1 -1
- package/dist/{GPaymentsThreeDsProvider-Dmc3T7m7-ClWUXsKr.js → GPaymentsThreeDsProvider-BMCOtJAd-CNu_pC6q.js} +4 -4
- package/dist/{MetricsGlobalThreeDsProvider-D8pmLCaF-9Zn9KMBT.js → MetricsGlobalThreeDsProvider-B9rzZcOb-BDahPAuh.js} +29 -29
- package/dist/{NmiThreeDsProvider-D6MYO9TE-XP3i5DD0.js → NmiThreeDsProvider-C8Gf2tSm-CvbL47jU.js} +1 -1
- package/dist/{NuveiThreeDsProvider-B0_hr137-BSeS3Dtw.js → NuveiThreeDsProvider-CjtjRIqU-Oq-yTie5.js} +6 -6
- package/dist/{PayGLocalThreeDsProvider-CcVtz_cC-CryvMpZk.js → PayGLocalThreeDsProvider-CkBdY3-6-DFZF8Idj.js} +21 -21
- package/dist/{PayWayAppleButton-DI0k_xsw-gdBZ6sUf.js → PayWayAppleButton-3Jcspw8r-D7c2ELHJ.js} +1 -1
- package/dist/{PayabliThreeDsProvider-BTuW5mNX-zUudDCiq.js → PayabliThreeDsProvider-BYNvOB9r-0YMR6lF6.js} +1 -1
- package/dist/{SkyBankThreeDsProvider-CFsEdtDi-D_AeZUTT.js → SkyBankThreeDsProvider-D1loCi58-Dt14b0MK.js} +1 -1
- package/dist/{cxpay-CzXEk7uT-CHEaX1oC.js → cxpay-tBsH5Qq9-CuzlflKr.js} +1 -1
- package/dist/{default-CVlT2ZTw-GAb6ONvT.js → default-CU0qSz8c-G_XP7PEy.js} +1 -1
- package/dist/{ecentric-p4HkLdd1-CNm1w3kN.js → ecentric-BoreYd7u-DGX96uHH.js} +1 -1
- package/dist/{epna-ugAK06qE-CkwGUb_w.js → epna-S8i7BPJA-DEbaBDO8.js} +1 -1
- package/dist/{flashbanc-BD7QXswZ-Fdy1B6BS.js → flashbanc-BoYu0io2-DGjygXQV.js} +1 -1
- package/dist/{gpayments-BJ23p2Lx-QfoNtcpr.js → gpayments-BSnudVfM-D02tSdF6.js} +1 -1
- package/dist/{index-gsXnNX5E.js → index-0E3VS5Zq.js} +4257 -4262
- package/dist/{metrics_global-Ce0HIVhq-DU1Eh9Do.js → metrics_global-C-3-Z-LB-BqUmy4TP.js} +1 -1
- package/dist/nmi-CP4vI9mH-BehvSvaB.js +7 -0
- package/dist/{nuvei-Dy9kXWcy-D3SDtRgj.js → nuvei-rKAQzNmO-BInMw2Rr.js} +1 -1
- package/dist/{payabli-FwdYUjhG-AALDzHYk.js → payabli-uJdaROjR-C5Q_HZA9.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +27 -27
- package/dist/{payglocal-DX_7nogS-CX5mt--e.js → payglocal-BtWr5bKE-CqLMZV2a.js} +1 -1
- package/dist/{payway_rest-BMXIpCn0-DUHYQ0hf.js → payway_rest-YdocXQB2-BzVB60Gl.js} +1 -1
- package/dist/{skybank-JGD9tw1a-Bnir5oV2.js → skybank-B_BtMhk2-ZE-AEwAY.js} +1 -1
- package/dist/src/sdk/types/DropInOptions.type.d.ts +4 -0
- package/dist/src/sdk/types/UpiOptions.type.d.ts +3 -0
- package/package.json +2 -2
- package/dist/nmi-Ci4ItU_O-Dp-mCkGK.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as d, w as S, y as g, Y as p, U as m, n as T, J as v, Z as I, M as u, $ as f, l as y, O as A, a as C } from "./index-0E3VS5Zq.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
3
|
const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container" }, $ = ["action"], M = ["value"], L = /* @__PURE__ */ m({
|
|
4
4
|
__name: "ThreeDsChallenge",
|
|
@@ -44,8 +44,8 @@ const P = { class: "mask" }, U = { class: "wrapper" }, b = { class: "container"
|
|
|
44
44
|
])
|
|
45
45
|
]));
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
48
|
-
class
|
|
47
|
+
}), w = /* @__PURE__ */ p(L, [["__scopeId", "data-v-ac351494"]]);
|
|
48
|
+
class _ {
|
|
49
49
|
constructor() {
|
|
50
50
|
n(this, "iframeId", "threeDsIframeMethod"), n(this, "containerId", "payfurlContainerFormInvoker"), n(this, "iframe", null), n(this, "container", null);
|
|
51
51
|
}
|
|
@@ -64,8 +64,8 @@ class w {
|
|
|
64
64
|
t.submit();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
const { hideSpinner: D, showSpinner:
|
|
68
|
-
class
|
|
67
|
+
const { hideSpinner: D, showSpinner: O } = d(), k = "3ds_method_invocation_complete", N = "3ds_challenge_complete";
|
|
68
|
+
class q {
|
|
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) => {
|
|
@@ -141,7 +141,7 @@ class V {
|
|
|
141
141
|
return "";
|
|
142
142
|
}
|
|
143
143
|
onPreAuth() {
|
|
144
|
-
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (
|
|
144
|
+
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (O(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
|
|
145
145
|
}
|
|
146
146
|
onAuth(e, s) {
|
|
147
147
|
var a;
|
|
@@ -166,11 +166,11 @@ class V {
|
|
|
166
166
|
messageHandler(e) {
|
|
167
167
|
var s, a;
|
|
168
168
|
if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((a = e == null ? void 0 : e.data) == null ? void 0 : a.status) === S)) {
|
|
169
|
-
if (e.data.status ===
|
|
169
|
+
if (e.data.status === k) {
|
|
170
170
|
e.stopPropagation(), this.invocationComplete(e);
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
e.data.status ===
|
|
173
|
+
e.data.status === N && (e.stopPropagation(), this.challengeComplete(e));
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
invocationComplete(e) {
|
|
@@ -185,7 +185,7 @@ class V {
|
|
|
185
185
|
this.log(`[${this.getType()}][doChallenge]`), D();
|
|
186
186
|
const { destroy: o } = g({
|
|
187
187
|
el: document.body,
|
|
188
|
-
component:
|
|
188
|
+
component: w,
|
|
189
189
|
props: {
|
|
190
190
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
191
191
|
acsTransID: s,
|
|
@@ -212,13 +212,13 @@ class V {
|
|
|
212
212
|
threeDSServerTransID: e,
|
|
213
213
|
threeDSMethodNotificationURL: this.options.apiUrl + "/3ds/method_invocation"
|
|
214
214
|
}, o = encodeURI(window.btoa(JSON.stringify(a)).replace(/=*$/, ""));
|
|
215
|
-
new
|
|
215
|
+
new _().invoke(s, "POST", {
|
|
216
216
|
threeDSMethodData: o
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
export {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
q as DefaultThreeDsProvider,
|
|
222
|
+
N as THREE_DS_CHALLENGE_COMPLETE,
|
|
223
|
+
k as THREE_DS_METHOD_INVOCATION_COMPLETE
|
|
224
224
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
const P = { class: "mask" }, f = { class: "wrapper" },
|
|
1
|
+
import { DefaultThreeDsProvider as l } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
|
|
2
|
+
import { y as i, Y as h, U as c, n as u, J as D, Z as d, a as p, M as n, $ as m, l as g, O as v } from "./index-0E3VS5Zq.js";
|
|
3
|
+
var y = Object.defineProperty, S = (r, e, t) => e in r ? y(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, T = (r, e, t) => S(r, e + "", t);
|
|
4
|
+
const P = { class: "mask" }, f = { class: "wrapper" }, I = { class: "container" }, C = ["action"], A = ["value"], $ = /* @__PURE__ */ c({
|
|
5
5
|
__name: "ecentric",
|
|
6
6
|
props: {
|
|
7
7
|
threeDSServerTransID: {},
|
|
@@ -10,30 +10,30 @@ const P = { class: "mask" }, f = { class: "wrapper" }, C = { class: "container"
|
|
|
10
10
|
authenticationValue: {}
|
|
11
11
|
},
|
|
12
12
|
setup(r) {
|
|
13
|
-
const e = r, t = u(null),
|
|
13
|
+
const e = r, t = u(null), o = e.authenticationValue;
|
|
14
14
|
return d(() => {
|
|
15
15
|
var a;
|
|
16
16
|
(a = t.value) == null || a.submit();
|
|
17
17
|
}), (a, s) => (p(), D("div", P, [
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
n("div", f, [
|
|
19
|
+
n("div", I, [
|
|
20
20
|
m(g, {
|
|
21
21
|
onClick: s[0] || (s[0] = (b) => a.emit("close"))
|
|
22
22
|
}),
|
|
23
|
-
s[1] || (s[1] =
|
|
24
|
-
|
|
23
|
+
s[1] || (s[1] = n("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
|
|
24
|
+
n("form", {
|
|
25
25
|
action: e.formAction,
|
|
26
26
|
target: "ThreeDsChallengeIFrame",
|
|
27
27
|
method: "post",
|
|
28
28
|
ref_key: "form",
|
|
29
29
|
ref: t
|
|
30
30
|
}, [
|
|
31
|
-
|
|
31
|
+
n("input", {
|
|
32
32
|
type: "hidden",
|
|
33
33
|
name: "PaReq",
|
|
34
|
-
value: v(
|
|
34
|
+
value: v(o)
|
|
35
35
|
}, null, 8, A)
|
|
36
|
-
], 8,
|
|
36
|
+
], 8, C)
|
|
37
37
|
])
|
|
38
38
|
])
|
|
39
39
|
]));
|
|
@@ -41,7 +41,7 @@ const P = { class: "mask" }, f = { class: "wrapper" }, C = { class: "container"
|
|
|
41
41
|
}), V = /* @__PURE__ */ h($, [["__scopeId", "data-v-8d26953f"]]);
|
|
42
42
|
class R extends l {
|
|
43
43
|
constructor() {
|
|
44
|
-
super(...arguments),
|
|
44
|
+
super(...arguments), T(this, "paResPayload", "");
|
|
45
45
|
}
|
|
46
46
|
getType() {
|
|
47
47
|
return "Ecentric";
|
|
@@ -56,7 +56,7 @@ class R extends l {
|
|
|
56
56
|
authenticationValue: this.paResPayload
|
|
57
57
|
}, this.onSuccess, this.onError);
|
|
58
58
|
}
|
|
59
|
-
doChallenge(e, t,
|
|
59
|
+
doChallenge(e, t, o) {
|
|
60
60
|
this.log(`[${this.getType()}][doChallenge]`);
|
|
61
61
|
const { destroy: a } = i({
|
|
62
62
|
el: document.body,
|
|
@@ -65,7 +65,7 @@ class R extends l {
|
|
|
65
65
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
66
66
|
acsTransID: t,
|
|
67
67
|
formAction: e,
|
|
68
|
-
authenticationValue:
|
|
68
|
+
authenticationValue: o
|
|
69
69
|
},
|
|
70
70
|
on: {
|
|
71
71
|
close: () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as n } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
1
|
+
import { DefaultThreeDsProvider as n } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
|
|
2
|
+
import { y as o, Y as l, U as u, J as c, a as p, M as h, C as i } from "./index-0E3VS5Zq.js";
|
|
3
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",
|
|
@@ -31,7 +31,7 @@ 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 T extends n {
|
|
35
35
|
constructor() {
|
|
36
36
|
super(...arguments), a(this, "onDoAuthSuccess", (e, t) => {
|
|
37
37
|
const s = JSON.parse(t);
|
|
@@ -96,5 +96,5 @@ class U extends n {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
T as GPaymentsThreeDsProvider
|
|
100
100
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
|
|
2
|
+
import { o as P, b as d, y as S, Y as w, U as A, n as E, A as b, Z as f, d as T, f as L, a as _, J as x, M as g, $ as G, l as N } from "./index-0E3VS5Zq.js";
|
|
3
|
+
var $ = Object.defineProperty, I = (l, e, t) => e in l ? $(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e, t) => I(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const M = { class: "mask" }, H = { class: "wrapper" }, O = { class: "container" }, j = /* @__PURE__ */ A({
|
|
5
5
|
__name: "MetricsGlobalThreeDsChallenge",
|
|
6
6
|
emits: ["close", "submit"],
|
|
7
7
|
setup(l, { emit: e }) {
|
|
8
|
-
const t = e,
|
|
9
|
-
function
|
|
8
|
+
const t = e, a = E(!1);
|
|
9
|
+
function o(h) {
|
|
10
10
|
var r;
|
|
11
|
-
["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((r = h.data) == null ? void 0 : r.message) && (
|
|
11
|
+
["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((r = h.data) == null ? void 0 : r.message) && (a.value = h.data.message === "3DS_CHALLENGE_SHOW");
|
|
12
12
|
}
|
|
13
13
|
return f(() => {
|
|
14
|
-
window.addEventListener("message",
|
|
14
|
+
window.addEventListener("message", o);
|
|
15
15
|
}), T(() => {
|
|
16
|
-
window.removeEventListener("message",
|
|
17
|
-
}), (h, r) => b((_(),
|
|
18
|
-
g("div",
|
|
16
|
+
window.removeEventListener("message", o);
|
|
17
|
+
}), (h, r) => b((_(), x("div", M, [
|
|
18
|
+
g("div", H, [
|
|
19
19
|
g("div", O, [
|
|
20
|
-
N
|
|
20
|
+
G(N, {
|
|
21
21
|
onClick: r[0] || (r[0] = (s) => t("close")),
|
|
22
22
|
id: "3ds-challenge-close"
|
|
23
23
|
}),
|
|
@@ -25,14 +25,14 @@ const H = { class: "mask" }, M = { class: "wrapper" }, O = { class: "container"
|
|
|
25
25
|
])
|
|
26
26
|
])
|
|
27
27
|
], 512)), [
|
|
28
|
-
[L,
|
|
28
|
+
[L, a.value]
|
|
29
29
|
]);
|
|
30
30
|
}
|
|
31
31
|
}), k = /* @__PURE__ */ w(j, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: u, showSpinner: F } = P(), p = 5;
|
|
32
|
-
class
|
|
33
|
-
constructor(e, t,
|
|
34
|
-
var
|
|
35
|
-
super(e, t,
|
|
32
|
+
class W extends C {
|
|
33
|
+
constructor(e, t, a) {
|
|
34
|
+
var o;
|
|
35
|
+
super(e, t, a), m(this, "gateway"), m(this, "threeDS"), m(this, "numAttempts", 0), this.initScript(((o = a.clientParameters) == null ? void 0 : o.PublicKey) || "");
|
|
36
36
|
}
|
|
37
37
|
getType() {
|
|
38
38
|
return "MetricsGlobal";
|
|
@@ -50,9 +50,9 @@ class q extends C {
|
|
|
50
50
|
this.numAttempts++, this.log(`[${this.getType()}]: 3DS not ready, retrying in 1s`), setTimeout(() => this.onPreAuth(), 1e3);
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
(e = this.threeDsProcessor) != null && e.getTokenId() ? (t = this.threeDsProcessor) == null || t.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (
|
|
54
|
-
var
|
|
55
|
-
(
|
|
53
|
+
(e = this.threeDsProcessor) != null && e.getTokenId() ? (t = this.threeDsProcessor) == null || t.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (a) => {
|
|
54
|
+
var o;
|
|
55
|
+
(o = this.threeDsProcessor) == null || o.setPaymentInfo(a), this.startAuth();
|
|
56
56
|
}, () => {
|
|
57
57
|
d(this.container, "Unable to get card information");
|
|
58
58
|
}) : this.startAuth();
|
|
@@ -62,7 +62,7 @@ class q extends C {
|
|
|
62
62
|
onPostAuth() {
|
|
63
63
|
}
|
|
64
64
|
startAuth() {
|
|
65
|
-
var e, t,
|
|
65
|
+
var e, t, a, o, h;
|
|
66
66
|
this.log(`[${this.getType()}]: startAuth`);
|
|
67
67
|
const r = (e = this.threeDsProcessor) == null ? void 0 : e.getPaymentInfo();
|
|
68
68
|
if (!r) {
|
|
@@ -70,12 +70,12 @@ class q extends C {
|
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
F();
|
|
73
|
-
const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), D = r.expiryDate.length === 4 ? r.expiryDate[2] + r.expiryDate[3] : "",
|
|
73
|
+
const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), D = r.expiryDate.length === 4 ? r.expiryDate[2] + r.expiryDate[3] : "", y = r.expiryDate.length === 4 ? r.expiryDate[0] + r.expiryDate[1] : "", v = {
|
|
74
74
|
cardNumber: r.cardNumber,
|
|
75
75
|
cardExpMonth: D,
|
|
76
|
-
cardExpYear: parseInt(
|
|
77
|
-
currency: (
|
|
78
|
-
amount: (
|
|
76
|
+
cardExpYear: parseInt(y) + 2e3,
|
|
77
|
+
currency: (a = this.threeDsProcessor) == null ? void 0 : a.getCurrency(),
|
|
78
|
+
amount: (o = this.threeDsProcessor) == null ? void 0 : o.getAmount(),
|
|
79
79
|
email: (h = this.threeDsProcessor) == null ? void 0 : h.getEmail(),
|
|
80
80
|
phone: s == null ? void 0 : s.phoneNumber,
|
|
81
81
|
city: s == null ? void 0 : s.city,
|
|
@@ -85,7 +85,7 @@ class q extends C {
|
|
|
85
85
|
firstName: s == null ? void 0 : s.firstName,
|
|
86
86
|
lastName: s == null ? void 0 : s.lastName,
|
|
87
87
|
postalCode: s == null ? void 0 : s.postalCode
|
|
88
|
-
}, c = this.threeDS.createUI(
|
|
88
|
+
}, c = this.threeDS.createUI(v);
|
|
89
89
|
c.start("#ThreeDsChallengeIFrame"), c.on("challenge", (i) => {
|
|
90
90
|
this.log(`[${this.getType()}][onChallenge]`, i), u(), this.showChallenge();
|
|
91
91
|
}), c.on("complete", (i) => {
|
|
@@ -109,8 +109,8 @@ class q extends C {
|
|
|
109
109
|
}
|
|
110
110
|
initGateway(e) {
|
|
111
111
|
this.gateway = window.Gateway.create(e), this.threeDS = this.gateway.get3DSecure(), this.gateway.on("error", (t) => {
|
|
112
|
-
var
|
|
113
|
-
this.log(`[${this.getType()}]: gateway error`, t), (
|
|
112
|
+
var a;
|
|
113
|
+
this.log(`[${this.getType()}]: gateway error`, t), (a = this.threeDsProcessor) == null || a.onError({ error: t.message }), this.threeDS = null, this.numAttempts = p;
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
initChallenge() {
|
|
@@ -142,5 +142,5 @@ class q extends C {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
export {
|
|
145
|
-
|
|
145
|
+
W as MetricsGlobalThreeDsProvider
|
|
146
146
|
};
|
package/dist/{NuveiThreeDsProvider-B0_hr137-BSeS3Dtw.js → NuveiThreeDsProvider-CjtjRIqU-Oq-yTie5.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as d,
|
|
2
|
-
import { DefaultThreeDsProvider as
|
|
3
|
-
var f = Object.defineProperty,
|
|
4
|
-
const
|
|
1
|
+
import { b as d, y as p, Y as m, U as g, o as h, Z as D, J as S, a as y, M as l } from "./index-0E3VS5Zq.js";
|
|
2
|
+
import { DefaultThreeDsProvider as v, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
|
|
3
|
+
var f = Object.defineProperty, I = (n, e, a) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, c = (n, e, a) => I(n, typeof e != "symbol" ? e + "" : e, a);
|
|
4
|
+
const N = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
5
5
|
__name: "nuvei",
|
|
6
6
|
props: {
|
|
7
7
|
threeDSServerTransID: {},
|
|
@@ -71,14 +71,14 @@ const I = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
|
71
71
|
window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
return (t, r) => (
|
|
74
|
+
return (t, r) => (y(), S("div", N, r[0] || (r[0] = [
|
|
75
75
|
l("div", { class: "wrapper" }, [
|
|
76
76
|
l("div", { class: "container" })
|
|
77
77
|
], -1)
|
|
78
78
|
])));
|
|
79
79
|
}
|
|
80
80
|
}), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: b } = h();
|
|
81
|
-
class A extends
|
|
81
|
+
class A extends v {
|
|
82
82
|
constructor() {
|
|
83
83
|
super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
|
|
84
84
|
var s, o;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as
|
|
2
|
-
import { b as c,
|
|
3
|
-
const
|
|
1
|
+
import { DefaultThreeDsProvider as P } from "./DefaultThreeDsProvider-DSJFbhYb-BR2-2Tpy.js";
|
|
2
|
+
import { b as c, y as f, Y as C, n as h, U as w, c as E, Z as m, d as p, J as I, a as L, M as g, e as S } from "./index-0E3VS5Zq.js";
|
|
3
|
+
const u = h(!1);
|
|
4
4
|
function k(r, ...e) {
|
|
5
|
-
|
|
5
|
+
u.value && console.log(r, e);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function D(r) {
|
|
8
8
|
var e, t;
|
|
9
|
-
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (
|
|
9
|
+
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (u.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 m(() => {
|
|
13
|
+
window.addEventListener("message", D);
|
|
14
|
+
}), p(() => {
|
|
15
|
+
window.removeEventListener("message", D);
|
|
16
16
|
}), {
|
|
17
|
-
debug:
|
|
17
|
+
debug: u,
|
|
18
18
|
logMessage: k
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"],
|
|
21
|
+
const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"], M = /* @__PURE__ */ w({
|
|
22
22
|
__name: "PayGLocalThreeDsChallenge",
|
|
23
23
|
props: {
|
|
24
24
|
url: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["close"],
|
|
27
27
|
setup(r, { emit: e }) {
|
|
28
|
-
const { logMessage: t } = R(), a = r, s = e, o =
|
|
29
|
-
|
|
28
|
+
const { logMessage: t } = R(), a = r, s = e, o = h(a.url);
|
|
29
|
+
h(null), E(() => a.url, (l) => {
|
|
30
30
|
o.value = l;
|
|
31
|
-
}), D(() => {
|
|
32
|
-
window.addEventListener("message", n);
|
|
33
31
|
}), m(() => {
|
|
32
|
+
window.addEventListener("message", n);
|
|
33
|
+
}), p(() => {
|
|
34
34
|
window.removeEventListener("message", n);
|
|
35
35
|
});
|
|
36
36
|
function n(l) {
|
|
@@ -38,8 +38,8 @@ const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["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 v = d.split(".")[1],
|
|
42
|
-
s("close",
|
|
41
|
+
const v = d.split(".")[1], T = window.atob(v), y = JSON.parse(T);
|
|
42
|
+
s("close", y);
|
|
43
43
|
}
|
|
44
44
|
return (l, i) => (L(), I("div", b, [
|
|
45
45
|
g("div", U, [
|
|
@@ -50,8 +50,8 @@ const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"],
|
|
|
50
50
|
])
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
class G extends
|
|
53
|
+
}), $ = /* @__PURE__ */ C(M, [["__scopeId", "data-v-6f042298"]]);
|
|
54
|
+
class G extends P {
|
|
55
55
|
getType() {
|
|
56
56
|
return "PayGLocal";
|
|
57
57
|
}
|
|
@@ -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: $,
|
|
87
87
|
props: {
|
|
88
88
|
url: e
|
|
89
89
|
},
|
package/dist/{PayWayAppleButton-DI0k_xsw-gdBZ6sUf.js → PayWayAppleButton-3Jcspw8r-D7c2ELHJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as b, x as v,
|
|
1
|
+
import { L as b, x as v, _ as g } from "./index-0E3VS5Zq.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",
|