@payfurl/client 4.2.2 → 4.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/sdk/{default-f76b9795.mjs → default-d0f468eb.mjs} +1 -1
- package/dist/sdk/{ecentric-eb09b5e1.mjs → ecentric-6d9a29ac.mjs} +9 -13
- package/dist/sdk/{gpayments-10ce59bc.mjs → gpayments-6fd112eb.mjs} +1 -1
- package/dist/sdk/{main-5bf95a96.mjs → main-02ee9775.mjs} +156 -156
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +5 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as v, r as A, o as C, a as y, c as R, b as c, e as b, C as U, u as w, p as k, f as N, _ as E, F as L, g as V } from "./main-
|
|
1
|
+
import { d as v, r as A, o as C, a as y, c as R, b as c, e as b, C as U, u as w, p as k, f as N, _ as E, F as L, g as V } from "./main-02ee9775.mjs";
|
|
2
2
|
const M = (t) => (k("data-v-fa2e3c62"), t = t(), N(), t), q = { class: "mask" }, x = { class: "wrapper" }, O = { class: "container" }, F = /* @__PURE__ */ M(() => /* @__PURE__ */ c("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), J = ["action"], B = ["value"], $ = /* @__PURE__ */ v({
|
|
3
3
|
__name: "ThreeDsChallenge",
|
|
4
4
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as A, r as v, o as C, a as R, c as y, b as c, e as
|
|
2
|
-
const M = (t) => (V("data-v-a55c9c23"), t = t(), w(), t), x = { class: "mask" }, F = { class: "wrapper" },
|
|
1
|
+
import { d as A, r as v, o as C, a as R, c as y, b as c, e as b, C as U, u as k, p as V, f as w, _ as E, F as L, g as N } from "./main-02ee9775.mjs";
|
|
2
|
+
const M = (t) => (V("data-v-a55c9c23"), t = t(), w(), t), x = { class: "mask" }, F = { class: "wrapper" }, q = { class: "container" }, O = /* @__PURE__ */ M(() => /* @__PURE__ */ c("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), J = ["action"], B = ["value"], j = /* @__PURE__ */ A({
|
|
3
3
|
__name: "ecentric",
|
|
4
4
|
props: {
|
|
5
5
|
threeDSServerTransID: null,
|
|
@@ -15,11 +15,11 @@ const M = (t) => (V("data-v-a55c9c23"), t = t(), w(), t), x = { class: "mask" },
|
|
|
15
15
|
(d = s.value) == null || d.submit();
|
|
16
16
|
}), (d, m) => (R(), y("div", x, [
|
|
17
17
|
c("div", F, [
|
|
18
|
-
c("div",
|
|
19
|
-
U
|
|
18
|
+
c("div", q, [
|
|
19
|
+
b(U, {
|
|
20
20
|
onClick: m[0] || (m[0] = (Z) => n("close"))
|
|
21
21
|
}),
|
|
22
|
-
|
|
22
|
+
O,
|
|
23
23
|
c("form", {
|
|
24
24
|
action: e.formAction,
|
|
25
25
|
target: "ThreeDsChallengeIFrame",
|
|
@@ -38,7 +38,7 @@ const M = (t) => (V("data-v-a55c9c23"), t = t(), w(), t), x = { class: "mask" },
|
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
const $ = /* @__PURE__ */
|
|
41
|
+
const $ = /* @__PURE__ */ E(j, [["__scopeId", "data-v-a55c9c23"]]);
|
|
42
42
|
let h = null, D, H = null, a = null, _ = "", i = "", g = "", Y, u = null, S = "";
|
|
43
43
|
function o(t, ...n) {
|
|
44
44
|
h && h(t, n);
|
|
@@ -53,7 +53,7 @@ function I() {
|
|
|
53
53
|
o("Do Post Authentication for transId", i, S), a == null || a.onPostAuth({ threeDSServerTransID: i, authenticationValue: S }, K, r);
|
|
54
54
|
}
|
|
55
55
|
function G(t, n, e) {
|
|
56
|
-
const { destroy: s } =
|
|
56
|
+
const { destroy: s } = N({
|
|
57
57
|
el: document.body,
|
|
58
58
|
component: $,
|
|
59
59
|
props: {
|
|
@@ -137,7 +137,7 @@ function X(t, n) {
|
|
|
137
137
|
threeDSServerTransID: t,
|
|
138
138
|
threeDSMethodNotificationURL: D + "/3ds/method_invocation"
|
|
139
139
|
}, s = encodeURI(window.btoa(JSON.stringify(e)).replace(/=*$/, ""));
|
|
140
|
-
new
|
|
140
|
+
new L().invoke(n, "POST", {
|
|
141
141
|
threeDSMethodData: s
|
|
142
142
|
});
|
|
143
143
|
}
|
|
@@ -148,11 +148,7 @@ function T(t) {
|
|
|
148
148
|
o("3Ds Method invocation complete"), t.stopPropagation(), f(!0);
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
o("3Ds Challenge complete", t.data), t.stopPropagation(), p();
|
|
153
|
-
const s = JSON.parse(window.atob(t.data.cres));
|
|
154
|
-
o("cresData", s), s.termUrl ? (S = s.termUrl, I()) : (o("Failed 3DS Challenge", t.data), r(400, "Failed 3DS Challenge"));
|
|
155
|
-
}
|
|
151
|
+
t.data.status === "3ds_challenge_complete" && (o("3Ds Challenge complete", t.data), t.stopPropagation(), p(), o("cresData", t.data.cres), t.data.cres ? (S = t.data.cres, I()) : (o("Failed 3DS Challenge", t.data), r(400, "Failed 3DS Challenge")));
|
|
156
152
|
}
|
|
157
153
|
}
|
|
158
154
|
function ee(t, n, e, s) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as v, a as I, c as R, b as f, _ as g, g as y, H as D } from "./main-
|
|
1
|
+
import { d as v, a as I, c as R, b as f, _ as g, g as y, H as D } from "./main-02ee9775.mjs";
|
|
2
2
|
import { getEmptySuccessThreeDsPostAuthResponse as U } from "./ThreeDsPostAuthResponse.type-3091950f.mjs";
|
|
3
3
|
const T = { class: "mask" }, k = { class: "wrapper" }, L = { class: "container" }, N = ["src"], b = /* @__PURE__ */ v({
|
|
4
4
|
__name: "GPayments",
|