@payfurl/react-plugin 1.4.0 → 1.6.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 +142 -0
- package/dist/DefaultThreeDsProvider-BS9pznAi-fDl8jKzq.js +248 -0
- package/dist/{MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js → MetricsGlobalThreeDsProvider-C2mH6Z-m-BTiFsRgv.js} +25 -25
- package/dist/PayWayAppleButton-BcXMphiU-BwJKfUAJ.js +184 -0
- package/dist/components/PayfurlDropin.d.ts +8 -3
- package/dist/{cxpay-VbaQA3_P-DlS7yCqQ.js → cxpay-Bdz9DX5E-9-_yu7t4.js} +1 -1
- package/dist/{default-Diji0SXY-ghmIvhgy.js → default-CmqRUII8-B6Im_IPh.js} +1 -1
- package/dist/{ecentric-BlNDCZo_-Bd8Q_3ZG.js → ecentric-CZzDL4aQ-BRg09Y8f.js} +24 -21
- package/dist/{epna-CxmJ_mqR-D4gbP4NT.js → epna-A5WIS8Rv-DhjWr-Wx.js} +1 -1
- package/dist/{flashbanc-BAxvqtBB-DVXrWV0Z.js → flashbanc-BnKR75SO-BStfAWAb.js} +1 -1
- package/dist/forter-DtCvNxaz-D5SEPByD.js +36 -0
- package/dist/{gpayments-B5KWQV4S-QV7caEyB.js → gpayments-C98_oxi_-D02_MfHY.js} +23 -23
- package/dist/index-CqIxTjar.js +12169 -0
- package/dist/index.d.ts +1 -1
- package/dist/metrics_global-c4lRSySk-WxebdZ3j.js +7 -0
- package/dist/{nmi-Ch7qQ6Av-DbPjmA5v.js → nmi-CrPg94-y-Bco-VeX9.js} +1 -1
- package/dist/{nuvei-DRmlfpTL-ByeKEnae.js → nuvei-8V5Z1Bqi-7VHagYOe.js} +31 -32
- package/dist/{payabli-CiBJ1-vC-BthvUlRk.js → payabli-CAvI6xn--Nz5dJc0q.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +24 -22
- package/dist/payglocal-BcbX7wj--Dd68qYZO.js +114 -0
- package/dist/{payway_rest-CjgIP42z-7zwBGwnD.js → payway_rest-Det6oVYM-BzfFo5sS.js} +1 -1
- package/dist/{skybank-D7uRF17E-BXng_6yf.js → skybank-CldRW65N-BFprFe0k.js} +1 -1
- package/package.json +4 -3
- package/dist/DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js +0 -219
- package/dist/PayWayAppleButton-C-XfcgNS-rgWe-QJM.js +0 -163
- package/dist/forter-R2alfHeE-C5KHGNgt.js +0 -33
- package/dist/index-CL6hUU-f.js +0 -11224
- package/dist/metrics_global-HMMDzPlb-CXHJ1NHy.js +0 -7
- package/dist/payglocal-uAPlijwL-CvGatUVh.js +0 -109
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import PayfurlDropin from "./components/PayfurlDropin";
|
|
2
2
|
export { PayfurlDropin };
|
|
3
|
-
export type { DropInOptionsType, UpiOptionsType, DropInGooglePayOptionsType, DropInApplePayOptionsType, ClickToPayOptionsType, NetworkTokenOptionsType, SuccessResponseType, FailureResponseType } from "@payfurl/client";
|
|
3
|
+
export type { DropInOptionsType, UpiOptionsType, DropInGooglePayOptionsType, DropInApplePayOptionsType, ClickToPayOptionsType, NetworkTokenOptionsType, SuccessResponseType, FailureResponseType, PaymentMethodStatusType, ThreeDsProgressType, CustomerInfoType, AddressInfoType, OrderInfoType } from "@payfurl/client";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var g = (n, t, a) => t in n ? m(n, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[t] = a;
|
|
3
3
|
var h = (n, t, a) => g(n, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import {
|
|
5
|
-
import { O as
|
|
6
|
-
var
|
|
4
|
+
import { i as l, q as D, u as S, e as y, v as p, a as I, t as T, X as u, c as P } from "./index-CqIxTjar.js";
|
|
5
|
+
import { O as v } from "./DefaultThreeDsProvider-BS9pznAi-fDl8jKzq.js";
|
|
6
|
+
var f = { class: "mask" }, N = /* @__PURE__ */ S(/* @__PURE__ */ y({
|
|
7
7
|
__name: "nuvei",
|
|
8
8
|
props: {
|
|
9
9
|
threeDSServerTransID: {},
|
|
@@ -72,9 +72,9 @@ var v = { class: "mask" }, N = /* @__PURE__ */ S(/* @__PURE__ */ y({
|
|
|
72
72
|
}, "*");
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
return (r, o) => (P(), T("div",
|
|
75
|
+
return (r, o) => (P(), T("div", f, [...o[0] || (o[0] = [u("div", { class: "wrapper" }, [u("div", { class: "container" })], -1)])]));
|
|
76
76
|
}
|
|
77
|
-
}), [["__scopeId", "data-v-299db412"]]), { hideSpinner: V } = p(), C = class extends
|
|
77
|
+
}), [["__scopeId", "data-v-299db412"]]), { hideSpinner: V } = p(), C = class extends v {
|
|
78
78
|
constructor() {
|
|
79
79
|
super(...arguments);
|
|
80
80
|
h(this, "_paResPayload", null);
|
|
@@ -82,36 +82,32 @@ var v = { class: "mask" }, N = /* @__PURE__ */ S(/* @__PURE__ */ y({
|
|
|
82
82
|
var s, r;
|
|
83
83
|
this.closeChallenge(), V();
|
|
84
84
|
let e = JSON.parse(a);
|
|
85
|
-
e.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(e) : (this.log(`[${this.getType()}][_onSuccess] ${l}`, e), (r = this.threeDsProcessor) == null || r.onError({
|
|
85
|
+
e.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(e) : (this.log(`[${this.getType()}][_onSuccess] ${l}`, e), (r = this.threeDsProcessor) == null || r.onError({
|
|
86
|
+
error: l,
|
|
87
|
+
cancelReason: "declined"
|
|
88
|
+
}));
|
|
86
89
|
});
|
|
87
90
|
h(this, "onDoAuthSuccess", (t, a) => {
|
|
88
91
|
var s, r, o;
|
|
89
92
|
let e = JSON.parse(a);
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
messageExtension: e.messageExtension,
|
|
109
|
-
messageType: e.messageType,
|
|
110
|
-
messageVersion: e.messageVersion,
|
|
111
|
-
transStatus: e.transStatus,
|
|
112
|
-
transStatusReason: e.transStatusReason
|
|
113
|
-
});
|
|
114
|
-
}
|
|
93
|
+
this.log(`[${this.getType()}][onDoAuthSuccess]`, e), !e.transStatus || !e.authenticationValue ? this.onError(t, "No transStatus specified") : e.transStatus === "C" ? this.doNuveiChallenge(e.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (r = this.threeDsProcessor) == null ? void 0 : r.getPaymentInfo()) : (this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + e.transStatus), (o = this.threeDsProcessor) == null || o.onSuccess({
|
|
94
|
+
threeDSServerTransID: e.threeDSServerTransID,
|
|
95
|
+
threeDSRequestorTransID: "",
|
|
96
|
+
acsRenderingType: e.acsRenderingType,
|
|
97
|
+
acsTransID: e.acsTransID,
|
|
98
|
+
authenticationType: e.authenticationType,
|
|
99
|
+
authenticationValue: e.authenticationValue,
|
|
100
|
+
challengeCancel: "",
|
|
101
|
+
dsTransID: e.dsTransID,
|
|
102
|
+
eci: e.eci,
|
|
103
|
+
interactionCounter: "",
|
|
104
|
+
messageCategory: "",
|
|
105
|
+
messageExtension: e.messageExtension,
|
|
106
|
+
messageType: e.messageType,
|
|
107
|
+
messageVersion: e.messageVersion,
|
|
108
|
+
transStatus: e.transStatus,
|
|
109
|
+
transStatusReason: e.transStatusReason
|
|
110
|
+
}));
|
|
115
111
|
});
|
|
116
112
|
}
|
|
117
113
|
getType() {
|
|
@@ -147,7 +143,10 @@ var v = { class: "mask" }, N = /* @__PURE__ */ S(/* @__PURE__ */ y({
|
|
|
147
143
|
on: { close: () => {
|
|
148
144
|
var d;
|
|
149
145
|
r(), this.setChallengeFrameVisible(!1), this.threeDSDestroy = () => {
|
|
150
|
-
}, (d = this.threeDsProcessor) == null || d.onError({
|
|
146
|
+
}, (d = this.threeDsProcessor) == null || d.onError({
|
|
147
|
+
error: "Challenge cancelled",
|
|
148
|
+
cancelReason: "abandoned"
|
|
149
|
+
});
|
|
151
150
|
} }
|
|
152
151
|
});
|
|
153
152
|
this.threeDSDestroy = r;
|
package/dist/payfurl-react.es.js
CHANGED