@payfurl/react-plugin 1.1.0 → 1.2.3
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-7yh00m_f-BSAj-Zut.js → CxPayThreeDsProvider-DQHrNbtf-CrpWKfT3.js} +1 -1
- package/dist/{DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js → DefaultThreeDsProvider-P_cdnP1M-DDhZj7Cg.js} +7 -7
- package/dist/{EcentricThreeDsProvider-BjVGZlb9-BVFegP5X.js → EcentricThreeDsProvider-B_CTaoAa-C_wgXX2u.js} +14 -14
- package/dist/{EpnaThreeDsProvider-D-jEeUhd-CjqDQ6sC.js → EpnaThreeDsProvider-DGmOGtwW-O10IzQM2.js} +1 -1
- package/dist/{FlashBancThreeDsProvider-Cov5ey75-D0PVygYS.js → FlashBancThreeDsProvider-B-_q0Wgx-grSD_FB-.js} +1 -1
- package/dist/{GPaymentsThreeDsProvider-DC48F4-s-CeTTM1oZ.js → GPaymentsThreeDsProvider-CNvS1TEr-T2uXpiE2.js} +7 -7
- package/dist/{MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js → MetricsGlobalThreeDsProvider-bHlBG5TO-C2sZFyA2.js} +17 -17
- package/dist/{NmiThreeDsProvider-UdLXXANS-BJ_uuNCG.js → NmiThreeDsProvider-pYfkqY6w-JydnYGE7.js} +1 -1
- package/dist/{NuveiThreeDsProvider-Da4x--0n-2TdKYejN.js → NuveiThreeDsProvider-DW0A-UVJ-HL0mY8J4.js} +5 -5
- package/dist/{PayGLocalThreeDsProvider-BnHoCS8k-DBBnV_0h.js → PayGLocalThreeDsProvider-BHwgDrtz-DOfpyquE.js} +22 -22
- package/dist/{PayWayAppleButton-BnfVXscK-s3xK_XOH.js → PayWayAppleButton-DcRb1H14-Dt9p1oj7.js} +1 -1
- package/dist/{PayabliThreeDsProvider-DputC3bO-NOKVgrTF.js → PayabliThreeDsProvider-Bp9H8Pm4-Cm6Qod6W.js} +1 -1
- package/dist/{SkyBankThreeDsProvider-Dv1Vr_P5-BfAcbM_v.js → SkyBankThreeDsProvider-DNIVJ3RD-C6gUCYyp.js} +1 -1
- package/dist/{cxpay-DvznoDgN-7uW13wnL.js → cxpay-HDQIqLHk-CNczH_Sm.js} +1 -1
- package/dist/{default-C5N621sA-vMshBhxy.js → default-DLW8OfDP-Bley5Jlr.js} +1 -1
- package/dist/{ecentric-CAuUEG5b-BIT7b2FE.js → ecentric-lSpPCcHF-D3giBO1F.js} +1 -1
- package/dist/{epna-diKGQ91--D_6ns_Yg.js → epna-BkB_D01q-NMrzm5fv.js} +1 -1
- package/dist/{flashbanc-D8UHX81f-DP7Mfbms.js → flashbanc-CHej1ZtB-tiRo5Fl2.js} +1 -1
- package/dist/{gpayments-C4CSZg2r-CiQQN4E2.js → gpayments-CZAu93lM-VrK290H9.js} +1 -1
- package/dist/{index-CgZDGZz7.js → index-BYubXvgB.js} +5801 -5462
- package/dist/{metrics_global-BawXVoSi-BbuxD9JD.js → metrics_global-DLxl6iHN-BOlWJXlw.js} +1 -1
- package/dist/nmi-nHY0rKqg-CuCEwp5p.js +7 -0
- package/dist/{nuvei-DXKVuVRr-BU6CdMvt.js → nuvei-spbTTTAx-DrZe3yp5.js} +1 -1
- package/dist/{payabli-7PdId67j-C1ny_G1X.js → payabli-sfIGcqVb-CeaNHVl9.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +30 -30
- package/dist/{payglocal-vL14oF4n-tNH_zCze.js → payglocal-YM-pH-l6-BHDsKXRH.js} +1 -1
- package/dist/{payway_rest-Ca-gqNG3-Dlq4bSLu.js → payway_rest-BmoVSVNb-B1RiLiA9.js} +1 -1
- package/dist/{skybank-B8zqMe9Y-CvU0qUrH.js → skybank-DLrBhuxw-DHYvFtaI.js} +1 -1
- package/package.json +2 -2
- package/dist/nmi-LmUsZTYy-ByY_sPgd.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as d, P as S, u as g, J as p, F as m, O as T, e as v, a as I, b as u, c as f, d as y, I as A, i as C, j as R, Y as E } from "./index-BYubXvgB.js";
|
|
2
2
|
var P = Object.defineProperty, b = (l, e, s) => e in l ? P(l, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[e] = s, a = (l, e, s) => b(l, typeof e != "symbol" ? e + "" : e, s);
|
|
3
|
-
const U = { class: "mask" },
|
|
3
|
+
const U = { class: "mask" }, L = { class: "wrapper" }, M = { class: "container" }, $ = ["action"], _ = ["value"], w = /* @__PURE__ */ m({
|
|
4
4
|
__name: "ThreeDsChallenge",
|
|
5
5
|
props: {
|
|
6
6
|
threeDSServerTransID: {},
|
|
@@ -9,7 +9,7 @@ const U = { class: "mask" }, $ = { class: "wrapper" }, M = { class: "container"
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["close", "submit"],
|
|
11
11
|
setup(l, { emit: e }) {
|
|
12
|
-
const s = l, n = e, o = T(() =>
|
|
12
|
+
const s = l, n = e, o = T(() => R(s.formAction) ? s.formAction : ""), i = C(null), r = JSON.stringify({
|
|
13
13
|
threeDSServerTransID: s.threeDSServerTransID,
|
|
14
14
|
acsTransID: s.acsTransID,
|
|
15
15
|
messageVersion: "2.2.0",
|
|
@@ -19,11 +19,11 @@ const U = { class: "mask" }, $ = { class: "wrapper" }, M = { class: "container"
|
|
|
19
19
|
return v(() => {
|
|
20
20
|
var h;
|
|
21
21
|
o.value && ((h = i.value) == null || h.submit());
|
|
22
|
-
}), (h, c) => (
|
|
23
|
-
u("div",
|
|
22
|
+
}), (h, c) => (E(), I("div", U, [
|
|
23
|
+
u("div", L, [
|
|
24
24
|
u("div", M, [
|
|
25
25
|
f(y, {
|
|
26
|
-
onClick: c[0] || (c[0] = (
|
|
26
|
+
onClick: c[0] || (c[0] = (F) => n("close")),
|
|
27
27
|
id: "3ds-challenge-close"
|
|
28
28
|
}),
|
|
29
29
|
c[1] || (c[1] = u("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
|
|
@@ -39,7 +39,7 @@ const U = { class: "mask" }, $ = { class: "wrapper" }, M = { class: "container"
|
|
|
39
39
|
name: "creq",
|
|
40
40
|
value: A(t)
|
|
41
41
|
}, null, 8, _)
|
|
42
|
-
], 8,
|
|
42
|
+
], 8, $)
|
|
43
43
|
])
|
|
44
44
|
])
|
|
45
45
|
]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as i } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
const C = { class: "mask" }, A = { class: "wrapper" },
|
|
1
|
+
import { DefaultThreeDsProvider as i } from "./DefaultThreeDsProvider-P_cdnP1M-DDhZj7Cg.js";
|
|
2
|
+
import { P as h, J as c, F as u, O as d, e as D, Y as p, a as m, b as s, c as v, d as g, I as S, i as T, j as y } from "./index-BYubXvgB.js";
|
|
3
|
+
var P = Object.defineProperty, f = (a, e, t) => e in a ? P(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, I = (a, e, t) => f(a, e + "", t);
|
|
4
|
+
const C = { class: "mask" }, A = { class: "wrapper" }, F = { class: "container" }, b = ["action"], E = ["value"], R = /* @__PURE__ */ u({
|
|
5
5
|
__name: "ecentric",
|
|
6
6
|
props: {
|
|
7
7
|
threeDSServerTransID: {},
|
|
@@ -10,15 +10,15 @@ const C = { class: "mask" }, A = { class: "wrapper" }, $ = { class: "container"
|
|
|
10
10
|
authenticationValue: {}
|
|
11
11
|
},
|
|
12
12
|
setup(a) {
|
|
13
|
-
const e = a, t =
|
|
14
|
-
return
|
|
13
|
+
const e = a, t = d(() => y(e.formAction) ? e.formAction : ""), o = T(null), n = e.authenticationValue;
|
|
14
|
+
return D(() => {
|
|
15
15
|
var r;
|
|
16
16
|
t.value && ((r = o.value) == null || r.submit());
|
|
17
17
|
}), (r, l) => (p(), m("div", C, [
|
|
18
18
|
s("div", A, [
|
|
19
|
-
s("div",
|
|
19
|
+
s("div", F, [
|
|
20
20
|
v(g, {
|
|
21
|
-
onClick: l[0] || (l[0] = (
|
|
21
|
+
onClick: l[0] || (l[0] = ($) => r.emit("close"))
|
|
22
22
|
}),
|
|
23
23
|
l[1] || (l[1] = s("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)),
|
|
24
24
|
s("form", {
|
|
@@ -31,17 +31,17 @@ const C = { class: "mask" }, A = { class: "wrapper" }, $ = { class: "container"
|
|
|
31
31
|
s("input", {
|
|
32
32
|
type: "hidden",
|
|
33
33
|
name: "PaReq",
|
|
34
|
-
value:
|
|
34
|
+
value: S(n)
|
|
35
35
|
}, null, 8, E)
|
|
36
36
|
], 8, b)
|
|
37
37
|
])
|
|
38
38
|
])
|
|
39
39
|
]));
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
42
|
-
class
|
|
41
|
+
}), V = /* @__PURE__ */ c(R, [["__scopeId", "data-v-d0f7984c"]]);
|
|
42
|
+
class O extends i {
|
|
43
43
|
constructor() {
|
|
44
|
-
super(...arguments),
|
|
44
|
+
super(...arguments), I(this, "paResPayload", "");
|
|
45
45
|
}
|
|
46
46
|
getType() {
|
|
47
47
|
return "Ecentric";
|
|
@@ -60,7 +60,7 @@ class k extends i {
|
|
|
60
60
|
this.log(`[${this.getType()}][doChallenge]`);
|
|
61
61
|
const { destroy: n } = h({
|
|
62
62
|
el: document.body,
|
|
63
|
-
component:
|
|
63
|
+
component: V,
|
|
64
64
|
props: {
|
|
65
65
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
66
66
|
acsTransID: t,
|
|
@@ -82,5 +82,5 @@ class k extends i {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
O as EcentricThreeDsProvider
|
|
86
86
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
1
|
+
import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-P_cdnP1M-DDhZj7Cg.js";
|
|
2
|
+
import { P as l, j as n, J as u, F as c, O as p, Y as d, a as g, b as a, C as h } from "./index-BYubXvgB.js";
|
|
3
3
|
var D = Object.defineProperty, S = (r, e, t) => e in r ? D(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, i = (r, e, t) => S(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
const
|
|
4
|
+
const m = { class: "mask" }, y = { class: "wrapper" }, f = ["src"], v = /* @__PURE__ */ c({
|
|
5
5
|
__name: "GPayments",
|
|
6
6
|
props: {
|
|
7
7
|
url: {},
|
|
@@ -16,8 +16,8 @@ const y = { class: "mask" }, m = { class: "wrapper" }, f = ["src"], v = /* @__PU
|
|
|
16
16
|
height: `${e.height || 400}px`
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
return (T,
|
|
20
|
-
a("div",
|
|
19
|
+
return (T, b) => (d(), g("div", m, [
|
|
20
|
+
a("div", y, [
|
|
21
21
|
a("div", {
|
|
22
22
|
class: "container",
|
|
23
23
|
style: h([s(), { padding: "0", margin: "0" }])
|
|
@@ -31,7 +31,7 @@ const y = { class: "mask" }, m = { class: "wrapper" }, f = ["src"], v = /* @__PU
|
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
33
|
}), C = /* @__PURE__ */ u(v, [["__scopeId", "data-v-cf5aa816"]]);
|
|
34
|
-
class
|
|
34
|
+
class P extends o {
|
|
35
35
|
constructor() {
|
|
36
36
|
super(...arguments), i(this, "onDoAuthSuccess", (e, t) => {
|
|
37
37
|
const s = JSON.parse(t);
|
|
@@ -97,5 +97,5 @@ class $ extends o {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
export {
|
|
100
|
-
|
|
100
|
+
P as GPaymentsThreeDsProvider
|
|
101
101
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as w } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
import { DefaultThreeDsProvider as w } from "./DefaultThreeDsProvider-P_cdnP1M-DDhZj7Cg.js";
|
|
2
|
+
import { v as g, P as E, u as A, J as f, F as b, e as T, h as L, S as _, g as x, Y as G, a as N, b as m, c as I, d as $, i as F } from "./index-BYubXvgB.js";
|
|
3
|
+
var H = Object.defineProperty, O = (h, e, t) => e in h ? H(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, p = (h, e, t) => O(h, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const M = { class: "mask" }, j = { class: "wrapper" }, U = { class: "container" }, k = /* @__PURE__ */ b({
|
|
5
5
|
__name: "MetricsGlobalThreeDsChallenge",
|
|
6
6
|
emits: ["close", "submit"],
|
|
7
7
|
setup(h, { emit: e }) {
|
|
8
|
-
const t = e, r =
|
|
8
|
+
const t = e, r = F(!1);
|
|
9
9
|
function a(c) {
|
|
10
10
|
var o;
|
|
11
11
|
["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes((o = c.data) == null ? void 0 : o.message) && (r.value = c.data.message === "3DS_CHALLENGE_SHOW");
|
|
@@ -14,10 +14,10 @@ const U = { class: "mask" }, j = { class: "wrapper" }, F = { class: "container"
|
|
|
14
14
|
window.addEventListener("message", a);
|
|
15
15
|
}), L(() => {
|
|
16
16
|
window.removeEventListener("message", a);
|
|
17
|
-
}), (c, o) =>
|
|
17
|
+
}), (c, o) => _((G(), N("div", M, [
|
|
18
18
|
m("div", j, [
|
|
19
|
-
m("div",
|
|
20
|
-
|
|
19
|
+
m("div", U, [
|
|
20
|
+
I($, {
|
|
21
21
|
onClick: o[0] || (o[0] = (i) => t("close")),
|
|
22
22
|
id: "3ds-challenge-close"
|
|
23
23
|
}),
|
|
@@ -25,10 +25,10 @@ const U = { class: "mask" }, j = { class: "wrapper" }, F = { class: "container"
|
|
|
25
25
|
])
|
|
26
26
|
])
|
|
27
27
|
], 512)), [
|
|
28
|
-
[
|
|
28
|
+
[x, r.value]
|
|
29
29
|
]);
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
31
|
+
}), R = /* @__PURE__ */ f(k, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: d, showSpinner: W } = A(), D = 5;
|
|
32
32
|
class q extends w {
|
|
33
33
|
constructor(e, t, r) {
|
|
34
34
|
var a;
|
|
@@ -69,11 +69,11 @@ class q extends w {
|
|
|
69
69
|
d(), g(this.container, "Payment information is missing");
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(),
|
|
72
|
+
W();
|
|
73
|
+
const s = (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), v = i.expiryDate.length === 4 ? i.expiryDate[2] + i.expiryDate[3] : "", y = i.expiryDate.length === 4 ? i.expiryDate[0] + i.expiryDate[1] : "", [P = "", C = ""] = ((r = i.cardholder) == null ? void 0 : r.split(/\s+/)) || [], S = {
|
|
74
74
|
cardNumber: i.cardNumber,
|
|
75
|
-
cardExpMonth:
|
|
76
|
-
cardExpYear: parseInt(
|
|
75
|
+
cardExpMonth: v,
|
|
76
|
+
cardExpYear: parseInt(y) + 2e3,
|
|
77
77
|
currency: (a = this.threeDsProcessor) == null ? void 0 : a.getCurrency(),
|
|
78
78
|
amount: (c = this.threeDsProcessor) == null ? void 0 : c.getAmount(),
|
|
79
79
|
email: (o = this.threeDsProcessor) == null ? void 0 : o.getEmail(),
|
|
@@ -82,8 +82,8 @@ class q extends w {
|
|
|
82
82
|
state: s == null ? void 0 : s.state,
|
|
83
83
|
address1: s == null ? void 0 : s.streetAddress,
|
|
84
84
|
country: s == null ? void 0 : s.country,
|
|
85
|
-
firstName: (s == null ? void 0 : s.firstName) ||
|
|
86
|
-
lastName: (s == null ? void 0 : s.lastName) ||
|
|
85
|
+
firstName: (s == null ? void 0 : s.firstName) || P || "payFURL",
|
|
86
|
+
lastName: (s == null ? void 0 : s.lastName) || C || "payFURL",
|
|
87
87
|
postalCode: s == null ? void 0 : s.postalCode
|
|
88
88
|
}, u = this.threeDS.createUI(S);
|
|
89
89
|
u.start("#ThreeDsChallengeIFrame"), u.on("challenge", (n) => {
|
|
@@ -116,7 +116,7 @@ class q extends w {
|
|
|
116
116
|
initChallenge() {
|
|
117
117
|
const { destroy: e } = E({
|
|
118
118
|
el: document.body,
|
|
119
|
-
component:
|
|
119
|
+
component: R,
|
|
120
120
|
on: {
|
|
121
121
|
close: () => {
|
|
122
122
|
var t;
|
package/dist/{NuveiThreeDsProvider-Da4x--0n-2TdKYejN.js → NuveiThreeDsProvider-DW0A-UVJ-HL0mY8J4.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DefaultThreeDsProvider as
|
|
1
|
+
import { v as d, P as p, J as m, u as h, F as g, e as D, Y as S, a as v, b as l } from "./index-BYubXvgB.js";
|
|
2
|
+
import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-P_cdnP1M-DDhZj7Cg.js";
|
|
3
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
4
|
const N = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
5
5
|
__name: "nuvei",
|
|
@@ -71,14 +71,14 @@ const N = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
|
71
71
|
window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
return (t, r) => (S(),
|
|
74
|
+
return (t, r) => (S(), v("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: E } = h();
|
|
81
|
-
class
|
|
81
|
+
class A extends y {
|
|
82
82
|
constructor() {
|
|
83
83
|
super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
|
|
84
84
|
var s, o;
|
|
@@ -172,5 +172,5 @@ class x extends v {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
export {
|
|
175
|
-
|
|
175
|
+
A as NuveiThreeDsProvider
|
|
176
176
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
|
|
1
|
+
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-P_cdnP1M-DDhZj7Cg.js";
|
|
2
|
+
import { v as h, P as C, J as w, F as E, i as D, O as I, f as L, e as m, h as p, Y as S, a as k, b as g, D as R, j as b } from "./index-BYubXvgB.js";
|
|
3
|
+
const c = D(!1);
|
|
4
|
+
function A(r, ...e) {
|
|
5
|
+
c.value && console.log(r, e);
|
|
6
6
|
}
|
|
7
7
|
function v(r) {
|
|
8
8
|
var e, t;
|
|
9
|
-
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status === R && (
|
|
9
|
+
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status === R && (c.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function $() {
|
|
12
12
|
return m(() => {
|
|
13
13
|
window.addEventListener("message", v);
|
|
14
14
|
}), p(() => {
|
|
15
15
|
window.removeEventListener("message", v);
|
|
16
16
|
}), {
|
|
17
|
-
debug:
|
|
18
|
-
logMessage:
|
|
17
|
+
debug: c,
|
|
18
|
+
logMessage: A
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const x = { class: "modal-mask" }, U = { class: "modal-wrapper" }, G = ["src"], M = /* @__PURE__ */ E({
|
|
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 } =
|
|
28
|
+
const { logMessage: t } = $(), a = r, s = e, o = D(a.url), n = I(() => b(o.value) ? o.value : "");
|
|
29
29
|
L(() => a.url, (l) => {
|
|
30
30
|
o.value = l;
|
|
31
31
|
}), m(() => {
|
|
@@ -38,20 +38,20 @@ const A = { class: "modal-mask" }, U = { class: "modal-wrapper" }, _ = ["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 P = d.split(".")[1], T = window.atob(P), f = JSON.parse(T);
|
|
42
|
+
s("close", f);
|
|
43
43
|
}
|
|
44
|
-
return (l, i) => (S(), k("div",
|
|
44
|
+
return (l, i) => (S(), k("div", x, [
|
|
45
45
|
g("div", U, [
|
|
46
46
|
g("iframe", {
|
|
47
47
|
src: n.value,
|
|
48
48
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
49
|
-
}, null, 8,
|
|
49
|
+
}, null, 8, G)
|
|
50
50
|
])
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
class
|
|
53
|
+
}), O = /* @__PURE__ */ w(M, [["__scopeId", "data-v-0699f67d"]]);
|
|
54
|
+
class F extends y {
|
|
55
55
|
getType() {
|
|
56
56
|
return "PayGLocal";
|
|
57
57
|
}
|
|
@@ -62,14 +62,14 @@ class z extends f {
|
|
|
62
62
|
var n;
|
|
63
63
|
this.log(`[${this.getType()}]: getCardDetails`, s, o), (n = this.threeDsProcessor) == null || n.setPaymentInfo(s), this.initChallenge(o.RedirectUrl);
|
|
64
64
|
}, () => {
|
|
65
|
-
|
|
65
|
+
h(this.container, "Unable to get card information");
|
|
66
66
|
});
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
(a = this.threeDsProcessor) == null || a.tokeniseCard(this.threeDsProcessor.getProviderId(), (s) => {
|
|
70
70
|
this.log(`[${this.getType()}]: tokeniseCard`, s), this.initChallenge(s.gatewayTokenData.RedirectUrl);
|
|
71
71
|
}, (s) => {
|
|
72
|
-
|
|
72
|
+
h(this.container, s);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
onAuth(e, t) {
|
|
@@ -78,12 +78,12 @@ class z extends f {
|
|
|
78
78
|
}
|
|
79
79
|
initChallenge(e) {
|
|
80
80
|
if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
|
|
81
|
-
|
|
81
|
+
h(this.container, "3D Secure URL is missing");
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
84
|
const { destroy: t } = C({
|
|
85
85
|
el: document.body,
|
|
86
|
-
component:
|
|
86
|
+
component: O,
|
|
87
87
|
props: {
|
|
88
88
|
url: e
|
|
89
89
|
},
|
|
@@ -123,5 +123,5 @@ class z extends f {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
F as PayGLocalThreeDsProvider
|
|
127
127
|
};
|
package/dist/{PayWayAppleButton-BnfVXscK-s3xK_XOH.js → PayWayAppleButton-DcRb1H14-Dt9p1oj7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as b, $ as v, T as g } from "./index-BYubXvgB.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",
|