@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.
Files changed (30) hide show
  1. package/README.md +142 -0
  2. package/dist/DefaultThreeDsProvider-BS9pznAi-fDl8jKzq.js +248 -0
  3. package/dist/{MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js → MetricsGlobalThreeDsProvider-C2mH6Z-m-BTiFsRgv.js} +25 -25
  4. package/dist/PayWayAppleButton-BcXMphiU-BwJKfUAJ.js +184 -0
  5. package/dist/components/PayfurlDropin.d.ts +8 -3
  6. package/dist/{cxpay-VbaQA3_P-DlS7yCqQ.js → cxpay-Bdz9DX5E-9-_yu7t4.js} +1 -1
  7. package/dist/{default-Diji0SXY-ghmIvhgy.js → default-CmqRUII8-B6Im_IPh.js} +1 -1
  8. package/dist/{ecentric-BlNDCZo_-Bd8Q_3ZG.js → ecentric-CZzDL4aQ-BRg09Y8f.js} +24 -21
  9. package/dist/{epna-CxmJ_mqR-D4gbP4NT.js → epna-A5WIS8Rv-DhjWr-Wx.js} +1 -1
  10. package/dist/{flashbanc-BAxvqtBB-DVXrWV0Z.js → flashbanc-BnKR75SO-BStfAWAb.js} +1 -1
  11. package/dist/forter-DtCvNxaz-D5SEPByD.js +36 -0
  12. package/dist/{gpayments-B5KWQV4S-QV7caEyB.js → gpayments-C98_oxi_-D02_MfHY.js} +23 -23
  13. package/dist/index-CqIxTjar.js +12169 -0
  14. package/dist/index.d.ts +1 -1
  15. package/dist/metrics_global-c4lRSySk-WxebdZ3j.js +7 -0
  16. package/dist/{nmi-Ch7qQ6Av-DbPjmA5v.js → nmi-CrPg94-y-Bco-VeX9.js} +1 -1
  17. package/dist/{nuvei-DRmlfpTL-ByeKEnae.js → nuvei-8V5Z1Bqi-7VHagYOe.js} +31 -32
  18. package/dist/{payabli-CiBJ1-vC-BthvUlRk.js → payabli-CAvI6xn--Nz5dJc0q.js} +1 -1
  19. package/dist/payfurl-react.es.js +1 -1
  20. package/dist/payfurl-react.umd.js +24 -22
  21. package/dist/payglocal-BcbX7wj--Dd68qYZO.js +114 -0
  22. package/dist/{payway_rest-CjgIP42z-7zwBGwnD.js → payway_rest-Det6oVYM-BzfFo5sS.js} +1 -1
  23. package/dist/{skybank-D7uRF17E-BXng_6yf.js → skybank-CldRW65N-BFprFe0k.js} +1 -1
  24. package/package.json +4 -3
  25. package/dist/DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js +0 -219
  26. package/dist/PayWayAppleButton-C-XfcgNS-rgWe-QJM.js +0 -163
  27. package/dist/forter-R2alfHeE-C5KHGNgt.js +0 -33
  28. package/dist/index-CL6hUU-f.js +0 -11224
  29. package/dist/metrics_global-HMMDzPlb-CXHJ1NHy.js +0 -7
  30. package/dist/payglocal-uAPlijwL-CvGatUVh.js +0 -109
