@payfurl/react-plugin 1.4.0 → 1.5.0
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/README.md +131 -0
- package/dist/{DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js → DefaultThreeDsProvider-bLoDSnkd-CuWxvLku.js} +24 -23
- package/dist/{MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js → MetricsGlobalThreeDsProvider-C93ttqbB-SRsVMed4.js} +28 -28
- package/dist/{PayWayAppleButton-C-XfcgNS-rgWe-QJM.js → PayWayAppleButton-BzAwlGS--DB5BVl1o.js} +1 -1
- package/dist/components/PayfurlDropin.d.ts +8 -3
- package/dist/{cxpay-VbaQA3_P-DlS7yCqQ.js → cxpay-DblHb5vN-C-l0lncv.js} +1 -1
- package/dist/{default-Diji0SXY-ghmIvhgy.js → default-C7f86Fx--2njdEIN4.js} +1 -1
- package/dist/{ecentric-BlNDCZo_-Bd8Q_3ZG.js → ecentric-B3UohyO_-XSxfe46h.js} +19 -19
- package/dist/{epna-CxmJ_mqR-D4gbP4NT.js → epna-DwUg2IlB-60mxqUE4.js} +1 -1
- package/dist/{flashbanc-BAxvqtBB-DVXrWV0Z.js → flashbanc-LXs8bahL-z2X9avF_.js} +1 -1
- package/dist/forter-CLFaJUYa-0_gstIhb.js +36 -0
- package/dist/{gpayments-B5KWQV4S-QV7caEyB.js → gpayments-DoZug3PV-r91JBiIn.js} +6 -6
- package/dist/{index-CL6hUU-f.js → index-DxOlzt-Z.js} +4344 -3992
- package/dist/index.d.ts +1 -1
- package/dist/metrics_global-BM-ooge--CapUrY7a.js +7 -0
- package/dist/{nmi-Ch7qQ6Av-DbPjmA5v.js → nmi-BA3ZTdQa-DHWaU-52.js} +1 -1
- package/dist/{nuvei-DRmlfpTL-ByeKEnae.js → nuvei-DIWsLlLz-Dnx1Hmez.js} +4 -4
- package/dist/{payabli-CiBJ1-vC-BthvUlRk.js → payabli-DgrTI1Et-aNWdpC9M.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +19 -19
- package/dist/{payglocal-uAPlijwL-CvGatUVh.js → payglocal-ezp0MsaZ-CA7TeuKm.js} +13 -13
- package/dist/{payway_rest-CjgIP42z-7zwBGwnD.js → payway_rest-D8-T-ULx-Dt-XGc-v.js} +1 -1
- package/dist/{skybank-D7uRF17E-BXng_6yf.js → skybank-BgDLlFXX-BnauHbzw.js} +1 -1
- package/package.json +4 -3
- package/dist/forter-R2alfHeE-C5KHGNgt.js +0 -33
- package/dist/metrics_global-HMMDzPlb-CXHJ1NHy.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as
|
|
2
|
-
import {
|
|
1
|
+
import { O as f } from "./DefaultThreeDsProvider-bLoDSnkd-CuWxvLku.js";
|
|
2
|
+
import { j as g, W as P, i as E, s as I, Z as S, c as p, B as k, a as D, k as v, Q as L, X as d, I as R, n as u, q as b, o as A } from "./index-DxOlzt-Z.js";
|
|
3
3
|
var l = p(!1);
|
|
4
4
|
function U(e, ...t) {
|
|
5
5
|
l.value && console.log(u(e), u(t));
|
|
@@ -18,13 +18,13 @@ function _() {
|
|
|
18
18
|
logMessage: U
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
var x = { class: "modal-mask" }, M = { class: "modal-wrapper" },
|
|
21
|
+
var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, G = ["src"], O = /* @__PURE__ */ I(/* @__PURE__ */ S({
|
|
22
22
|
__name: "PayGLocalThreeDsChallenge",
|
|
23
23
|
props: { url: {} },
|
|
24
24
|
emits: ["close"],
|
|
25
25
|
setup(e, { emit: t }) {
|
|
26
|
-
let { logMessage: s } = _(), a = e, n = t, o = p(a.url), y =
|
|
27
|
-
|
|
26
|
+
let { logMessage: s } = _(), a = e, n = t, o = p(a.url), y = R(() => A(o.value) ? o.value : "");
|
|
27
|
+
k(() => a.url, (r) => {
|
|
28
28
|
o.value = r;
|
|
29
29
|
}), D(() => {
|
|
30
30
|
window.addEventListener("message", h);
|
|
@@ -36,15 +36,15 @@ var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G
|
|
|
36
36
|
if (s("PayGLocalThreeDsChallenge: Message received", r.data), !((c = r == null ? void 0 : r.data) != null && c["payglocal-token"])) return;
|
|
37
37
|
let i = r.data["payglocal-token"];
|
|
38
38
|
s("Token received", i);
|
|
39
|
-
let T = i.split(".")[1], w = window.atob(T),
|
|
40
|
-
n("close",
|
|
39
|
+
let T = i.split(".")[1], w = window.atob(T), C = JSON.parse(w);
|
|
40
|
+
n("close", C);
|
|
41
41
|
}
|
|
42
|
-
return (r, i) => (
|
|
42
|
+
return (r, i) => (b(), L("div", x, [d("div", M, [d("iframe", {
|
|
43
43
|
src: y.value,
|
|
44
44
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
45
|
-
}, null, 8,
|
|
45
|
+
}, null, 8, G)])]));
|
|
46
46
|
}
|
|
47
|
-
}), [["__scopeId", "data-v-9fa1282d"]]),
|
|
47
|
+
}), [["__scopeId", "data-v-9fa1282d"]]), Z = class extends f {
|
|
48
48
|
getType() {
|
|
49
49
|
return "PayGLocal";
|
|
50
50
|
}
|
|
@@ -72,9 +72,9 @@ var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G
|
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
this.setChallengeFrameVisible(!0);
|
|
75
|
-
let { destroy: t } =
|
|
75
|
+
let { destroy: t } = P({
|
|
76
76
|
el: document.body,
|
|
77
|
-
component:
|
|
77
|
+
component: O,
|
|
78
78
|
props: { url: e },
|
|
79
79
|
on: { close: (s) => {
|
|
80
80
|
var a, n, o;
|
|
@@ -102,7 +102,7 @@ var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
function V(e, t, s) {
|
|
105
|
-
return new
|
|
105
|
+
return new Z(e, t, s);
|
|
106
106
|
}
|
|
107
107
|
export {
|
|
108
108
|
V as default
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfurl/react-plugin",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "PayFURL React Plugin",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite",
|
|
24
24
|
"build": "vite build && vue-tsc --emitDeclarationOnly",
|
|
25
|
-
"preview": "vite preview"
|
|
25
|
+
"preview": "vite preview",
|
|
26
|
+
"lint": "eslint . --max-warnings 0"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@payfurl/client": "^4.
|
|
29
|
+
"@payfurl/client": "^4.11.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
32
|
"react": "^18.3.1",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var l = Object.defineProperty;
|
|
2
|
-
var d = (t, e, s) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
-
var h = (t, e, s) => d(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import { O as c } from "./DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js";
|
|
5
|
-
import { e as g, a as m, s as u } from "./managedOrders-ojoMZ0Ab-B94-Nsp-.js";
|
|
6
|
-
import { o as p } from "./index-CL6hUU-f.js";
|
|
7
|
-
var { hideSpinner: f } = p(), S = class extends c {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
h(this, "onDoAuthSuccess", (e, s) => {
|
|
11
|
-
var n;
|
|
12
|
-
let o = JSON.parse(s);
|
|
13
|
-
this.log(`[${this.getType()}][onDoAuthSuccess]`, o);
|
|
14
|
-
let a = ((n = this.options.clientParameters) == null ? void 0 : n.SiteId) || "", i = o.managedOrderToken;
|
|
15
|
-
!i || !g.test(a) ? this.onError(e, "3DS could not be started") : m(a).then(() => {
|
|
16
|
-
this.setChallengeFrameVisible(!0), f(), u(i, this.container, (r) => {
|
|
17
|
-
this.setChallengeFrameVisible(!1), r ? (this.log(`[${this.getType()}]: manageOrder failed`, r), this.onError(400, "3DS failed")) : this.onPostAuth();
|
|
18
|
-
});
|
|
19
|
-
}, (r) => {
|
|
20
|
-
this.log(`[${this.getType()}]: managedOrders.js failed to load`, r), this.onError(400, "3DS could not be started");
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
getType() {
|
|
25
|
-
return "Forter";
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
function b(t, e, s) {
|
|
29
|
-
return new S(t, e, s);
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
b as default
|
|
33
|
-
};
|