@payfurl/react-plugin 1.5.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 (27) hide show
  1. package/README.md +11 -0
  2. package/dist/DefaultThreeDsProvider-BS9pznAi-fDl8jKzq.js +248 -0
  3. package/dist/{MetricsGlobalThreeDsProvider-C93ttqbB-SRsVMed4.js → MetricsGlobalThreeDsProvider-C2mH6Z-m-BTiFsRgv.js} +27 -27
  4. package/dist/PayWayAppleButton-BcXMphiU-BwJKfUAJ.js +184 -0
  5. package/dist/{cxpay-DblHb5vN-C-l0lncv.js → cxpay-Bdz9DX5E-9-_yu7t4.js} +1 -1
  6. package/dist/{default-C7f86Fx--2njdEIN4.js → default-CmqRUII8-B6Im_IPh.js} +1 -1
  7. package/dist/{ecentric-B3UohyO_-XSxfe46h.js → ecentric-CZzDL4aQ-BRg09Y8f.js} +26 -23
  8. package/dist/{epna-DwUg2IlB-60mxqUE4.js → epna-A5WIS8Rv-DhjWr-Wx.js} +1 -1
  9. package/dist/{flashbanc-LXs8bahL-z2X9avF_.js → flashbanc-BnKR75SO-BStfAWAb.js} +1 -1
  10. package/dist/{forter-CLFaJUYa-0_gstIhb.js → forter-DtCvNxaz-D5SEPByD.js} +7 -7
  11. package/dist/{gpayments-DoZug3PV-r91JBiIn.js → gpayments-C98_oxi_-D02_MfHY.js} +20 -20
  12. package/dist/index-CqIxTjar.js +12169 -0
  13. package/dist/metrics_global-c4lRSySk-WxebdZ3j.js +7 -0
  14. package/dist/{nmi-BA3ZTdQa-DHWaU-52.js → nmi-CrPg94-y-Bco-VeX9.js} +1 -1
  15. package/dist/{nuvei-DIWsLlLz-Dnx1Hmez.js → nuvei-8V5Z1Bqi-7VHagYOe.js} +31 -32
  16. package/dist/{payabli-DgrTI1Et-aNWdpC9M.js → payabli-CAvI6xn--Nz5dJc0q.js} +1 -1
  17. package/dist/payfurl-react.es.js +1 -1
  18. package/dist/payfurl-react.umd.js +24 -22
  19. package/dist/payglocal-BcbX7wj--Dd68qYZO.js +114 -0
  20. package/dist/{payway_rest-D8-T-ULx-Dt-XGc-v.js → payway_rest-Det6oVYM-BzfFo5sS.js} +1 -1
  21. package/dist/{skybank-BgDLlFXX-BnauHbzw.js → skybank-CldRW65N-BFprFe0k.js} +1 -1
  22. package/package.json +2 -2
  23. package/dist/DefaultThreeDsProvider-bLoDSnkd-CuWxvLku.js +0 -220
  24. package/dist/PayWayAppleButton-BzAwlGS--DB5BVl1o.js +0 -163
  25. package/dist/index-DxOlzt-Z.js +0 -11576
  26. package/dist/metrics_global-BM-ooge--CapUrY7a.js +0 -7
  27. package/dist/payglocal-ezp0MsaZ-CA7TeuKm.js +0 -109
@@ -0,0 +1,7 @@
1
+ import { w as n } from "./MetricsGlobalThreeDsProvider-C2mH6Z-m-BTiFsRgv.js";
2
+ function f(t, r, e) {
3
+ return new n(t, r, e);
4
+ }
5
+ export {
6
+ f as default
7
+ };
@@ -1,4 +1,4 @@
1
- import { w as n } from "./MetricsGlobalThreeDsProvider-C93ttqbB-SRsVMed4.js";
1
+ import { w as n } from "./MetricsGlobalThreeDsProvider-C2mH6Z-m-BTiFsRgv.js";
2
2
  var o = class extends n {
3
3
  getType() {
4
4
  return "NMI";
@@ -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 { i as l, W as D, s as S, Z as y, h as p, a as I, Q as T, X as u, q as f } from "./index-DxOlzt-Z.js";
5
- import { O as P } from "./DefaultThreeDsProvider-bLoDSnkd-CuWxvLku.js";
6
- var v = { class: "mask" }, N = /* @__PURE__ */ S(/* @__PURE__ */ y({
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) => (f(), T("div", v, [...o[0] || (o[0] = [u("div", { class: "wrapper" }, [u("div", { class: "container" })], -1)])]));
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 P {
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({ error: l }));
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
- if (this.log(`[${this.getType()}][onDoAuthSuccess]`, e), !e.transStatus || !e.authenticationValue) this.onError(t, "No transStatus specified");
91
- else switch (e.transStatus) {
92
- case "C":
93
- this.doNuveiChallenge(e.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (r = this.threeDsProcessor) == null ? void 0 : r.getPaymentInfo());
94
- break;
95
- default:
96
- this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + e.transStatus), (o = this.threeDsProcessor) == null || o.onSuccess({
97
- threeDSServerTransID: e.threeDSServerTransID,
98
- threeDSRequestorTransID: "",
99
- acsRenderingType: e.acsRenderingType,
100
- acsTransID: e.acsTransID,
101
- authenticationType: e.authenticationType,
102
- authenticationValue: e.authenticationValue,
103
- challengeCancel: "",
104
- dsTransID: e.dsTransID,
105
- eci: e.eci,
106
- interactionCounter: "",
107
- messageCategory: "",
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({ error: "Challenge cancelled" });
146
+ }, (d = this.threeDsProcessor) == null || d.onError({
147
+ error: "Challenge cancelled",
148
+ cancelReason: "abandoned"
149
+ });
151
150
  } }
152
151
  });
153
152
  this.threeDSDestroy = r;
@@ -1,4 +1,4 @@
1
- import { w as n } from "./MetricsGlobalThreeDsProvider-C93ttqbB-SRsVMed4.js";
1
+ import { w as n } from "./MetricsGlobalThreeDsProvider-C2mH6Z-m-BTiFsRgv.js";
2
2
  var r = class extends n {
3
3
  getType() {
4
4
  return "Payabli";
@@ -1,4 +1,4 @@
1
- import { u as a } from "./index-DxOlzt-Z.js";
1
+ import { P as a } from "./index-CqIxTjar.js";
2
2
  export {
3
3
  a as PayfurlDropin
4
4
  };