@@ -1,7 +0,0 @@
1
- import { w as n } from "./MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js";
2
- function f(t, r, e) {
3
- return new n(t, r, e);
4
- }
5
- export {
6
- f as default
7
- };
@@ -1,109 +0,0 @@
1
- import { O as C } from "./DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js";
2
- import { h as g, H as f, t as E, a as S, Z as k, g as p, B as I, b as D, j as v, c as L, X as d, P as b, k as u, K as R, i as A } from "./index-CL6hUU-f.js";
3
- var l = p(!1);
4
- function U(e, ...t) {
5
- l.value && console.log(u(e), u(t));
6
- }
7
- function m(e) {
8
- var t, s;
9
- (t = e == null ? void 0 : e.data) != null && t.status && e.data.status === "init-card-form" && (l.value = !!((s = e == null ? void 0 : e.data) != null && s.debug));
10
- }
11
- function _() {
12
- return D(() => {
13
- window.addEventListener("message", m);
14
- }), v(() => {
15
- window.removeEventListener("message", m);
16
- }), {
17
- debug: l,
18
- logMessage: U
19
- };
20
- }
21
- var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G = /* @__PURE__ */ S(/* @__PURE__ */ k({
22
- __name: "PayGLocalThreeDsChallenge",
23
- props: { url: {} },
24
- emits: ["close"],
25
- setup(e, { emit: t }) {
26
- let { logMessage: s } = _(), a = e, n = t, o = p(a.url), y = b(() => A(o.value) ? o.value : "");
27
- I(() => a.url, (r) => {
28
- o.value = r;
29
- }), D(() => {
30
- window.addEventListener("message", h);
31
- }), v(() => {
32
- window.removeEventListener("message", h);
33
- });
34
- function h(r) {
35
- var c;
36
- if (s("PayGLocalThreeDsChallenge: Message received", r.data), !((c = r == null ? void 0 : r.data) != null && c["payglocal-token"])) return;
37
- let i = r.data["payglocal-token"];
38
- s("Token received", i);
39
- let T = i.split(".")[1], w = window.atob(T), P = JSON.parse(w);
40
- n("close", P);
41
- }
42
- return (r, i) => (R(), L("div", x, [d("div", M, [d("iframe", {
43
- src: y.value,
44
- sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
45
- }, null, 8, Z)])]));
46
- }
47
- }), [["__scopeId", "data-v-9fa1282d"]]), O = class extends C {
48
- getType() {
49
- return "PayGLocal";
50
- }
51
- onPreAuth() {
52
- var e, t;
53
- this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? this.threeDsProcessor.getGatewayData(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
54
- var a;
55
- return this.initChallenge(((a = s.gatewayMetadata) == null ? void 0 : a.RedirectUrl) || "");
56
- }, () => {
57
- var s;
58
- return (s = this.threeDsProcessor) == null ? void 0 : s.onError({ error: "Unable to get card information" });
59
- }) : (t = this.threeDsProcessor) == null || t.tokeniseCard(this.threeDsProcessor.getProviderId(), (s) => {
60
- this.log(`[${this.getType()}]: tokeniseCard`, s), this.initChallenge(s.gatewayTokenData.RedirectUrl);
61
- }, (s) => {
62
- g(this.container, s);
63
- });
64
- }
65
- onAuth(e, t) {
66
- }
67
- onPostAuth() {
68
- }
69
- initChallenge(e) {
70
- if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
71
- g(this.container, "3D Secure URL is missing");
72
- return;
73
- }
74
- this.setChallengeFrameVisible(!0);
75
- let { destroy: t } = f({
76
- el: document.body,
77
- component: G,
78
- props: { url: e },
79
- on: { close: (s) => {
80
- var a, n, o;
81
- this.closeChallenge(), this.log(`[${this.getType()}]: Challenge Results`, s), s.status === "AUTHORIZED" ? (a = this.threeDsProcessor) == null || a.onSuccess({
82
- acsRenderingType: {},
83
- acsTransID: "",
84
- authenticationType: "",
85
- authenticationValue: "",
86
- challengeCancel: "",
87
- dsTransID: "",
88
- eci: "",
89
- interactionCounter: "",
90
- messageCategory: "",
91
- messageExtension: [],
92
- messageType: "",
93
- messageVersion: "",
94
- threeDSRequestorTransID: "",
95
- threeDSServerTransID: "",
96
- transStatusReason: "",
97
- transStatus: "Y"
98
- }) : s.status === "CUSTOMER_CANCELLED" ? (n = this.threeDsProcessor) == null || n.onError({ error: "Challenge cancelled" }) : (o = this.threeDsProcessor) == null || o.onError({ error: E });
99
- } }
100
- });
101
- this.threeDSDestroy = t;
102
- }
103
- };
104
- function V(e, t, s) {
105
- return new O(e, t, s);
106
- }
107
- export {
108
- V as default
109
- };