@payfurl/react-plugin 1.0.10 → 1.1.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-DfJyYDV8-BtwTH6Vv.js → CxPayThreeDsProvider-7yh00m_f-BSAj-Zut.js} +1 -1
- package/dist/{DefaultThreeDsProvider-DvV6zVzO-DDYac6nh.js → DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js} +33 -33
- package/dist/{EcentricThreeDsProvider-DC4tQCJ4-43cDaJIh.js → EcentricThreeDsProvider-BjVGZlb9-BVFegP5X.js} +31 -31
- package/dist/{EpnaThreeDsProvider-D9tTUWnr-EX6HQmg0.js → EpnaThreeDsProvider-D-jEeUhd-CjqDQ6sC.js} +1 -1
- package/dist/{FlashBancThreeDsProvider-Dc_WgWyQ-D2rZd6ti.js → FlashBancThreeDsProvider-Cov5ey75-D0PVygYS.js} +1 -1
- package/dist/{GPaymentsThreeDsProvider-BAJmTSdj-BmLQFvQr.js → GPaymentsThreeDsProvider-DC48F4-s-CeTTM1oZ.js} +23 -22
- package/dist/MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js +146 -0
- package/dist/{NmiThreeDsProvider-X5Wb78Qq-D6zRtIK-.js → NmiThreeDsProvider-UdLXXANS-BJ_uuNCG.js} +1 -1
- package/dist/{NuveiThreeDsProvider-C7kP4S9V-CKRUbO6O.js → NuveiThreeDsProvider-Da4x--0n-2TdKYejN.js} +45 -45
- package/dist/{PayGLocalThreeDsProvider-pa38V_3c-BYX0XJ0I.js → PayGLocalThreeDsProvider-BnHoCS8k-DBBnV_0h.js} +28 -28
- package/dist/{PayWayAppleButton-DGBgHxM1--mVa2z-I.js → PayWayAppleButton-BnfVXscK-s3xK_XOH.js} +1 -1
- package/dist/{PayabliThreeDsProvider-CMCehiRL-Dsv7XOl0.js → PayabliThreeDsProvider-DputC3bO-NOKVgrTF.js} +1 -1
- package/dist/{SkyBankThreeDsProvider-BJXZbNSS-DjLydBX-.js → SkyBankThreeDsProvider-Dv1Vr_P5-BfAcbM_v.js} +1 -1
- package/dist/{cxpay-CmCXB_3H-CFTLoWfG.js → cxpay-DvznoDgN-7uW13wnL.js} +1 -1
- package/dist/{default-DwmL369u-CFn9gU9h.js → default-C5N621sA-vMshBhxy.js} +1 -1
- package/dist/{ecentric-CkX8jlMS-CIF3TL3n.js → ecentric-CAuUEG5b-BIT7b2FE.js} +1 -1
- package/dist/{epna-CQuWi-kj-Bp3oLoVZ.js → epna-diKGQ91--D_6ns_Yg.js} +1 -1
- package/dist/{flashbanc-ROJhNrEr-CkfPZX3E.js → flashbanc-D8UHX81f-DP7Mfbms.js} +1 -1
- package/dist/{gpayments-CMf-VGx8-woOHZ2Uf.js → gpayments-C4CSZg2r-CiQQN4E2.js} +1 -1
- package/dist/{index-DjmLClKy.js → index-CgZDGZz7.js} +5202 -5062
- package/dist/{metrics_global-DCnzJ8W3-owheVXbs.js → metrics_global-BawXVoSi-BbuxD9JD.js} +1 -1
- package/dist/nmi-LmUsZTYy-ByY_sPgd.js +7 -0
- package/dist/{nuvei-DY1eIaaI-CH37Pkov.js → nuvei-DXKVuVRr-BU6CdMvt.js} +1 -1
- package/dist/{payabli-DD1ZuFv1-GPn71phq.js → payabli-7PdId67j-C1ny_G1X.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +26 -26
- package/dist/{payglocal-CC7Mmvkg-B93wBeJX.js → payglocal-vL14oF4n-tNH_zCze.js} +1 -1
- package/dist/{payway_rest-C2bgT2mt-DZYerbzI.js → payway_rest-Ca-gqNG3-Dlq4bSLu.js} +1 -1
- package/dist/{skybank-DLUEQlDI-CALhFzpW.js → skybank-B8zqMe9Y-CvU0qUrH.js} +1 -1
- package/package.json +2 -2
- package/dist/MetricsGlobalThreeDsProvider-DiPpCK4e-CRZ470ug.js +0 -146
- package/dist/nmi-BAQHxhKe-DtWC05bC.js +0 -7
package/dist/{NuveiThreeDsProvider-C7kP4S9V-CKRUbO6O.js → NuveiThreeDsProvider-Da4x--0n-2TdKYejN.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DefaultThreeDsProvider as
|
|
3
|
-
var f = Object.defineProperty, I = (n, e,
|
|
1
|
+
import { c as d, y as p, z as m, d as h, a as g, e as D, Y as S, J as y, x as l } from "./index-CgZDGZz7.js";
|
|
2
|
+
import { DefaultThreeDsProvider as v, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
|
|
3
|
+
var f = Object.defineProperty, I = (n, e, a) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, c = (n, e, a) => I(n, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
const N = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
5
5
|
__name: "nuvei",
|
|
6
6
|
props: {
|
|
@@ -20,15 +20,15 @@ const N = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
|
20
20
|
country: {}
|
|
21
21
|
},
|
|
22
22
|
setup(n) {
|
|
23
|
-
const { hideSpinner: e, showSpinner:
|
|
23
|
+
const { hideSpinner: e, showSpinner: a } = h(), s = n;
|
|
24
24
|
D(() => {
|
|
25
|
-
|
|
25
|
+
a();
|
|
26
26
|
const t = document.createElement("script");
|
|
27
27
|
t.type = "text/javascript", t.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", t.onload = () => {
|
|
28
|
-
const
|
|
29
|
-
document.getElementsByClassName("sfcModal-dialog")[0] && (e(),
|
|
28
|
+
const r = new MutationObserver(function() {
|
|
29
|
+
document.getElementsByClassName("sfcModal-dialog")[0] && (e(), r.disconnect());
|
|
30
30
|
}), i = { childList: !0 }, u = document.querySelector("body");
|
|
31
|
-
|
|
31
|
+
r.observe(u, i), o();
|
|
32
32
|
}, document.head.appendChild(t);
|
|
33
33
|
});
|
|
34
34
|
function o() {
|
|
@@ -67,53 +67,53 @@ const N = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
|
67
67
|
email: s.email,
|
|
68
68
|
country: s.country
|
|
69
69
|
}
|
|
70
|
-
}, function(
|
|
71
|
-
window.postMessage({ status: "3ds_challenge_complete", cres:
|
|
70
|
+
}, function(r) {
|
|
71
|
+
window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
return (t,
|
|
74
|
+
return (t, r) => (S(), y("div", N, [...r[0] || (r[0] = [
|
|
75
75
|
l("div", { class: "wrapper" }, [
|
|
76
76
|
l("div", { class: "container" })
|
|
77
77
|
], -1)
|
|
78
|
-
])));
|
|
78
|
+
])]));
|
|
79
79
|
}
|
|
80
|
-
}), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner:
|
|
81
|
-
class
|
|
80
|
+
}), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: E } = h();
|
|
81
|
+
class x extends v {
|
|
82
82
|
constructor() {
|
|
83
|
-
super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e,
|
|
83
|
+
super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
|
|
84
84
|
var s, o;
|
|
85
|
-
this.closeChallenge(),
|
|
86
|
-
const t = JSON.parse(
|
|
85
|
+
this.closeChallenge(), E();
|
|
86
|
+
const t = JSON.parse(a);
|
|
87
87
|
t.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(t) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, t), (o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" }));
|
|
88
|
-
}), c(this, "onDoAuthSuccess", (e,
|
|
88
|
+
}), c(this, "onDoAuthSuccess", (e, a) => {
|
|
89
89
|
var s, o, t;
|
|
90
|
-
const
|
|
91
|
-
if (this.log(`[${this.getType()}][onDoAuthSuccess]`,
|
|
90
|
+
const r = JSON.parse(a);
|
|
91
|
+
if (this.log(`[${this.getType()}][onDoAuthSuccess]`, r), !r.transStatus || !r.authenticationValue) {
|
|
92
92
|
this.onError(e, "No transStatus specified");
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
switch (
|
|
95
|
+
switch (r.transStatus) {
|
|
96
96
|
case "C":
|
|
97
|
-
this.doNuveiChallenge(
|
|
97
|
+
this.doNuveiChallenge(r.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (o = this.threeDsProcessor) == null ? void 0 : o.getPaymentInfo());
|
|
98
98
|
break;
|
|
99
99
|
default:
|
|
100
|
-
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` +
|
|
101
|
-
threeDSServerTransID:
|
|
100
|
+
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + r.transStatus), (t = this.threeDsProcessor) == null || t.onSuccess({
|
|
101
|
+
threeDSServerTransID: r.threeDSServerTransID,
|
|
102
102
|
threeDSRequestorTransID: "",
|
|
103
|
-
acsRenderingType:
|
|
104
|
-
acsTransID:
|
|
105
|
-
authenticationType:
|
|
106
|
-
authenticationValue:
|
|
103
|
+
acsRenderingType: r.acsRenderingType,
|
|
104
|
+
acsTransID: r.acsTransID,
|
|
105
|
+
authenticationType: r.authenticationType,
|
|
106
|
+
authenticationValue: r.authenticationValue,
|
|
107
107
|
challengeCancel: "",
|
|
108
|
-
dsTransID:
|
|
109
|
-
eci:
|
|
108
|
+
dsTransID: r.dsTransID,
|
|
109
|
+
eci: r.eci,
|
|
110
110
|
interactionCounter: "",
|
|
111
111
|
messageCategory: "",
|
|
112
|
-
messageExtension:
|
|
113
|
-
messageType:
|
|
114
|
-
messageVersion:
|
|
115
|
-
transStatus:
|
|
116
|
-
transStatusReason:
|
|
112
|
+
messageExtension: r.messageExtension,
|
|
113
|
+
messageType: r.messageType,
|
|
114
|
+
messageVersion: r.messageVersion,
|
|
115
|
+
transStatus: r.transStatus,
|
|
116
|
+
transStatusReason: r.transStatusReason
|
|
117
117
|
});
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
@@ -123,8 +123,8 @@ class A extends y {
|
|
|
123
123
|
return "Nuvei";
|
|
124
124
|
}
|
|
125
125
|
onPreAuth() {
|
|
126
|
-
var e,
|
|
127
|
-
this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (
|
|
126
|
+
var e, a;
|
|
127
|
+
this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (a = this.threeDsProcessor) == null || a.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
|
|
128
128
|
var o;
|
|
129
129
|
(o = this.threeDsProcessor) == null || o.setPaymentInfo(s), super.onPreAuth();
|
|
130
130
|
}, () => {
|
|
@@ -142,27 +142,27 @@ class A extends y {
|
|
|
142
142
|
xid: this._paResPayload.xid
|
|
143
143
|
}, this.onSuccess, this.onError);
|
|
144
144
|
}
|
|
145
|
-
doNuveiChallenge(e,
|
|
145
|
+
doNuveiChallenge(e, a, s) {
|
|
146
146
|
var o;
|
|
147
147
|
const t = JSON.parse(e);
|
|
148
|
-
(t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })),
|
|
149
|
-
const { destroy:
|
|
148
|
+
(t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })), a && (t.firstName = a.firstName, t.lastName = a.lastName, t.email = a.email, t.country = a.country), s && (t.cardNumber = s.cardNumber, t.cardHolderName = s.cardholder || "", t.expirationMonth = s.expiryDate.substring(2, 4), t.expirationYear = s.expiryDate.substring(0, 2), t.CVV = s.ccv);
|
|
149
|
+
const { destroy: r } = p({
|
|
150
150
|
el: document.body,
|
|
151
151
|
component: _,
|
|
152
152
|
props: t,
|
|
153
153
|
on: {
|
|
154
154
|
close: () => {
|
|
155
155
|
var i;
|
|
156
|
-
|
|
156
|
+
r(), this.threeDSDestroy = () => {
|
|
157
157
|
}, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
|
-
this.threeDSDestroy =
|
|
161
|
+
this.threeDSDestroy = r;
|
|
162
162
|
}
|
|
163
163
|
messageHandler(e) {
|
|
164
|
-
var
|
|
165
|
-
if ((
|
|
164
|
+
var a, s, o;
|
|
165
|
+
if ((a = e == null ? void 0 : e.data) != null && a.status) {
|
|
166
166
|
if (e.data.status === P) {
|
|
167
167
|
this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), e.stopPropagation(), this.onAuth(!0, "");
|
|
168
168
|
return;
|
|
@@ -172,5 +172,5 @@ class A extends y {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
export {
|
|
175
|
-
|
|
175
|
+
x as NuveiThreeDsProvider
|
|
176
176
|
};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
|
|
1
|
+
import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
|
|
2
|
+
import { c, y as C, z as w, a as I, n as D, I as E, u as L, e as m, h as p, Y as S, J as k, x as g, f as R, B as x } from "./index-CgZDGZz7.js";
|
|
3
|
+
const h = D(!1);
|
|
4
|
+
function $(r, ...e) {
|
|
5
|
+
h.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 && (h.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function b() {
|
|
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: h,
|
|
18
|
+
logMessage: $
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const A = { class: "modal-mask" }, U = { class: "modal-wrapper" }, _ = ["src"], G = /* @__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 } = b(), a = r, s = e, o = D(a.url), n = E(() => x(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 T = d.split(".")[1], y = window.atob(T), P = JSON.parse(y);
|
|
42
|
+
s("close", P);
|
|
43
43
|
}
|
|
44
|
-
return (l, i) => (
|
|
44
|
+
return (l, i) => (S(), k("div", A, [
|
|
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, _)
|
|
50
50
|
])
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
class
|
|
53
|
+
}), M = /* @__PURE__ */ w(G, [["__scopeId", "data-v-0699f67d"]]);
|
|
54
|
+
class z extends f {
|
|
55
55
|
getType() {
|
|
56
56
|
return "PayGLocal";
|
|
57
57
|
}
|
|
@@ -81,9 +81,9 @@ class G extends f {
|
|
|
81
81
|
c(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: M,
|
|
87
87
|
props: {
|
|
88
88
|
url: e
|
|
89
89
|
},
|
|
@@ -123,5 +123,5 @@ class G extends f {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
z as PayGLocalThreeDsProvider
|
|
127
127
|
};
|
package/dist/{PayWayAppleButton-DGBgHxM1--mVa2z-I.js → PayWayAppleButton-BnfVXscK-s3xK_XOH.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as b, R as v, _ as g } from "./index-CgZDGZz7.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",
|