@payfurl/client 4.6.33 → 4.7.1
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-DfJyYDV8.js → CxPayThreeDsProvider-eCTlBrYD.js} +1 -1
- package/dist/sdk/{DefaultThreeDsProvider-DvV6zVzO.js → DefaultThreeDsProvider-Dta0kf29.js} +3 -3
- package/dist/sdk/{EcentricThreeDsProvider-DC4tQCJ4.js → EcentricThreeDsProvider-Bx0Ipc0t.js} +4 -4
- package/dist/sdk/{EpnaThreeDsProvider-D9tTUWnr.js → EpnaThreeDsProvider-qbbN7SK3.js} +1 -1
- package/dist/sdk/{FlashBancThreeDsProvider-Dc_WgWyQ.js → FlashBancThreeDsProvider-D5LZCAx8.js} +1 -1
- package/dist/sdk/{GPaymentsThreeDsProvider-BAJmTSdj.js → GPaymentsThreeDsProvider-v1ox82Iy.js} +2 -2
- package/dist/sdk/{MetricsGlobalThreeDsProvider-DiPpCK4e.js → MetricsGlobalThreeDsProvider-BDZHRRG6.js} +30 -30
- package/dist/sdk/{NmiThreeDsProvider-X5Wb78Qq.js → NmiThreeDsProvider-Dz6A5VdR.js} +1 -1
- package/dist/sdk/{NuveiThreeDsProvider-C7kP4S9V.js → NuveiThreeDsProvider-CH9IUzJW.js} +4 -4
- package/dist/sdk/{PayGLocalThreeDsProvider-pa38V_3c.js → PayGLocalThreeDsProvider-Dz2iXoDE.js} +19 -19
- package/dist/sdk/{PayWayAppleButton-DGBgHxM1.js → PayWayAppleButton-CXgWk9kl.js} +1 -1
- package/dist/sdk/{PayabliThreeDsProvider-CMCehiRL.js → PayabliThreeDsProvider-CDk4BS0T.js} +1 -1
- package/dist/sdk/{SkyBankThreeDsProvider-BJXZbNSS.js → SkyBankThreeDsProvider-C8R_Q7ou.js} +1 -1
- package/dist/sdk/{cxpay-CmCXB_3H.js → cxpay-BrqOPpzf.js} +1 -1
- package/dist/sdk/{default-DwmL369u.js → default-Bi8RN-hO.js} +1 -1
- package/dist/sdk/{ecentric-CkX8jlMS.js → ecentric-CYASmKGu.js} +1 -1
- package/dist/sdk/{epna-CQuWi-kj.js → epna-BY0CgKjV.js} +1 -1
- package/dist/sdk/{flashbanc-ROJhNrEr.js → flashbanc-BWyCZRpI.js} +1 -1
- package/dist/sdk/{ThreeDsProvider.interface-Ck5SyJOr.js → fraudStatus.type-BjY0DMZw.js} +3693 -3590
- package/dist/sdk/{gpayments-CMf-VGx8.js → gpayments-gu98_ZwF.js} +1 -1
- package/dist/sdk/{metrics_global-DCnzJ8W3.js → metrics_global-DRsWHoQw.js} +1 -1
- package/dist/sdk/{nmi-BAQHxhKe.js → nmi-DnzpEagI.js} +1 -1
- package/dist/sdk/{nuvei-DY1eIaaI.js → nuvei-BfZYu92M.js} +1 -1
- package/dist/sdk/{payabli-DD1ZuFv1.js → payabli-Bzn4Zq2P.js} +1 -1
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +17 -17
- package/dist/sdk/{payglocal-CC7Mmvkg.js → payglocal-BDleNrJU.js} +1 -1
- package/dist/sdk/{payway_rest-C2bgT2mt.js → payway_rest-icjjGspK.js} +1 -1
- package/dist/sdk/{skybank-DLUEQlDI.js → skybank-CSAsK1jU.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
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,
|
|
4
|
+
import { d as p, o as g, r as m, c as T, a as f, b as D, e as I, C as y, u as C, _ as A, h as E, T as v, f as _ } from "./fraudStatus.type-BjY0DMZw.js";
|
|
5
5
|
const R = { class: "mask" }, P = { class: "wrapper" }, U = { class: "container" }, $ = ["action"], b = ["value"], L = /* @__PURE__ */ p({
|
|
6
6
|
__name: "ThreeDsChallenge",
|
|
7
7
|
props: {
|
|
@@ -11,14 +11,14 @@ 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 =
|
|
14
|
+
const s = n, t = e, o = m(null), a = JSON.stringify({
|
|
15
15
|
threeDSServerTransID: s.threeDSServerTransID,
|
|
16
16
|
acsTransID: s.acsTransID,
|
|
17
17
|
messageVersion: "2.2.0",
|
|
18
18
|
messageType: "CReq",
|
|
19
19
|
challengeWindowSize: "01"
|
|
20
20
|
}), i = encodeURI(window.btoa(a).replace(/=*$/, ""));
|
|
21
|
-
return
|
|
21
|
+
return g(() => {
|
|
22
22
|
var c;
|
|
23
23
|
(c = o.value) == null || c.submit();
|
|
24
24
|
}), (c, h) => (f(), T("div", R, [
|
package/dist/sdk/{EcentricThreeDsProvider-DC4tQCJ4.js → EcentricThreeDsProvider-Bx0Ipc0t.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
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,
|
|
4
|
+
import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-Dta0kf29.js";
|
|
5
|
+
import { d as p, o as u, r as D, c as m, a as g, b as a, e as f, C as S, u as T, _, f as y } from "./fraudStatus.type-BjY0DMZw.js";
|
|
6
6
|
const C = { class: "mask" }, v = { class: "wrapper" }, P = { class: "container" }, I = ["action"], A = ["value"], V = /* @__PURE__ */ p({
|
|
7
7
|
__name: "ecentric",
|
|
8
8
|
props: {
|
|
@@ -12,8 +12,8 @@ const C = { class: "mask" }, v = { class: "wrapper" }, P = { class: "container"
|
|
|
12
12
|
authenticationValue: {}
|
|
13
13
|
},
|
|
14
14
|
setup(s) {
|
|
15
|
-
const t = s, e =
|
|
16
|
-
return
|
|
15
|
+
const t = s, e = D(null), n = t.authenticationValue;
|
|
16
|
+
return u(() => {
|
|
17
17
|
var r;
|
|
18
18
|
(r = e.value) == null || r.submit();
|
|
19
19
|
}), (r, o) => (g(), m("div", C, [
|
package/dist/sdk/{GPaymentsThreeDsProvider-BAJmTSdj.js → GPaymentsThreeDsProvider-v1ox82Iy.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var i = Object.defineProperty;
|
|
2
2
|
var l = (o, r, e) => r in o ? i(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
|
|
3
3
|
var n = (o, r, e) => l(o, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
-
import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d, c as u, a as p, b as h, n as a, _ as g, f as D } from "./
|
|
4
|
+
import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-Dta0kf29.js";
|
|
5
|
+
import { d, c as u, a as p, b as h, n as a, _ as g, f as D } from "./fraudStatus.type-BjY0DMZw.js";
|
|
6
6
|
const S = { class: "mask" }, m = { class: "wrapper" }, y = ["src"], f = /* @__PURE__ */ d({
|
|
7
7
|
__name: "GPayments",
|
|
8
8
|
props: {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (h, o, t) =>
|
|
4
|
-
import { DefaultThreeDsProvider as
|
|
5
|
-
import { d as
|
|
6
|
-
const
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var _ = (h, o, t) => o in h ? E(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t;
|
|
3
|
+
var m = (h, o, t) => _(h, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
+
import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-Dta0kf29.js";
|
|
5
|
+
import { d as v, o as T, i as b, w as L, v as N, r as x, c as I, a as G, b as g, e as $, C as H, _ as M, h as k, s as p, f as F } from "./fraudStatus.type-BjY0DMZw.js";
|
|
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 = x(!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) =>
|
|
20
|
-
g("div",
|
|
21
|
-
g("div",
|
|
22
|
-
|
|
23
|
-
onClick: i[0] || (i[0] = (
|
|
19
|
+
}), (r, i) => L((G(), I("div", O, [
|
|
20
|
+
g("div", U, [
|
|
21
|
+
g("div", j, [
|
|
22
|
+
$(H, {
|
|
23
|
+
onClick: i[0] || (i[0] = (D) => t("close")),
|
|
24
24
|
id: "3ds-challenge-close"
|
|
25
25
|
}),
|
|
26
26
|
i[1] || (i[1] = g("div", { id: "ThreeDsChallengeIFrame" }, null, -1))
|
|
27
27
|
])
|
|
28
28
|
])
|
|
29
29
|
], 512)), [
|
|
30
|
-
[
|
|
30
|
+
[N, e.value]
|
|
31
31
|
]);
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
class
|
|
33
|
+
}), W = /* @__PURE__ */ M(B, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: R } = k(), u = 5;
|
|
34
|
+
class q extends A {
|
|
35
35
|
constructor(t, e, s) {
|
|
36
36
|
var r;
|
|
37
37
|
super(t, e, s);
|
|
@@ -68,30 +68,30 @@ class K extends f {
|
|
|
68
68
|
onPostAuth() {
|
|
69
69
|
}
|
|
70
70
|
startAuth() {
|
|
71
|
-
var
|
|
71
|
+
var y, d, C, w, S, f;
|
|
72
72
|
this.log(`[${this.getType()}]: startAuth`);
|
|
73
|
-
const t = (
|
|
73
|
+
const t = (y = this.threeDsProcessor) == null ? void 0 : y.getPaymentInfo();
|
|
74
74
|
if (!t) {
|
|
75
75
|
c(), p(this.container, "Payment information is missing");
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
|
|
79
|
-
const e = (
|
|
78
|
+
R();
|
|
79
|
+
const e = (d = this.threeDsProcessor) == null ? void 0 : d.getAddressInfo(), s = t.expiryDate.length === 4 ? t.expiryDate[2] + t.expiryDate[3] : "", r = t.expiryDate.length === 4 ? t.expiryDate[0] + t.expiryDate[1] : "", [i = "", D = ""] = ((C = t.cardholder) == null ? void 0 : C.split(/\s+/)) || [], P = {
|
|
80
80
|
cardNumber: t.cardNumber,
|
|
81
81
|
cardExpMonth: s,
|
|
82
82
|
cardExpYear: parseInt(r) + 2e3,
|
|
83
|
-
currency: (
|
|
84
|
-
amount: (
|
|
85
|
-
email: (
|
|
83
|
+
currency: (w = this.threeDsProcessor) == null ? void 0 : w.getCurrency(),
|
|
84
|
+
amount: (S = this.threeDsProcessor) == null ? void 0 : S.getAmount(),
|
|
85
|
+
email: (f = this.threeDsProcessor) == null ? void 0 : f.getEmail(),
|
|
86
86
|
phone: e == null ? void 0 : e.phoneNumber,
|
|
87
87
|
city: e == null ? void 0 : e.city,
|
|
88
88
|
state: e == null ? void 0 : e.state,
|
|
89
89
|
address1: e == null ? void 0 : e.streetAddress,
|
|
90
90
|
country: e == null ? void 0 : e.country,
|
|
91
|
-
firstName: e == null ? void 0 : e.firstName,
|
|
92
|
-
lastName: e == null ? void 0 : e.lastName,
|
|
91
|
+
firstName: (e == null ? void 0 : e.firstName) || i || "payFURL",
|
|
92
|
+
lastName: (e == null ? void 0 : e.lastName) || D || "payFURL",
|
|
93
93
|
postalCode: e == null ? void 0 : e.postalCode
|
|
94
|
-
}, l = this.threeDS.createUI(
|
|
94
|
+
}, l = this.threeDS.createUI(P);
|
|
95
95
|
l.start("#ThreeDsChallengeIFrame"), l.on("challenge", (n) => {
|
|
96
96
|
this.log(`[${this.getType()}][onChallenge]`, n), c(), this.showChallenge();
|
|
97
97
|
}), l.on("complete", (n) => {
|
|
@@ -120,9 +120,9 @@ class K extends f {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
initChallenge() {
|
|
123
|
-
const { destroy: t } =
|
|
123
|
+
const { destroy: t } = F({
|
|
124
124
|
el: document.body,
|
|
125
|
-
component:
|
|
125
|
+
component: W,
|
|
126
126
|
on: {
|
|
127
127
|
close: () => {
|
|
128
128
|
var e;
|
|
@@ -148,5 +148,5 @@ class K extends f {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
export {
|
|
151
|
-
|
|
151
|
+
q as MetricsGlobalThreeDsProvider
|
|
152
152
|
};
|
|
@@ -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, h as d, o as g, c as D, a as S, b as l, _ as f, s as y, f as P } from "./
|
|
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, h as d, o as g, c as D, a as S, b as l, _ as f, s as y, f as P } from "./fraudStatus.type-BjY0DMZw.js";
|
|
5
|
+
import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-Dta0kf29.js";
|
|
6
6
|
const C = { class: "mask" }, _ = /* @__PURE__ */ m({
|
|
7
7
|
__name: "nuvei",
|
|
8
8
|
props: {
|
|
@@ -73,11 +73,11 @@ const C = { class: "mask" }, _ = /* @__PURE__ */ m({
|
|
|
73
73
|
window.postMessage({ status: "3ds_challenge_complete", cres: a }, "*");
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
return (s, a) => (S(), D("div", C, a[0] || (a[0] = [
|
|
76
|
+
return (s, a) => (S(), D("div", C, [...a[0] || (a[0] = [
|
|
77
77
|
l("div", { class: "wrapper" }, [
|
|
78
78
|
l("div", { class: "container" })
|
|
79
79
|
], -1)
|
|
80
|
-
])));
|
|
80
|
+
])]));
|
|
81
81
|
}
|
|
82
82
|
}), E = /* @__PURE__ */ f(_, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: V } = d();
|
|
83
83
|
class A extends T {
|
package/dist/sdk/{PayGLocalThreeDsProvider-pa38V_3c.js → PayGLocalThreeDsProvider-Dz2iXoDE.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { DefaultThreeDsProvider as C } from "./DefaultThreeDsProvider-Dta0kf29.js";
|
|
2
|
+
import { o as m, i as p, r as D, I as y, d as _, j as w, c as E, a as I, b as g, _ as L, s as c, f as S } from "./fraudStatus.type-BjY0DMZw.js";
|
|
3
|
+
const h = D(!1);
|
|
4
4
|
function R(s, ...e) {
|
|
5
|
-
|
|
5
|
+
h.value && console.log(s, e);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function u(s) {
|
|
8
8
|
var e, o;
|
|
9
|
-
(e = s == null ? void 0 : s.data) != null && e.status && s.data.status === y && (
|
|
9
|
+
(e = s == null ? void 0 : s.data) != null && e.status && s.data.status === y && (h.value = !!((o = s == null ? void 0 : s.data) != null && o.debug));
|
|
10
10
|
}
|
|
11
11
|
function k() {
|
|
12
|
-
return
|
|
13
|
-
window.addEventListener("message",
|
|
14
|
-
}),
|
|
15
|
-
window.removeEventListener("message",
|
|
12
|
+
return m(() => {
|
|
13
|
+
window.addEventListener("message", u);
|
|
14
|
+
}), p(() => {
|
|
15
|
+
window.removeEventListener("message", u);
|
|
16
16
|
}), {
|
|
17
|
-
debug:
|
|
17
|
+
debug: h,
|
|
18
18
|
logMessage: R
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -25,25 +25,25 @@ const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, M = ["src"],
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["close"],
|
|
27
27
|
setup(s, { emit: e }) {
|
|
28
|
-
const { logMessage: o } = k(), r = s, t = e, a =
|
|
29
|
-
|
|
28
|
+
const { logMessage: o } = k(), r = s, t = e, a = D(r.url);
|
|
29
|
+
w(() => r.url, (i) => {
|
|
30
30
|
a.value = i;
|
|
31
|
-
}),
|
|
31
|
+
}), m(() => {
|
|
32
32
|
window.addEventListener("message", n);
|
|
33
|
-
}),
|
|
33
|
+
}), p(() => {
|
|
34
34
|
window.removeEventListener("message", n);
|
|
35
35
|
});
|
|
36
36
|
function n(i) {
|
|
37
|
-
var
|
|
38
|
-
if (o("PayGLocalThreeDsChallenge: Message received", i.data), !((
|
|
37
|
+
var d;
|
|
38
|
+
if (o("PayGLocalThreeDsChallenge: Message received", i.data), !((d = i == null ? void 0 : i.data) != null && d["payglocal-token"])) return;
|
|
39
39
|
const l = i.data["payglocal-token"];
|
|
40
40
|
o("Token received", l);
|
|
41
41
|
const f = l.split(".")[1], P = window.atob(f), T = JSON.parse(P);
|
|
42
42
|
t("close", T);
|
|
43
43
|
}
|
|
44
44
|
return (i, l) => (I(), E("div", b, [
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
g("div", A, [
|
|
46
|
+
g("iframe", {
|
|
47
47
|
src: a.value,
|
|
48
48
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
49
49
|
}, null, 8, M)
|
|
@@ -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-BjY0DMZw.js";
|
|
5
5
|
const d = {
|
|
6
6
|
CHECKOUT: "CHECKOUT",
|
|
7
7
|
CHARGE: "CHARGE"
|