@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
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";
@@ -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-B-EQQsEV-BYhakAA4.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 { t as l, H as D, a as S, Z as y, o as p, b as I, c as T, X as u, K as P } from "./index-CL6hUU-f.js";
5
- import { O as f } from "./DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.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) => (P(), 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 f {
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-B-EQQsEV-BYhakAA4.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 { q as a } from "./index-CL6hUU-f.js";
1
+ import { P as a } from "./index-CqIxTjar.js";
2
2
  export {
3
3
  a as PayfurlDropin
4
4
  };