@payfurl/client 4.6.3 → 4.6.5
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-40d2c5fb.mjs → CxPayThreeDsProvider-2657e7f5.mjs} +3 -3
- package/dist/sdk/{DefaultThreeDsProvider-5cb383f3.mjs → DefaultThreeDsProvider-21af0478.mjs} +12 -12
- package/dist/sdk/{EcentricThreeDsProvider-3dcd4237.mjs → EcentricThreeDsProvider-3dc8f90c.mjs} +2 -2
- package/dist/sdk/{EpnaThreeDsProvider-a660b17d.mjs → EpnaThreeDsProvider-2e8a06d7.mjs} +3 -3
- package/dist/sdk/{FlashBancThreeDsProvider-b99fd0a8.mjs → FlashBancThreeDsProvider-ce906d1c.mjs} +3 -3
- package/dist/sdk/{GPaymentsThreeDsProvider-5cf80737.mjs → GPaymentsThreeDsProvider-ec0b158b.mjs} +2 -2
- package/dist/sdk/{MetricsGlobalThreeDsProvider-d1b2c081.mjs → MetricsGlobalThreeDsProvider-8e95c440.mjs} +9 -9
- package/dist/sdk/{NmiThreeDsProvider-396a0ddd.mjs → NmiThreeDsProvider-4be4e0a0.mjs} +3 -3
- package/dist/sdk/{NuveiThreeDsProvider-26959462.mjs → NuveiThreeDsProvider-e36044ff.mjs} +56 -56
- package/dist/sdk/{PayWayAppleButton-c8432bce.mjs → PayWayAppleButton-65bc7d42.mjs} +1 -1
- package/dist/sdk/{PayabliThreeDsProvider-a7d94b89.mjs → PayabliThreeDsProvider-a3613a23.mjs} +3 -3
- package/dist/sdk/{SkyBankThreeDsProvider-20cd542d.mjs → SkyBankThreeDsProvider-c11480b4.mjs} +3 -3
- package/dist/sdk/cxpay-1defb4f8.mjs +10 -0
- package/dist/sdk/{default-76303d08.mjs → default-201440db.mjs} +2 -2
- package/dist/sdk/{ecentric-81f3631c.mjs → ecentric-0c1d9bd3.mjs} +3 -3
- package/dist/sdk/epna-b27afb05.mjs +10 -0
- package/dist/sdk/flashbanc-40864c43.mjs +10 -0
- package/dist/sdk/{gpayments-49110aa8.mjs → gpayments-529a054e.mjs} +3 -3
- package/dist/sdk/main-971bd0f8.mjs +10164 -0
- package/dist/sdk/{metrics_global-ba0fb545.mjs → metrics_global-993e467f.mjs} +3 -3
- package/dist/sdk/nmi-58950ef7.mjs +10 -0
- package/dist/sdk/{nuvei-f2384e2a.mjs → nuvei-6010a5c3.mjs} +3 -3
- package/dist/sdk/payabli-327200b0.mjs +10 -0
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +130 -11
- package/dist/sdk/payway_rest-50b3d7a3.mjs +8 -0
- package/dist/sdk/skybank-7c6be5cf.mjs +10 -0
- package/dist/sdk/style.css +1 -1
- package/package.json +1 -1
- package/dist/sdk/cxpay-6d57641b.mjs +0 -10
- package/dist/sdk/epna-b6806a36.mjs +0 -10
- package/dist/sdk/flashbanc-a06cb783.mjs +0 -10
- package/dist/sdk/main-55a85033.mjs +0 -9835
- package/dist/sdk/nmi-8ce29228.mjs +0 -10
- package/dist/sdk/payabli-1a296ee4.mjs +0 -10
- package/dist/sdk/payway_rest-e2ce2046.mjs +0 -8
- package/dist/sdk/skybank-bc06021d.mjs +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
class i extends r {
|
|
5
5
|
getType() {
|
|
6
6
|
return "CxPay";
|
package/dist/sdk/{DefaultThreeDsProvider-5cb383f3.mjs → DefaultThreeDsProvider-21af0478.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var D = Object.defineProperty;
|
|
2
2
|
var u = (a, e, s) => e in a ? D(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
3
3
|
var o = (a, e, s) => (u(a, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
-
import { d as S, r as d, o as g, a as p, c as T, b as i, e as _, C as m, u as I, p as f, f as y, _ as A,
|
|
5
|
-
const P = (a) => (f("data-v-c82daa22"), a = a(), y(), a), U = { class: "mask" }, $ = { class: "wrapper" }, L = { class: "container" }, b = /* @__PURE__ */ P(() => /* @__PURE__ */ i("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), M = ["action"], w = ["value"],
|
|
4
|
+
import { d as S, r as d, o as g, a as p, c as T, b as i, e as _, C as m, u as I, p as f, f as y, _ as A, j as v, T as C, h as E, F as R } from "./main-971bd0f8.mjs";
|
|
5
|
+
const P = (a) => (f("data-v-c82daa22"), a = a(), y(), a), U = { class: "mask" }, $ = { class: "wrapper" }, L = { class: "container" }, b = /* @__PURE__ */ P(() => /* @__PURE__ */ i("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), M = ["action"], w = ["value"], N = /* @__PURE__ */ S({
|
|
6
6
|
__name: "ThreeDsChallenge",
|
|
7
7
|
props: {
|
|
8
8
|
threeDSServerTransID: null,
|
|
@@ -25,7 +25,7 @@ const P = (a) => (f("data-v-c82daa22"), a = a(), y(), a), U = { class: "mask" },
|
|
|
25
25
|
i("div", $, [
|
|
26
26
|
i("div", L, [
|
|
27
27
|
_(m, {
|
|
28
|
-
onClick: l[0] || (l[0] = (
|
|
28
|
+
onClick: l[0] || (l[0] = (H) => e("close")),
|
|
29
29
|
id: "3ds-challenge-close"
|
|
30
30
|
}),
|
|
31
31
|
b,
|
|
@@ -47,8 +47,8 @@ const P = (a) => (f("data-v-c82daa22"), a = a(), y(), a), U = { class: "mask" },
|
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
const
|
|
51
|
-
class
|
|
50
|
+
const k = /* @__PURE__ */ A(N, [["__scopeId", "data-v-c82daa22"]]), { hideSpinner: c, showSpinner: O } = v(), q = "3ds_method_invocation_complete", V = "3ds_challenge_complete";
|
|
51
|
+
class J {
|
|
52
52
|
constructor(e, s, t) {
|
|
53
53
|
o(this, "log");
|
|
54
54
|
o(this, "container");
|
|
@@ -138,7 +138,7 @@ class F {
|
|
|
138
138
|
return "";
|
|
139
139
|
}
|
|
140
140
|
onPreAuth() {
|
|
141
|
-
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (
|
|
141
|
+
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (O(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
|
|
142
142
|
}
|
|
143
143
|
onAuth(e, s) {
|
|
144
144
|
var t;
|
|
@@ -163,11 +163,11 @@ class F {
|
|
|
163
163
|
messageHandler(e) {
|
|
164
164
|
var s, t;
|
|
165
165
|
if (!(!((s = e == null ? void 0 : e.data) != null && s.status) || ((t = e == null ? void 0 : e.data) == null ? void 0 : t.status) === C)) {
|
|
166
|
-
if (e.data.status ===
|
|
166
|
+
if (e.data.status === q) {
|
|
167
167
|
e.stopPropagation(), this.invocationComplete(e);
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
|
-
e.data.status ===
|
|
170
|
+
e.data.status === V && (e.stopPropagation(), this.challengeComplete(e));
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
invocationComplete(e) {
|
|
@@ -182,7 +182,7 @@ class F {
|
|
|
182
182
|
this.log(`[${this.getType()}][doChallenge]`), c();
|
|
183
183
|
const { destroy: r } = E({
|
|
184
184
|
el: document.body,
|
|
185
|
-
component:
|
|
185
|
+
component: k,
|
|
186
186
|
props: {
|
|
187
187
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
188
188
|
acsTransID: s,
|
|
@@ -215,7 +215,7 @@ class F {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
J as DefaultThreeDsProvider,
|
|
219
|
+
V as THREE_DS_CHALLENGE_COMPLETE,
|
|
220
|
+
q as THREE_DS_METHOD_INVOCATION_COMPLETE
|
|
221
221
|
};
|
package/dist/sdk/{EcentricThreeDsProvider-3dcd4237.mjs → EcentricThreeDsProvider-3dc8f90c.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var h = (t, s, e) => s in t ? c(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
3
|
var i = (t, s, e) => (h(t, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
|
-
import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d as p, r as u, o as _, a as D, c as m, b as r, e as g, C as S, u as y, p as f, f as T, _ as v, h as C } from "./main-
|
|
4
|
+
import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-21af0478.mjs";
|
|
5
|
+
import { d as p, r as u, o as _, a as D, c as m, b as r, e as g, C as S, u as y, p as f, f as T, _ as v, h as C } from "./main-971bd0f8.mjs";
|
|
6
6
|
const I = (t) => (f("data-v-82a75009"), t = t(), T(), t), P = { class: "mask" }, A = { class: "wrapper" }, V = { class: "container" }, E = /* @__PURE__ */ I(() => /* @__PURE__ */ r("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), $ = ["action"], k = ["value"], x = /* @__PURE__ */ p({
|
|
7
7
|
__name: "ecentric",
|
|
8
8
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
class i extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "EPNA";
|
package/dist/sdk/{FlashBancThreeDsProvider-b99fd0a8.mjs → FlashBancThreeDsProvider-ce906d1c.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
class s extends r {
|
|
5
5
|
getType() {
|
|
6
6
|
return "FlashBanc";
|
package/dist/sdk/{GPaymentsThreeDsProvider-5cf80737.mjs → GPaymentsThreeDsProvider-ec0b158b.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var i = Object.defineProperty;
|
|
2
2
|
var l = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var o = (n, r, e) => (l(n, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
|
-
import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d as u, a as d, c as p, b as a, n as h, _, h as g } from "./main-
|
|
4
|
+
import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-21af0478.mjs";
|
|
5
|
+
import { d as u, a as d, c as p, b as a, n as h, _, h as g } from "./main-971bd0f8.mjs";
|
|
6
6
|
const m = { class: "mask" }, D = { class: "wrapper" }, S = ["src"], y = /* @__PURE__ */ u({
|
|
7
7
|
__name: "GPayments",
|
|
8
8
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var l = (o, n, t) => (
|
|
4
|
-
import { DefaultThreeDsProvider as P } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d as f, r as v, o as E, i as A, w as b, v as T, a as I, c as x, b as p, e as G, C as L, p as N, f as M, _ as $, j as
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var w = (o, n, t) => n in o ? S(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
|
|
3
|
+
var l = (o, n, t) => (w(o, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
+
import { DefaultThreeDsProvider as P } from "./DefaultThreeDsProvider-21af0478.mjs";
|
|
5
|
+
import { d as f, r as v, o as E, i as A, w as b, v as T, a as I, c as x, b as p, e as G, C as L, p as N, f as M, _ as $, j as H, s as g, h as k } from "./main-971bd0f8.mjs";
|
|
6
6
|
const O = (o) => (N("data-v-8a0b6dcb"), o = o(), M(), o), j = { class: "mask" }, B = { class: "wrapper" }, F = { class: "container" }, U = /* @__PURE__ */ O(() => /* @__PURE__ */ p("div", { id: "ThreeDsChallengeIFrame" }, null, -1)), W = /* @__PURE__ */ f({
|
|
7
7
|
__name: "MetricsGlobalThreeDsChallenge",
|
|
8
8
|
emits: ["close", "submit"],
|
|
@@ -31,8 +31,8 @@ const O = (o) => (N("data-v-8a0b6dcb"), o = o(), M(), o), j = { class: "mask" },
|
|
|
31
31
|
]);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
const V = /* @__PURE__ */ $(W, [["__scopeId", "data-v-8a0b6dcb"]]), m = 5;
|
|
35
|
-
class
|
|
34
|
+
const V = /* @__PURE__ */ $(W, [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: c, showSpinner: K } = H(), m = 5;
|
|
35
|
+
class J extends P {
|
|
36
36
|
constructor(t, e, s) {
|
|
37
37
|
var r;
|
|
38
38
|
super(t, e, s);
|
|
@@ -76,7 +76,7 @@ class z extends P {
|
|
|
76
76
|
c(), g(this.container, "Payment information is missing");
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
K();
|
|
80
80
|
const e = (y = this.threeDsProcessor) == null ? void 0 : y.getAddressInfo(), s = t.expiryDate.length === 4 ? t.expiryDate[2] + t.expiryDate[3] : "", r = t.expiryDate.length === 4 ? t.expiryDate[0] + t.expiryDate[1] : "", u = {
|
|
81
81
|
cardNumber: t.cardNumber,
|
|
82
82
|
cardExpMonth: s,
|
|
@@ -149,5 +149,5 @@ class z extends P {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
export {
|
|
152
|
-
|
|
152
|
+
J as MetricsGlobalThreeDsProvider
|
|
153
153
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
class m extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "NMI";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
|
-
var p = (n, r,
|
|
3
|
-
var
|
|
4
|
-
import { d as m,
|
|
5
|
-
import { DefaultThreeDsProvider as
|
|
6
|
-
const
|
|
2
|
+
var p = (n, r, t) => r in n ? d(n, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[r] = t;
|
|
3
|
+
var l = (n, r, t) => (p(n, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
|
+
import { d as m, j as u, o as g, a as D, c as S, p as _, f, b as h, _ as y, s as P, h as T } from "./main-971bd0f8.mjs";
|
|
5
|
+
import { DefaultThreeDsProvider as I, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as C } from "./DefaultThreeDsProvider-21af0478.mjs";
|
|
6
|
+
const b = (n) => (_("data-v-3b52be97"), n = n(), f(), n), v = { class: "mask" }, E = /* @__PURE__ */ b(() => /* @__PURE__ */ h("div", { class: "wrapper" }, [
|
|
7
7
|
/* @__PURE__ */ h("div", { class: "container" })
|
|
8
|
-
], -1)),
|
|
9
|
-
|
|
10
|
-
],
|
|
8
|
+
], -1)), x = [
|
|
9
|
+
E
|
|
10
|
+
], V = /* @__PURE__ */ m({
|
|
11
11
|
__name: "nuvei",
|
|
12
12
|
props: {
|
|
13
13
|
threeDSServerTransID: null,
|
|
@@ -26,19 +26,19 @@ const A = (n) => (f("data-v-e3afa988"), n = n(), y(), n), V = { class: "mask" },
|
|
|
26
26
|
country: null
|
|
27
27
|
},
|
|
28
28
|
setup(n) {
|
|
29
|
-
const r = n;
|
|
29
|
+
const r = n, { hideSpinner: t, showSpinner: a } = u();
|
|
30
30
|
g(() => {
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
document.getElementsByClassName("sfcModal-dialog")[0] && (
|
|
36
|
-
}),
|
|
37
|
-
|
|
38
|
-
}, document.head.appendChild(
|
|
31
|
+
a();
|
|
32
|
+
const s = document.createElement("script");
|
|
33
|
+
s.type = "text/javascript", s.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", s.onload = () => {
|
|
34
|
+
const o = new MutationObserver(function() {
|
|
35
|
+
document.getElementsByClassName("sfcModal-dialog")[0] && (t(), o.disconnect());
|
|
36
|
+
}), i = { childList: !0 }, c = document.querySelector("body");
|
|
37
|
+
o.observe(c, i), e();
|
|
38
|
+
}, document.head.appendChild(s);
|
|
39
39
|
});
|
|
40
|
-
function
|
|
41
|
-
var
|
|
40
|
+
function e() {
|
|
41
|
+
var s = SafeCharge({
|
|
42
42
|
env: r.env,
|
|
43
43
|
// Nuvei API environment - 'int' (integration) or 'prod' (production - default if omitted)
|
|
44
44
|
merchantId: r.merchantId,
|
|
@@ -46,7 +46,7 @@ const A = (n) => (f("data-v-e3afa988"), n = n(), y(), n), V = { class: "mask" },
|
|
|
46
46
|
merchantSiteId: r.merchantSiteId
|
|
47
47
|
// your Merchant Site ID provided by Nuvei
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
s.fields({
|
|
50
50
|
fonts: [
|
|
51
51
|
{
|
|
52
52
|
cssUrl: "https://fonts.googleapis.com/css?family=Source+Code+Pro"
|
|
@@ -55,7 +55,7 @@ const A = (n) => (f("data-v-e3afa988"), n = n(), y(), n), V = { class: "mask" },
|
|
|
55
55
|
],
|
|
56
56
|
locale: "en"
|
|
57
57
|
// You can set your users preferred locale. If not provided, we try to auto-detect.
|
|
58
|
-
}),
|
|
58
|
+
}), s.authenticate3d({
|
|
59
59
|
sessionToken: r.sessionToken,
|
|
60
60
|
// received from openOrder API
|
|
61
61
|
paymentOption: {
|
|
@@ -73,34 +73,34 @@ const A = (n) => (f("data-v-e3afa988"), n = n(), y(), n), V = { class: "mask" },
|
|
|
73
73
|
email: r.email,
|
|
74
74
|
country: r.country
|
|
75
75
|
}
|
|
76
|
-
}, function(
|
|
77
|
-
window.postMessage({ status: "3ds_challenge_complete", cres:
|
|
76
|
+
}, function(o) {
|
|
77
|
+
window.postMessage({ status: "3ds_challenge_complete", cres: o }, "*");
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
return (
|
|
80
|
+
return (s, o) => (D(), S("div", v, x));
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
const
|
|
84
|
-
class
|
|
83
|
+
const A = /* @__PURE__ */ y(V, [["__scopeId", "data-v-3b52be97"]]), { hideSpinner: R } = u();
|
|
84
|
+
class O extends I {
|
|
85
85
|
constructor() {
|
|
86
86
|
super(...arguments);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var
|
|
90
|
-
this.closeChallenge(),
|
|
87
|
+
l(this, "_paResPayload", null);
|
|
88
|
+
l(this, "onSuccess", (t, a) => {
|
|
89
|
+
var s, o;
|
|
90
|
+
this.closeChallenge(), R();
|
|
91
91
|
const e = JSON.parse(a);
|
|
92
|
-
e.authenticationValue ? (
|
|
92
|
+
e.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(e) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, e), (o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" }));
|
|
93
93
|
});
|
|
94
|
-
|
|
95
|
-
var
|
|
94
|
+
l(this, "onDoAuthSuccess", (t, a) => {
|
|
95
|
+
var s, o, i;
|
|
96
96
|
const e = JSON.parse(a);
|
|
97
97
|
if (this.log(`[${this.getType()}][onDoAuthSuccess]`, e), !e.transStatus || !e.authenticationValue) {
|
|
98
|
-
this.onError(
|
|
98
|
+
this.onError(t, "No transStatus specified");
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
101
|
switch (e.transStatus) {
|
|
102
102
|
case "C":
|
|
103
|
-
this.doNuveiChallenge(e.authenticationValue, (
|
|
103
|
+
this.doNuveiChallenge(e.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (o = this.threeDsProcessor) == null ? void 0 : o.getPaymentInfo());
|
|
104
104
|
break;
|
|
105
105
|
default:
|
|
106
106
|
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + e.transStatus), (i = this.threeDsProcessor) == null || i.onSuccess({
|
|
@@ -129,17 +129,17 @@ class w extends C {
|
|
|
129
129
|
return "Nuvei";
|
|
130
130
|
}
|
|
131
131
|
onPreAuth() {
|
|
132
|
-
var
|
|
133
|
-
this.log(`[${this.getType()}]: onPreAuth`), (
|
|
134
|
-
var
|
|
135
|
-
(
|
|
132
|
+
var t, a;
|
|
133
|
+
this.log(`[${this.getType()}]: onPreAuth`), (t = this.threeDsProcessor) != null && t.getTokenId() ? (a = this.threeDsProcessor) == null || a.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (e) => {
|
|
134
|
+
var s;
|
|
135
|
+
(s = this.threeDsProcessor) == null || s.setPaymentInfo(e), super.onPreAuth();
|
|
136
136
|
}, () => {
|
|
137
137
|
P(this.container, "Unable to get card information");
|
|
138
138
|
}) : super.onPreAuth();
|
|
139
139
|
}
|
|
140
140
|
onPostAuth() {
|
|
141
|
-
var
|
|
142
|
-
this.log(`[${this.getType()}][onAuth] Do Post Authentication for transId`, this.threeDSServerTransID, this._paResPayload), (
|
|
141
|
+
var t;
|
|
142
|
+
this.log(`[${this.getType()}][onAuth] Do Post Authentication for transId`, this.threeDSServerTransID, this._paResPayload), (t = this.threeDsProcessor) == null || t.onPostAuth({
|
|
143
143
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
144
144
|
authenticationValue: this._paResPayload.cavv,
|
|
145
145
|
eci: this._paResPayload.eci,
|
|
@@ -148,35 +148,35 @@ class w extends C {
|
|
|
148
148
|
xid: this._paResPayload.xid
|
|
149
149
|
}, this.onSuccess, this.onError);
|
|
150
150
|
}
|
|
151
|
-
doNuveiChallenge(
|
|
151
|
+
doNuveiChallenge(t, a, e) {
|
|
152
152
|
var i;
|
|
153
|
-
const
|
|
154
|
-
(
|
|
155
|
-
const { destroy: o } =
|
|
153
|
+
const s = JSON.parse(t);
|
|
154
|
+
(s === null || !s.merchantId || !s.merchantSiteId) && ((i = this.threeDsProcessor) == null || i.onError({ error: "3D Secure failed" })), a && (s.firstName = a.firstName, s.lastName = a.lastName, s.email = a.email, s.country = a.country), e && (s.cardNumber = e.cardNumber, s.cardHolderName = e.cardholder, s.expirationMonth = e.expiryDate.substring(2, 4), s.expirationYear = e.expiryDate.substring(0, 2), s.CVV = e.ccv);
|
|
155
|
+
const { destroy: o } = T({
|
|
156
156
|
el: document.body,
|
|
157
|
-
component:
|
|
158
|
-
props:
|
|
157
|
+
component: A,
|
|
158
|
+
props: s,
|
|
159
159
|
on: {
|
|
160
160
|
close: () => {
|
|
161
|
-
var
|
|
161
|
+
var c;
|
|
162
162
|
o(), this.threeDSDestroy = () => {
|
|
163
|
-
}, (
|
|
163
|
+
}, (c = this.threeDsProcessor) == null || c.onError({ error: "Challenge cancelled" });
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
this.threeDSDestroy = o;
|
|
168
168
|
}
|
|
169
|
-
messageHandler(
|
|
170
|
-
var a, e,
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`),
|
|
169
|
+
messageHandler(t) {
|
|
170
|
+
var a, e, s;
|
|
171
|
+
if ((a = t == null ? void 0 : t.data) != null && a.status) {
|
|
172
|
+
if (t.data.status === N) {
|
|
173
|
+
this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), t.stopPropagation(), this.onAuth(!0, "");
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
t.data.status === C && (this.log(`[${this.getType()}][messageHandler] 3Ds Challenge complete`, t.data), t.stopPropagation(), this.closeChallenge(), t.data.cres && ((e = t.data.cres) == null ? void 0 : e.result) === "APPROVED" && ((s = t.data.cres) == null ? void 0 : s.errCode) === "0" ? (this._paResPayload = t.data.cres, this.onPostAuth()) : (this.log(`[${this.getType()}][messageHandler] Failed 3DS Challenge`, t.data), this.onError(400, "Failed 3DS Challenge")));
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
export {
|
|
181
|
-
|
|
181
|
+
O as NuveiThreeDsProvider
|
|
182
182
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
2
|
var p = (r, t, o) => t in r ? l(r, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[t] = o;
|
|
3
3
|
var n = (r, t, o) => (p(r, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
-
import { R as d, g as y, H as m } from "./main-
|
|
4
|
+
import { R as d, g as y, H as m } from "./main-971bd0f8.mjs";
|
|
5
5
|
const h = {
|
|
6
6
|
CHECKOUT: "CHECKOUT",
|
|
7
7
|
CHARGE: "CHARGE"
|
package/dist/sdk/{PayabliThreeDsProvider-a7d94b89.mjs → PayabliThreeDsProvider-a3613a23.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
class i extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "Payabli";
|
package/dist/sdk/{SkyBankThreeDsProvider-20cd542d.mjs → SkyBankThreeDsProvider-c11480b4.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
class s extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "SkyBank";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CxPayThreeDsProvider as e } from "./CxPayThreeDsProvider-2657e7f5.mjs";
|
|
2
|
+
import "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
3
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
4
|
+
import "./main-971bd0f8.mjs";
|
|
5
|
+
function n(r, o, t) {
|
|
6
|
+
return new e(r, o, t);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
n as default
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-
|
|
2
|
-
import "./main-
|
|
1
|
+
import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-21af0478.mjs";
|
|
2
|
+
import "./main-971bd0f8.mjs";
|
|
3
3
|
function a(e, r, t) {
|
|
4
4
|
return new o(e, r, t);
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-3dc8f90c.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
function m(r, e, t) {
|
|
5
5
|
return new i(r, e, t);
|
|
6
6
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EpnaThreeDsProvider as t } from "./EpnaThreeDsProvider-2e8a06d7.mjs";
|
|
2
|
+
import "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
3
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
4
|
+
import "./main-971bd0f8.mjs";
|
|
5
|
+
function a(r, e, o) {
|
|
6
|
+
return new t(r, e, o);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
a as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FlashBancThreeDsProvider as e } from "./FlashBancThreeDsProvider-ce906d1c.mjs";
|
|
2
|
+
import "./MetricsGlobalThreeDsProvider-8e95c440.mjs";
|
|
3
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
4
|
+
import "./main-971bd0f8.mjs";
|
|
5
|
+
function p(r, o, t) {
|
|
6
|
+
return new e(r, o, t);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
p as default
|
|
10
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GPaymentsThreeDsProvider as o } from "./GPaymentsThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { GPaymentsThreeDsProvider as o } from "./GPaymentsThreeDsProvider-ec0b158b.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-21af0478.mjs";
|
|
3
|
+
import "./main-971bd0f8.mjs";
|
|
4
4
|
function p(r, e, t) {
|
|
5
5
|
return new o(r, e, t);
|
|
6
6
|
}
|