@payfurl/react-plugin 1.0.11 → 1.2.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/dist/{CxPayThreeDsProvider-DHyY0SJN-mkHWDkHg.js → CxPayThreeDsProvider-BLfTGjPF-kfggfjdU.js} +1 -1
- package/dist/{DefaultThreeDsProvider-BbyoW5gI-Bm2Tl1xC.js → DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js} +33 -33
- package/dist/{EcentricThreeDsProvider-CJkAKhCm-4a0z3e8l.js → EcentricThreeDsProvider-C0fijqNm-J1HqpcUG.js} +32 -32
- package/dist/{EpnaThreeDsProvider-CbuCAz8E-8AT3NiUZ.js → EpnaThreeDsProvider-BKcMV0Ni-C8jATWyJ.js} +1 -1
- package/dist/{FlashBancThreeDsProvider-yEpICp2s-B-fAmFIe.js → FlashBancThreeDsProvider-BL79DnxY-CKAnpF83.js} +1 -1
- package/dist/{GPaymentsThreeDsProvider-ZzFlXQYx-DxEfT4MU.js → GPaymentsThreeDsProvider-DK7o9MEd-CotMfLS4.js} +23 -22
- package/dist/{MetricsGlobalThreeDsProvider-COVvDD_A-BpwZGUJd.js → MetricsGlobalThreeDsProvider-DCFNNBAG-DWwOWfRj.js} +33 -33
- package/dist/{NmiThreeDsProvider-CyQ9ToCv-C5qjGxEE.js → NmiThreeDsProvider-CjG8JCAW-SClrMiRm.js} +1 -1
- package/dist/{NuveiThreeDsProvider-wpWbdDVQ-Df-izyuz.js → NuveiThreeDsProvider-C511D4Vv-CI0PLP-t.js} +6 -6
- package/dist/{PayGLocalThreeDsProvider-piT2VTln-BSZsat2V.js → PayGLocalThreeDsProvider-Isk8RrpT-Du6bWeJa.js} +31 -31
- package/dist/{PayWayAppleButton-lOpUyVhK-C3sG34i0.js → PayWayAppleButton-CP2C2UFi-CE7cLGod.js} +1 -1
- package/dist/{PayabliThreeDsProvider-chEmLOO6-DsAXAJs1.js → PayabliThreeDsProvider-D04tIaoI-C9P-h4fx.js} +1 -1
- package/dist/{SkyBankThreeDsProvider-B1KB-MBu-BvB-_qyj.js → SkyBankThreeDsProvider-CI5tCFi6-Bc7KqUKb.js} +1 -1
- package/dist/{cxpay-CkpinAwr-ChgTpH3-.js → cxpay-CXd-gWgJ-o6fIVfHa.js} +1 -1
- package/dist/{default-CCjRF2gJ-CD4CwffS.js → default-Bn_jZqbH-Bl2uje9s.js} +1 -1
- package/dist/{ecentric-C7aOx_5y-CEzn5wge.js → ecentric-BUuKlIAj-DtLsDgEq.js} +1 -1
- package/dist/{epna-C3FB2xZQ-DH6OQlXc.js → epna-DquO2ajM-D6mOIN8h.js} +1 -1
- package/dist/{flashbanc-tBq9tJrU-YpLBHiBR.js → flashbanc-C4qF4wum-YDAB9IfO.js} +1 -1
- package/dist/{gpayments-utHsl2Sf-CVGRwoei.js → gpayments-B99Rhx-h-CQnyzSas.js} +1 -1
- package/dist/{index-BK7gCCkz.js → index-BmYcZJxX.js} +6257 -5865
- package/dist/{metrics_global-CP2_hsNY-PAbKkq2a.js → metrics_global-BhM_CqUq-uWSbroEt.js} +1 -1
- package/dist/nmi-B31Ng1Zj-CtTrEAj2.js +7 -0
- package/dist/{nuvei-DFcv1FC6-Do0hVbvU.js → nuvei-C_wJxvcg-9I4of95a.js} +1 -1
- package/dist/{payabli-C_GFUDE_-B3AKtHbR.js → payabli-DEjkMyU_-CjTbSafb.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +29 -29
- package/dist/{payglocal-CfnXIS4O-DFlDGlnE.js → payglocal-DrWsvnYA-WB4rb0ul.js} +1 -1
- package/dist/{payway_rest-Bl-RqdsM-DtXvxCWL.js → payway_rest-gds3Rn3R-B9t3rfRC.js} +1 -1
- package/dist/{skybank-ChiLuKWf-CtXaMyvJ.js → skybank-Cr24BYBd-BmDAIEtF.js} +1 -1
- package/package.json +2 -2
- package/dist/nmi-Crex5ZZF-Cq6YYDcI.js +0 -7
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
|
|
1
|
+
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-ByqIuIMb-DCABeZFY.js";
|
|
2
|
+
import { v as h, P as C, J as w, F as I, i as D, O as E, d as L, e as m, h as p, Y as S, a as k, b as g, f as R, j as b } from "./index-BmYcZJxX.js";
|
|
3
|
+
const c = D(!1);
|
|
4
|
+
function A(r, ...e) {
|
|
5
|
+
c.value && console.log(r, e);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function v(r) {
|
|
8
8
|
var e, t;
|
|
9
|
-
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status ===
|
|
9
|
+
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status === R && (c.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function $() {
|
|
12
12
|
return m(() => {
|
|
13
|
-
window.addEventListener("message",
|
|
13
|
+
window.addEventListener("message", v);
|
|
14
14
|
}), p(() => {
|
|
15
|
-
window.removeEventListener("message",
|
|
15
|
+
window.removeEventListener("message", v);
|
|
16
16
|
}), {
|
|
17
|
-
debug:
|
|
18
|
-
logMessage:
|
|
17
|
+
debug: c,
|
|
18
|
+
logMessage: A
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const x = { class: "modal-mask" }, U = { class: "modal-wrapper" }, G = ["src"], M = /* @__PURE__ */ I({
|
|
22
22
|
__name: "PayGLocalThreeDsChallenge",
|
|
23
23
|
props: {
|
|
24
24
|
url: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["close"],
|
|
27
27
|
setup(r, { emit: e }) {
|
|
28
|
-
const { logMessage: t } =
|
|
29
|
-
|
|
28
|
+
const { logMessage: t } = $(), a = r, s = e, o = D(a.url), n = E(() => b(o.value) ? o.value : "");
|
|
29
|
+
L(() => a.url, (l) => {
|
|
30
30
|
o.value = l;
|
|
31
31
|
}), m(() => {
|
|
32
|
-
window.addEventListener("message",
|
|
32
|
+
window.addEventListener("message", u);
|
|
33
33
|
}), p(() => {
|
|
34
|
-
window.removeEventListener("message",
|
|
34
|
+
window.removeEventListener("message", u);
|
|
35
35
|
});
|
|
36
|
-
function
|
|
36
|
+
function u(l) {
|
|
37
37
|
var i;
|
|
38
38
|
if (t("PayGLocalThreeDsChallenge: Message received", l.data), !((i = l == null ? void 0 : l.data) != null && i["payglocal-token"])) return;
|
|
39
39
|
const d = l.data["payglocal-token"];
|
|
40
40
|
t("Token received", d);
|
|
41
|
-
const
|
|
42
|
-
s("close",
|
|
41
|
+
const P = d.split(".")[1], T = window.atob(P), f = JSON.parse(T);
|
|
42
|
+
s("close", f);
|
|
43
43
|
}
|
|
44
|
-
return (l, i) => (
|
|
44
|
+
return (l, i) => (S(), k("div", x, [
|
|
45
45
|
g("div", U, [
|
|
46
46
|
g("iframe", {
|
|
47
|
-
src:
|
|
47
|
+
src: n.value,
|
|
48
48
|
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
49
|
-
}, null, 8,
|
|
49
|
+
}, null, 8, G)
|
|
50
50
|
])
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
class
|
|
53
|
+
}), O = /* @__PURE__ */ w(M, [["__scopeId", "data-v-0699f67d"]]);
|
|
54
|
+
class F extends y {
|
|
55
55
|
getType() {
|
|
56
56
|
return "PayGLocal";
|
|
57
57
|
}
|
|
@@ -62,14 +62,14 @@ class G extends y {
|
|
|
62
62
|
var n;
|
|
63
63
|
this.log(`[${this.getType()}]: getCardDetails`, s, o), (n = this.threeDsProcessor) == null || n.setPaymentInfo(s), this.initChallenge(o.RedirectUrl);
|
|
64
64
|
}, () => {
|
|
65
|
-
|
|
65
|
+
h(this.container, "Unable to get card information");
|
|
66
66
|
});
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
(a = this.threeDsProcessor) == null || a.tokeniseCard(this.threeDsProcessor.getProviderId(), (s) => {
|
|
70
70
|
this.log(`[${this.getType()}]: tokeniseCard`, s), this.initChallenge(s.gatewayTokenData.RedirectUrl);
|
|
71
71
|
}, (s) => {
|
|
72
|
-
|
|
72
|
+
h(this.container, s);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
onAuth(e, t) {
|
|
@@ -78,12 +78,12 @@ class G extends y {
|
|
|
78
78
|
}
|
|
79
79
|
initChallenge(e) {
|
|
80
80
|
if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
|
|
81
|
-
|
|
81
|
+
h(this.container, "3D Secure URL is missing");
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
const { destroy: t } =
|
|
84
|
+
const { destroy: t } = C({
|
|
85
85
|
el: document.body,
|
|
86
|
-
component:
|
|
86
|
+
component: O,
|
|
87
87
|
props: {
|
|
88
88
|
url: e
|
|
89
89
|
},
|
|
@@ -123,5 +123,5 @@ class G extends y {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
F as PayGLocalThreeDsProvider
|
|
127
127
|
};
|
package/dist/{PayWayAppleButton-lOpUyVhK-C3sG34i0.js → PayWayAppleButton-CP2C2UFi-CE7cLGod.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as b, $ as v, T as g } from "./index-BmYcZJxX.js";
|
|
2
2
|
var A = Object.defineProperty, C = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, i = (n, t, e) => C(n, typeof t != "symbol" ? t + "" : t, e);
|
|
3
3
|
const h = {
|
|
4
4
|
CHECKOUT: "CHECKOUT",
|