@payfurl/client 4.8.7 → 4.9.2
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/{CloseIcon-_3X2kvPG.js → CloseIcon-CTY2bpwF.js} +1237 -1177
- package/dist/sdk/{DefaultThreeDsProvider-JPe2W_JG.js → DefaultThreeDsProvider-ChnRLzKI.js} +54 -57
- package/dist/sdk/{MetricsGlobalThreeDsProvider-BMeP5IWW.js → MetricsGlobalThreeDsProvider-DW-gsG6q.js} +50 -35
- package/dist/sdk/{PayWayAppleButton-DVoTz5Nn.js → PayWayAppleButton-7Gi89Gij.js} +2 -2
- package/dist/sdk/{alerts-D474JL4D.js → alerts-DKbyC20w.js} +9 -9
- package/dist/sdk/{CxPayThreeDsProvider-DAAmw4ya.js → cxpay-CGIndAf1.js} +7 -2
- package/dist/sdk/{default-B8ZcE4ja.js → default-CgpOZU3K.js} +1 -1
- package/dist/sdk/{EcentricThreeDsProvider-Ddy0Fn5h.js → ecentric-F3nn_MwX.js} +23 -18
- package/dist/sdk/{EpnaThreeDsProvider-Ng4Pmq0D.js → epna-uXpYJKOA.js} +7 -2
- package/dist/sdk/favicon.ico +0 -0
- package/dist/sdk/{FlashBancThreeDsProvider-DFZG4u44.js → flashbanc-9XKA8Wrl.js} +7 -2
- package/dist/sdk/forter-Bm2GJ2Hs.js +59 -0
- package/dist/sdk/{GPaymentsThreeDsProvider-BIku3bZP.js → gpayments-DsXj9xbu.js} +26 -23
- package/dist/sdk/{metrics_global--mOHedmQ.js → metrics_global-L-Rm7bcl.js} +1 -1
- package/dist/sdk/nmi-BzHX8wqW.js +17 -0
- package/dist/sdk/{NuveiThreeDsProvider-DMO_bgOI.js → nuvei-CS-nW8SB.js} +55 -52
- package/dist/sdk/{PayabliThreeDsProvider-BWStZH6E.js → payabli-C4YuB7Sr.js} +7 -2
- package/dist/sdk/payfurl.es.js +1576 -1528
- package/dist/sdk/payfurl.umd.js +8 -7
- package/dist/sdk/{PayGLocalThreeDsProvider-DDqJz4iC.js → payglocal-Cy6Qd8ve.js} +36 -30
- package/dist/sdk/{payway_rest-CIjvQwcK.js → payway_rest-ZMjPv2si.js} +1 -1
- package/dist/sdk/screen-D7xBu0cj.js +24 -0
- package/dist/sdk/{SkyBankThreeDsProvider-U6pzbMJY.js → skybank-C6ZmVyX6.js} +7 -2
- package/dist/sdk/{strings-JNmtxeev.js → strings-A3mXSUch.js} +12 -12
- package/dist/sdk/style.css +1 -1
- package/package.json +1 -1
- package/dist/sdk/NmiThreeDsProvider-CzRH7vrp.js +0 -12
- package/dist/sdk/ThreeDsAuthResponse.type-BvRk9kiK.js +0 -0
- package/dist/sdk/ThreeDsInitResponse.type-BvRk9kiK.js +0 -0
- package/dist/sdk/ThreeDsPostAuthResponse.type-BFN9wqum.js +0 -26
- package/dist/sdk/ThreeDsProvider.interface-BvRk9kiK.js +0 -0
- package/dist/sdk/cxpay-BnpH4Q1F.js +0 -7
- package/dist/sdk/ecentric-DwR-gEaW.js +0 -7
- package/dist/sdk/epna-BtQr8Mlq.js +0 -7
- package/dist/sdk/flashbanc-BNEJGUff.js +0 -7
- package/dist/sdk/forter-D0-GGAlC.js +0 -41
- package/dist/sdk/fraudCheck.type-BvRk9kiK.js +0 -0
- package/dist/sdk/fraudProvider.type-Bzd9orn2.js +0 -7
- package/dist/sdk/fraudStatus.type-BvRk9kiK.js +0 -0
- package/dist/sdk/gpayments-QZCq0_0y.js +0 -7
- package/dist/sdk/nmi-BtKpUtad.js +0 -7
- package/dist/sdk/nuvei-BOfZN_Em.js +0 -7
- package/dist/sdk/payabli-BfZ7IhDq.js +0 -7
- package/dist/sdk/payglocal-CpEbJSpn.js +0 -7
- package/dist/sdk/skybank-DWPrfoAb.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, Et as t, It as n, Lt as r, O as i, Ot as a, Tt as o, Z as s, _t as c, ct as l, dt as u, h as d, n as f, t as p, vt as m, wt as h, xt as g } from "./CloseIcon-CTY2bpwF.js";
|
|
2
2
|
//#region src/sdk/3ds/ThreeDsChallenge.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
3
|
+
var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" }, b = ["action"], x = ["value"], S = /*#__PURE__*/ s(/* @__PURE__ */ o({
|
|
4
4
|
__name: "ThreeDsChallenge",
|
|
5
5
|
props: {
|
|
6
6
|
threeDSServerTransID: {},
|
|
@@ -8,36 +8,36 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
8
8
|
formAction: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["close", "submit"],
|
|
11
|
-
setup(
|
|
12
|
-
let
|
|
13
|
-
threeDSServerTransID:
|
|
14
|
-
acsTransID:
|
|
11
|
+
setup(e, { emit: i }) {
|
|
12
|
+
let o = e, s = i, u = c(() => l(o.formAction) ? o.formAction : ""), d = n(null), f = JSON.stringify({
|
|
13
|
+
threeDSServerTransID: o.threeDSServerTransID,
|
|
14
|
+
acsTransID: o.acsTransID,
|
|
15
15
|
messageVersion: "2.2.0",
|
|
16
16
|
messageType: "CReq",
|
|
17
17
|
challengeWindowSize: "01"
|
|
18
|
-
}), S = encodeURI(window.btoa(
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
}), (e,
|
|
22
|
-
|
|
23
|
-
onClick:
|
|
18
|
+
}), S = encodeURI(window.btoa(f).replace(/=*$/, ""));
|
|
19
|
+
return t(() => {
|
|
20
|
+
u.value && d.value?.submit();
|
|
21
|
+
}), (e, t) => (a(), g("div", _, [m("div", v, [m("div", y, [
|
|
22
|
+
h(p, {
|
|
23
|
+
onClick: t[0] ||= (e) => s("close"),
|
|
24
24
|
id: "3ds-challenge-close"
|
|
25
25
|
}),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
action:
|
|
26
|
+
t[1] ||= m("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1),
|
|
27
|
+
m("form", {
|
|
28
|
+
action: u.value,
|
|
29
29
|
target: "ThreeDsChallengeIFrame",
|
|
30
30
|
method: "post",
|
|
31
31
|
ref_key: "form",
|
|
32
|
-
ref:
|
|
33
|
-
}, [
|
|
32
|
+
ref: d
|
|
33
|
+
}, [m("input", {
|
|
34
34
|
type: "hidden",
|
|
35
35
|
name: "creq",
|
|
36
|
-
value:
|
|
37
|
-
}, null, 8,
|
|
36
|
+
value: r(S)
|
|
37
|
+
}, null, 8, x)], 8, b)
|
|
38
38
|
])])]));
|
|
39
39
|
}
|
|
40
|
-
}), [["__scopeId", "data-v-07081e85"]]),
|
|
40
|
+
}), [["__scopeId", "data-v-07081e85"]]), C = class {
|
|
41
41
|
iframeId = "threeDsIframeMethod";
|
|
42
42
|
containerId = "payfurlContainerFormInvoker";
|
|
43
43
|
iframe = null;
|
|
@@ -55,11 +55,7 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
55
55
|
}
|
|
56
56
|
a.submit();
|
|
57
57
|
}
|
|
58
|
-
},
|
|
59
|
-
DefaultThreeDsProvider: () => D,
|
|
60
|
-
THREE_DS_CHALLENGE_COMPLETE: () => E,
|
|
61
|
-
THREE_DS_METHOD_INVOCATION_COMPLETE: () => T
|
|
62
|
-
}), { hideSpinner: C, showSpinner: w } = c(), T = "3ds_method_invocation_complete", E = "3ds_challenge_complete", D = class {
|
|
58
|
+
}, { hideSpinner: w, showSpinner: T } = f(), E = "3ds_method_invocation_complete", D = "3ds_challenge_complete", O = class {
|
|
63
59
|
log;
|
|
64
60
|
container;
|
|
65
61
|
options;
|
|
@@ -80,7 +76,7 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
80
76
|
return "";
|
|
81
77
|
}
|
|
82
78
|
onPreAuth() {
|
|
83
|
-
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (
|
|
79
|
+
this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (T(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
|
|
84
80
|
}
|
|
85
81
|
onAuth(e, t) {
|
|
86
82
|
this.log(`[${this.getType()}][onAuth]`, {
|
|
@@ -97,7 +93,7 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
97
93
|
this.log(`[${this.getType()}][setThreeDsProcessor]`), this.threeDsProcessor = e;
|
|
98
94
|
}
|
|
99
95
|
messageHandler(e) {
|
|
100
|
-
if (
|
|
96
|
+
if (e?.data?.status && e?.data?.status !== "tokenise-card-failure") {
|
|
101
97
|
if (e.data.status === "3ds_method_invocation_complete") {
|
|
102
98
|
e.stopPropagation(), this.invocationComplete(e);
|
|
103
99
|
return;
|
|
@@ -117,11 +113,14 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
117
113
|
"R"
|
|
118
114
|
].includes(t.transStatus) && (this.log(`[${this.getType()}]: Failed 3DS Challenge`, e.data), this.onError(400, "Failed 3DS Challenge"));
|
|
119
115
|
}
|
|
116
|
+
setChallengeFrameVisible(t) {
|
|
117
|
+
window.self !== window.top && window.parent.postMessage({ status: t ? e : i }, "*");
|
|
118
|
+
}
|
|
120
119
|
doChallenge(e, t, n) {
|
|
121
|
-
this.log(`[${this.getType()}][doChallenge]`),
|
|
122
|
-
let { destroy: r } =
|
|
120
|
+
this.log(`[${this.getType()}][doChallenge]`), w(), this.setChallengeFrameVisible(!0);
|
|
121
|
+
let { destroy: r } = u({
|
|
123
122
|
el: document.body,
|
|
124
|
-
component:
|
|
123
|
+
component: S,
|
|
125
124
|
props: {
|
|
126
125
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
127
126
|
acsTransID: t,
|
|
@@ -135,22 +134,22 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
135
134
|
this.threeDSDestroy = r;
|
|
136
135
|
}
|
|
137
136
|
closeChallenge() {
|
|
138
|
-
this.threeDSDestroy?.(), window.removeEventListener("message", this.internalMessageHandler);
|
|
137
|
+
this.threeDSDestroy?.(), this.setChallengeFrameVisible(!1), window.removeEventListener("message", this.internalMessageHandler);
|
|
139
138
|
}
|
|
140
139
|
onError = (e, t) => {
|
|
141
|
-
if (this.closeChallenge(),
|
|
140
|
+
if (this.closeChallenge(), w(), e === 404) {
|
|
142
141
|
this.threeDsProcessor?.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
|
|
143
142
|
return;
|
|
144
143
|
}
|
|
145
144
|
this.threeDsProcessor?.onError({
|
|
146
|
-
error:
|
|
145
|
+
error: d,
|
|
147
146
|
body: t
|
|
148
147
|
});
|
|
149
148
|
};
|
|
150
149
|
onSuccess = (e, t) => {
|
|
151
|
-
this.closeChallenge(),
|
|
150
|
+
this.closeChallenge(), w();
|
|
152
151
|
let n = JSON.parse(t);
|
|
153
|
-
["Y", "A"].includes(n.transStatus) ? this.threeDsProcessor?.onSuccess(n) : (this.log(`[${this.getType()}]:
|
|
152
|
+
["Y", "A"].includes(n.transStatus) ? this.threeDsProcessor?.onSuccess(n) : (this.log(`[${this.getType()}]: ${d}`, n), this.threeDsProcessor?.onError({ error: d }));
|
|
154
153
|
};
|
|
155
154
|
threeDsMethodInvoke(e, t) {
|
|
156
155
|
this.log(`[${this.getType()}][threeDsMethodInvoke]`, {
|
|
@@ -161,7 +160,7 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
161
160
|
threeDSServerTransID: e,
|
|
162
161
|
threeDSMethodNotificationURL: this.options.apiUrl + "/3ds/method_invocation"
|
|
163
162
|
}, r = encodeURI(window.btoa(JSON.stringify(n)).replace(/=*$/, ""));
|
|
164
|
-
new
|
|
163
|
+
new C().invoke(t, "POST", { threeDSMethodData: r });
|
|
165
164
|
}
|
|
166
165
|
onInitAuthSuccess = (e, t) => {
|
|
167
166
|
let n = JSON.parse(t);
|
|
@@ -194,28 +193,26 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
|
|
|
194
193
|
case "R":
|
|
195
194
|
this.log(`[${this.getType()}][threeDsAuth], Unable to perform 3DS verification, rejected at issuer`), this.onError(400, "Unable to perform 3DS verification, rejected at issuer");
|
|
196
195
|
break;
|
|
197
|
-
default:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
});
|
|
216
|
-
break;
|
|
196
|
+
default: this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${n.transStatus}`), this.threeDsProcessor?.onSuccess({
|
|
197
|
+
threeDSServerTransID: n.threeDSServerTransID,
|
|
198
|
+
threeDSRequestorTransID: "",
|
|
199
|
+
acsRenderingType: n.acsRenderingType,
|
|
200
|
+
acsTransID: n.acsTransID,
|
|
201
|
+
authenticationType: n.authenticationType,
|
|
202
|
+
authenticationValue: n.authenticationValue,
|
|
203
|
+
challengeCancel: "",
|
|
204
|
+
dsTransID: n.dsTransID,
|
|
205
|
+
eci: n.eci,
|
|
206
|
+
interactionCounter: "",
|
|
207
|
+
messageCategory: "",
|
|
208
|
+
messageExtension: n.messageExtension,
|
|
209
|
+
messageType: n.messageType,
|
|
210
|
+
messageVersion: n.messageVersion,
|
|
211
|
+
transStatus: n.transStatus,
|
|
212
|
+
transStatusReason: n.transStatusReason
|
|
213
|
+
});
|
|
217
214
|
}
|
|
218
215
|
};
|
|
219
216
|
};
|
|
220
217
|
//#endregion
|
|
221
|
-
export {
|
|
218
|
+
export { D as n, E as r, O as t };
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
1
|
+
import { Dt as e, Et as t, Ft as n, It as r, Ot as i, Tt as a, Z as o, dt as s, mt as c, n as l, t as u, vt as d, wt as f, xt as p } from "./CloseIcon-CTY2bpwF.js";
|
|
2
|
+
import { t as m } from "./screen-D7xBu0cj.js";
|
|
3
|
+
import { t as h } from "./alerts-DKbyC20w.js";
|
|
4
|
+
import { t as g } from "./DefaultThreeDsProvider-ChnRLzKI.js";
|
|
4
5
|
//#region src/sdk/3ds/MetricsGlobalThreeDsChallenge.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" }, b = /*#__PURE__*/
|
|
6
|
+
var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" }, b = /*#__PURE__*/ o(/* @__PURE__ */ a({
|
|
6
7
|
__name: "MetricsGlobalThreeDsChallenge",
|
|
7
8
|
emits: ["close", "submit"],
|
|
8
|
-
setup(
|
|
9
|
-
let
|
|
9
|
+
setup(a, { emit: o }) {
|
|
10
|
+
let s = o, l = r(!1);
|
|
10
11
|
function m(e) {
|
|
11
|
-
["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes(e.data?.message) && (
|
|
12
|
+
["3DS_CHALLENGE_SHOW", "3DS_CHALLENGE_CLOSE"].includes(e.data?.message) && (l.value = e.data.message === "3DS_CHALLENGE_SHOW");
|
|
12
13
|
}
|
|
13
|
-
return
|
|
14
|
+
return t(() => {
|
|
14
15
|
window.addEventListener("message", m);
|
|
15
16
|
}), e(() => {
|
|
16
17
|
window.removeEventListener("message", m);
|
|
17
|
-
}), (e, t) =>
|
|
18
|
-
onClick: t[0] ||= (e) =>
|
|
18
|
+
}), (e, t) => n((i(), p("div", _, [d("div", v, [d("div", y, [f(u, {
|
|
19
|
+
onClick: t[0] ||= (e) => s("close"),
|
|
19
20
|
id: "3ds-challenge-close"
|
|
20
|
-
}), t[1] ||=
|
|
21
|
+
}), t[1] ||= d("div", { id: "ThreeDsChallengeIFrame" }, null, -1)])])], 512)), [[c, l.value]]);
|
|
21
22
|
}
|
|
22
|
-
}), [["__scopeId", "data-v-8a0b6dcb"]]),
|
|
23
|
+
}), [["__scopeId", "data-v-8a0b6dcb"]]), { hideSpinner: x, showSpinner: S } = l(), C = 5, w = class extends g {
|
|
23
24
|
gateway;
|
|
24
25
|
threeDS;
|
|
25
26
|
numAttempts = 0;
|
|
@@ -33,11 +34,11 @@ var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" },
|
|
|
33
34
|
return "secure.metricsglobalgateway.com";
|
|
34
35
|
}
|
|
35
36
|
onPreAuth() {
|
|
36
|
-
if (this.log(`[${this.getType()}]: onPreAuth`), !this.threeDS && this.numAttempts >=
|
|
37
|
-
|
|
37
|
+
if (this.log(`[${this.getType()}]: onPreAuth`), !this.threeDS && this.numAttempts >= C) {
|
|
38
|
+
x(), h(this.container, "Error loading 3D Secure");
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
|
-
if (!this.threeDS && this.numAttempts <
|
|
41
|
+
if (!this.threeDS && this.numAttempts < C) {
|
|
41
42
|
this.numAttempts++, this.log(`[${this.getType()}]: 3DS not ready, retrying in 1s`), setTimeout(() => this.onPreAuth(), 1e3);
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
@@ -53,16 +54,21 @@ var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" },
|
|
|
53
54
|
this.log(`[${this.getType()}]: startAuth`);
|
|
54
55
|
let e = this.threeDsProcessor?.getPaymentInfo();
|
|
55
56
|
if (!e) {
|
|
56
|
-
|
|
57
|
+
x(), h(this.container, "Payment information is missing");
|
|
57
58
|
return;
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
let t = this.threeDsProcessor?.getAddressInfo(), n = e.expiryDate.length === 4 ? e.expiryDate
|
|
60
|
+
S();
|
|
61
|
+
let t = this.threeDsProcessor?.getAddressInfo(), n = e.expiryDate.length === 4 ? e.expiryDate.slice(2, 4) : "", r = e.expiryDate.length === 4 ? e.expiryDate.slice(0, 2) : "", [i = "", a = ""] = e.cardholder?.split(/\s+/) || [], o = this.threeDsProcessor?.getCurrency() || "", s = this.threeDsProcessor?.getAmount() || 0;
|
|
62
|
+
if (!n || !r) {
|
|
63
|
+
x(), h(this.container, "Card expiry date is invalid"), this.threeDsProcessor?.onError({ error: "Card expiry date is invalid" });
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
let c = {
|
|
61
67
|
cardNumber: e.cardNumber,
|
|
62
68
|
cardExpMonth: n,
|
|
63
|
-
cardExpYear: parseInt(r) + 2e3,
|
|
64
|
-
currency:
|
|
65
|
-
amount:
|
|
69
|
+
cardExpYear: String(parseInt(r, 10) + 2e3),
|
|
70
|
+
currency: o,
|
|
71
|
+
amount: s.toFixed(2),
|
|
66
72
|
email: this.threeDsProcessor?.getEmail(),
|
|
67
73
|
phone: t?.phoneNumber,
|
|
68
74
|
city: t?.city,
|
|
@@ -71,16 +77,25 @@ var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" },
|
|
|
71
77
|
country: t?.country,
|
|
72
78
|
firstName: t?.firstName || i || "payFURL",
|
|
73
79
|
lastName: t?.lastName || a || "payFURL",
|
|
74
|
-
postalCode: t?.postalCode
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
postalCode: t?.postalCode,
|
|
81
|
+
deviceChannel: "02",
|
|
82
|
+
browserJavascriptEnabled: !0,
|
|
83
|
+
browserJavaEnabled: !1,
|
|
84
|
+
browserLanguage: window.navigator.language,
|
|
85
|
+
browserColorDepth: String(m()),
|
|
86
|
+
browserScreenHeight: String(screen.height),
|
|
87
|
+
browserScreenWidth: String(screen.width),
|
|
88
|
+
browserTimeZone: String(Math.round((/* @__PURE__ */ new Date()).getTimezoneOffset() / 60)),
|
|
89
|
+
userAgent: navigator.userAgent
|
|
90
|
+
}, l = this.threeDS.createUI(c);
|
|
91
|
+
l.start("#ThreeDsChallengeIFrame"), l.on("challenge", (e) => {
|
|
92
|
+
this.log(`[${this.getType()}][onChallenge]`, e), x(), this.showChallenge();
|
|
93
|
+
}), l.on("complete", (e) => {
|
|
79
94
|
this.log(`[${this.getType()}][onComplete]`, e), this.removeChallenge(), this.threeDsProcessor?.onSuccess({ externalThreeDsData: e });
|
|
80
|
-
}),
|
|
81
|
-
this.log(`[${this.getType()}][onFailure]`, e),
|
|
82
|
-
}),
|
|
83
|
-
this.log(`[${this.getType()}][error]`, e),
|
|
95
|
+
}), l.on("failure", (e) => {
|
|
96
|
+
this.log(`[${this.getType()}][onFailure]`, e), x(), this.closeChallenge(), this.threeDsProcessor?.onError({ error: e.message });
|
|
97
|
+
}), l.on("error", (e) => {
|
|
98
|
+
this.log(`[${this.getType()}][error]`, e), x(), this.closeChallenge(), this.threeDsProcessor?.onError({ error: e.message });
|
|
84
99
|
});
|
|
85
100
|
}
|
|
86
101
|
initScript(e) {
|
|
@@ -91,11 +106,11 @@ var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" },
|
|
|
91
106
|
}
|
|
92
107
|
initGateway(e) {
|
|
93
108
|
this.gateway = window.Gateway.create(e), this.threeDS = this.gateway.get3DSecure(), this.gateway.on("error", (e) => {
|
|
94
|
-
this.log(`[${this.getType()}]: gateway error`, e), this.threeDsProcessor?.onError({ error: e.message }), this.threeDS = null, this.numAttempts =
|
|
109
|
+
this.log(`[${this.getType()}]: gateway error`, e), this.threeDsProcessor?.onError({ error: e.message }), this.threeDS = null, this.numAttempts = C;
|
|
95
110
|
});
|
|
96
111
|
}
|
|
97
112
|
initChallenge() {
|
|
98
|
-
let { destroy: e } =
|
|
113
|
+
let { destroy: e } = s({
|
|
99
114
|
el: document.body,
|
|
100
115
|
component: b,
|
|
101
116
|
on: { close: () => {
|
|
@@ -105,14 +120,14 @@ var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" },
|
|
|
105
120
|
this.threeDSDestroy = e;
|
|
106
121
|
}
|
|
107
122
|
showChallenge() {
|
|
108
|
-
window.postMessage({ message: "3DS_CHALLENGE_SHOW" }, "*");
|
|
123
|
+
this.setChallengeFrameVisible(!0), window.postMessage({ message: "3DS_CHALLENGE_SHOW" }, "*");
|
|
109
124
|
}
|
|
110
125
|
closeChallenge() {
|
|
111
|
-
window.postMessage({ message: "3DS_CHALLENGE_CLOSE" }, "*");
|
|
126
|
+
this.setChallengeFrameVisible(!1), window.postMessage({ message: "3DS_CHALLENGE_CLOSE" }, "*");
|
|
112
127
|
}
|
|
113
128
|
removeChallenge() {
|
|
114
129
|
this.threeDSDestroy?.();
|
|
115
130
|
}
|
|
116
131
|
};
|
|
117
132
|
//#endregion
|
|
118
|
-
export {
|
|
133
|
+
export { w as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e, r as t, s as n } from "./strings-
|
|
1
|
+
import { o as e, r as t, s as n } from "./strings-A3mXSUch.js";
|
|
2
2
|
//#region src/sdk/processors/applepay/PayWayAppleButton.ts
|
|
3
3
|
var r = {
|
|
4
4
|
CHECKOUT: "CHECKOUT",
|
|
@@ -42,7 +42,7 @@ var r = {
|
|
|
42
42
|
this.validator.style.display = "block";
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
this.validator.style.display = "none", this.validationError.style.display = "none";
|
|
45
|
+
this.validator.style.display = "none", this.validationError && (this.validationError.style.display = "none");
|
|
46
46
|
}
|
|
47
47
|
}, 1e3);
|
|
48
48
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as e, It as t, Ot as n, Tt as r, Z as i, bt as a, dt as o, gt as s, vt as c, xt as l } from "./CloseIcon-CTY2bpwF.js";
|
|
2
2
|
//#region src/sdk/components/Error.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var u = { class: "message" }, d = /*#__PURE__*/
|
|
3
|
+
var u = { class: "message" }, d = /*#__PURE__*/ i(/* @__PURE__ */ r({
|
|
4
4
|
__name: "Error",
|
|
5
5
|
props: { error: {} },
|
|
6
6
|
setup(r) {
|
|
7
7
|
let i = t(r.error);
|
|
8
|
-
return (t, r) => (
|
|
8
|
+
return (t, r) => (n(), l("div", u, e(i.value), 1));
|
|
9
9
|
}
|
|
10
|
-
}), [["__scopeId", "data-v-ae4be0f9"]]), f = { class: "message" }, p = { key: 0 }, m = /*#__PURE__*/
|
|
10
|
+
}), [["__scopeId", "data-v-ae4be0f9"]]), f = { class: "message" }, p = { key: 0 }, m = /*#__PURE__*/ i(/* @__PURE__ */ r({
|
|
11
11
|
__name: "Success",
|
|
12
12
|
props: {
|
|
13
13
|
message: {},
|
|
14
14
|
token: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["close"],
|
|
17
|
-
setup(t, { emit:
|
|
18
|
-
let
|
|
19
|
-
return (t,
|
|
17
|
+
setup(t, { emit: r }) {
|
|
18
|
+
let i = t;
|
|
19
|
+
return (t, r) => (n(), l(s, null, [c("div", f, e(i.message), 1), i.token ? (n(), l("div", p, "TokenId = " + e(i.token), 1)) : a("", !0)], 64));
|
|
20
20
|
}
|
|
21
21
|
}), [["__scopeId", "data-v-6a4e1608"]]);
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/sdk/utils/alerts.ts
|
|
24
24
|
function h(e, t) {
|
|
25
|
-
e &&
|
|
25
|
+
e && o({
|
|
26
26
|
el: e,
|
|
27
27
|
component: d,
|
|
28
28
|
props: { error: t }
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
function g(e, t, n) {
|
|
32
|
-
e &&
|
|
32
|
+
e && o({
|
|
33
33
|
el: e,
|
|
34
34
|
component: m,
|
|
35
35
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./MetricsGlobalThreeDsProvider-
|
|
1
|
+
import { t as e } from "./MetricsGlobalThreeDsProvider-DW-gsG6q.js";
|
|
2
2
|
//#region src/sdk/3ds/CxPayThreeDsProvider.ts
|
|
3
3
|
var t = class extends e {
|
|
4
4
|
getType() {
|
|
@@ -9,4 +9,9 @@ var t = class extends e {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
|
|
12
|
+
//#region src/sdk/3ds/cxpay.ts
|
|
13
|
+
function n(e, n, r) {
|
|
14
|
+
return new t(e, n, r);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as p } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { Et as e, It as t, Lt as n, Ot as r, Tt as i, Z as a, _t as o, ct as s, dt as c, t as l, vt as u, wt as d, xt as f } from "./CloseIcon-CTY2bpwF.js";
|
|
2
|
+
import { t as p } from "./DefaultThreeDsProvider-ChnRLzKI.js";
|
|
3
3
|
//#region src/sdk/3ds/ecentric.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" }, _ = ["action"], v = ["value"], y = /*#__PURE__*/
|
|
4
|
+
var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" }, _ = ["action"], v = ["value"], y = /*#__PURE__*/ a(/* @__PURE__ */ i({
|
|
5
5
|
__name: "ecentric",
|
|
6
6
|
props: {
|
|
7
7
|
threeDSServerTransID: {},
|
|
@@ -9,23 +9,23 @@ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" },
|
|
|
9
9
|
formAction: {},
|
|
10
10
|
authenticationValue: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
let
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
}), (e,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
action:
|
|
12
|
+
setup(i) {
|
|
13
|
+
let a = i, c = o(() => s(a.formAction) ? a.formAction : ""), p = t(null), y = a.authenticationValue;
|
|
14
|
+
return e(() => {
|
|
15
|
+
c.value && p.value?.submit();
|
|
16
|
+
}), (e, t) => (r(), f("div", m, [u("div", h, [u("div", g, [
|
|
17
|
+
d(l, { onClick: t[0] ||= (t) => e.emit("close") }),
|
|
18
|
+
t[1] ||= u("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1),
|
|
19
|
+
u("form", {
|
|
20
|
+
action: c.value,
|
|
21
21
|
target: "ThreeDsChallengeIFrame",
|
|
22
22
|
method: "post",
|
|
23
23
|
ref_key: "form",
|
|
24
24
|
ref: p
|
|
25
|
-
}, [
|
|
25
|
+
}, [u("input", {
|
|
26
26
|
type: "hidden",
|
|
27
27
|
name: "PaReq",
|
|
28
|
-
value:
|
|
28
|
+
value: n(y)
|
|
29
29
|
}, null, 8, v)], 8, _)
|
|
30
30
|
])])]));
|
|
31
31
|
}
|
|
@@ -44,8 +44,8 @@ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" },
|
|
|
44
44
|
}, this.onSuccess, this.onError);
|
|
45
45
|
}
|
|
46
46
|
doChallenge(e, t, n) {
|
|
47
|
-
this.log(`[${this.getType()}][doChallenge]`);
|
|
48
|
-
let { destroy: r } =
|
|
47
|
+
this.log(`[${this.getType()}][doChallenge]`), this.setChallengeFrameVisible(!0);
|
|
48
|
+
let { destroy: r } = c({
|
|
49
49
|
el: document.body,
|
|
50
50
|
component: y,
|
|
51
51
|
props: {
|
|
@@ -55,7 +55,7 @@ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" },
|
|
|
55
55
|
authenticationValue: n
|
|
56
56
|
},
|
|
57
57
|
on: { close: () => {
|
|
58
|
-
r(), this.threeDSDestroy = () => {}, this.threeDsProcessor?.onError({ error: "Challenge cancelled" });
|
|
58
|
+
r(), this.setChallengeFrameVisible(!1), this.threeDSDestroy = () => {}, this.threeDsProcessor?.onError({ error: "Challenge cancelled" });
|
|
59
59
|
} }
|
|
60
60
|
});
|
|
61
61
|
this.threeDSDestroy = r;
|
|
@@ -65,4 +65,9 @@ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" },
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
//#endregion
|
|
68
|
-
|
|
68
|
+
//#region src/sdk/3ds/ecentric.ts
|
|
69
|
+
function x(e, t, n) {
|
|
70
|
+
return new b(e, t, n);
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { x as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./MetricsGlobalThreeDsProvider-
|
|
1
|
+
import { t as e } from "./MetricsGlobalThreeDsProvider-DW-gsG6q.js";
|
|
2
2
|
//#region src/sdk/3ds/EpnaThreeDsProvider.ts
|
|
3
3
|
var t = class extends e {
|
|
4
4
|
getType() {
|
|
@@ -9,4 +9,9 @@ var t = class extends e {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
|
|
12
|
+
//#region src/sdk/3ds/epna.ts
|
|
13
|
+
function n(e, n, r) {
|
|
14
|
+
return new t(e, n, r);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as default };
|
package/dist/sdk/favicon.ico
CHANGED
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./MetricsGlobalThreeDsProvider-
|
|
1
|
+
import { t as e } from "./MetricsGlobalThreeDsProvider-DW-gsG6q.js";
|
|
2
2
|
//#region src/sdk/3ds/FlashBancThreeDsProvider.ts
|
|
3
3
|
var t = class extends e {
|
|
4
4
|
getType() {
|
|
@@ -9,4 +9,9 @@ var t = class extends e {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
|
|
12
|
+
//#region src/sdk/3ds/flashbanc.ts
|
|
13
|
+
function n(e, n, r) {
|
|
14
|
+
return new t(e, n, r);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as default };
|