@payfurl/react-plugin 1.3.0 → 1.4.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 (62) hide show
  1. package/dist/ApplePayButtonOptions.type-BvRk9kiK-BzeTPT7u.js +9 -0
  2. package/dist/{DefaultThreeDsProvider-aIZr-d29-34xFFHE7.js → DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js} +22 -46
  3. package/dist/MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js +143 -0
  4. package/dist/{PayWayAppleButton-DESHrVB--dAz40mnI.js → PayWayAppleButton-C-XfcgNS-rgWe-QJM.js} +3 -13
  5. package/dist/components/PayfurlDropin.d.ts +17 -0
  6. package/dist/cxpay-VbaQA3_P-DlS7yCqQ.js +15 -0
  7. package/dist/default-Diji0SXY-ghmIvhgy.js +7 -0
  8. package/dist/ecentric-BlNDCZo_-Bd8Q_3ZG.js +82 -0
  9. package/dist/epna-CxmJ_mqR-D4gbP4NT.js +15 -0
  10. package/dist/flashbanc-BAxvqtBB-DVXrWV0Z.js +15 -0
  11. package/dist/{forterDeviceIntelScript-DdHZ7KLR-Bj5SDir_.js → forter-DXQjpKVH-DaJPhK3m.js} +55 -2
  12. package/dist/forter-R2alfHeE-C5KHGNgt.js +33 -0
  13. package/dist/{GPaymentsThreeDsProvider-COuZ_3w6-LSN7UEC9.js → gpayments-B5KWQV4S-QV7caEyB.js} +21 -29
  14. package/dist/{index-BuqGcTyx.js → index-CL6hUU-f.js} +4757 -5274
  15. package/dist/index.d.ts +3 -6
  16. package/dist/managedOrders-ojoMZ0Ab-B94-Nsp-.js +44 -0
  17. package/dist/metrics_global-HMMDzPlb-CXHJ1NHy.js +7 -0
  18. package/dist/nmi-Ch7qQ6Av-DbPjmA5v.js +15 -0
  19. package/dist/nuvei-DRmlfpTL-ByeKEnae.js +165 -0
  20. package/dist/payabli-CiBJ1-vC-BthvUlRk.js +15 -0
  21. package/dist/payfurl-react.es.js +1 -1
  22. package/dist/payfurl-react.umd.js +19 -18
  23. package/dist/payglocal-uAPlijwL-CvGatUVh.js +109 -0
  24. package/dist/{payway_rest-m9k6k7M0-DRpVLFXx.js → payway_rest-CjgIP42z-7zwBGwnD.js} +1 -1
  25. package/dist/skybank-D7uRF17E-BXng_6yf.js +15 -0
  26. package/package.json +4 -3
  27. package/dist/CxPayThreeDsProvider-lD7RyyaH-CZzCobVO.js +0 -12
  28. package/dist/EcentricThreeDsProvider-B7Hq90Yp-BLFmnpX_.js +0 -78
  29. package/dist/EpnaThreeDsProvider-BAO2GROY-DrXyG7m7.js +0 -12
  30. package/dist/FlashBancThreeDsProvider-CIZpoTAj-mm8iTQlK.js +0 -12
  31. package/dist/MetricsGlobalThreeDsProvider-D3x5hiTk-Otm4rjjf.js +0 -149
  32. package/dist/NmiThreeDsProvider-fLTB46dM-CF2ixVZj.js +0 -12
  33. package/dist/NuveiThreeDsProvider-BpWi_OJA-DpNk-jUR.js +0 -164
  34. package/dist/PayGLocalThreeDsProvider-DvA8Ng4u-CaEbpX2R.js +0 -117
  35. package/dist/PayabliThreeDsProvider-B34Ah8DW-B9F4JRAO.js +0 -12
  36. package/dist/SkyBankThreeDsProvider-0S5UKz-C-BkciCrGp.js +0 -12
  37. package/dist/ThreeDsPostAuthResponse.type-BFN9wqum-CaV_50Qh.js +0 -26
  38. package/dist/cxpay-2tlxyzUF-CXU4oVZi.js +0 -7
  39. package/dist/default-Sih0fC9J-l6oXyAYh.js +0 -7
  40. package/dist/ecentric-CN_DxZw6-CDBzRGVY.js +0 -7
  41. package/dist/epna-CuWMBne4-Co8ZvTur.js +0 -7
  42. package/dist/flashbanc-YdmE24o7-CYnxMwr_.js +0 -7
  43. package/dist/forter-CcQiwntl-Cc86pyZN.js +0 -61
  44. package/dist/fraudProvider.type-Bzd9orn2-D-DU7Fmr.js +0 -7
  45. package/dist/fraudStatus.type-BvRk9kiK-zQpibcxa.js +0 -24
  46. package/dist/gpayments-DVhgcMCp-D1cODCJ9.js +0 -7
  47. package/dist/metrics_global-DshQOuaW-T-FOilvV.js +0 -7
  48. package/dist/nmi-Qo4scfgJ-DVhwpAno.js +0 -7
  49. package/dist/nuvei-BFllJ45f-B-JXn8ur.js +0 -7
  50. package/dist/payabli-eGPashQz-Bx0aWlgU.js +0 -7
  51. package/dist/payglocal-WvM5v5cn-CsqWoNS0.js +0 -7
  52. package/dist/plugins/payfurl/react/src/components/PayfurlDropin.d.ts +0 -16
  53. package/dist/plugins/payfurl/react/src/index.d.ts +0 -6
  54. package/dist/skybank-174OmYCW-CxTyN679.js +0 -7
  55. package/dist/src/click2pay/ClickToPayOptions.type.d.ts +0 -30
  56. package/dist/src/sdk/checkout/checkoutProvider.type.d.ts +0 -66
  57. package/dist/src/sdk/fraud/fraudProvider.type.d.ts +0 -3
  58. package/dist/src/sdk/types/DropInOptions.type.d.ts +0 -80
  59. package/dist/src/sdk/types/GooglePayButtonOptions.type.d.ts +0 -10
  60. package/dist/src/sdk/types/NetworkTokenOptions.type.d.ts +0 -6
  61. package/dist/src/sdk/types/PaymentType.type.d.ts +0 -15
  62. package/dist/src/sdk/types/UpiOptions.type.d.ts +0 -12
@@ -0,0 +1,33 @@
1
+ var l = Object.defineProperty;
2
+ var d = (t, e, s) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
+ var h = (t, e, s) => d(t, typeof e != "symbol" ? e + "" : e, s);
4
+ import { O as c } from "./DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js";
5
+ import { e as g, a as m, s as u } from "./managedOrders-ojoMZ0Ab-B94-Nsp-.js";
6
+ import { o as p } from "./index-CL6hUU-f.js";
7
+ var { hideSpinner: f } = p(), S = class extends c {
8
+ constructor() {
9
+ super(...arguments);
10
+ h(this, "onDoAuthSuccess", (e, s) => {
11
+ var n;
12
+ let o = JSON.parse(s);
13
+ this.log(`[${this.getType()}][onDoAuthSuccess]`, o);
14
+ let a = ((n = this.options.clientParameters) == null ? void 0 : n.SiteId) || "", i = o.managedOrderToken;
15
+ !i || !g.test(a) ? this.onError(e, "3DS could not be started") : m(a).then(() => {
16
+ this.setChallengeFrameVisible(!0), f(), u(i, this.container, (r) => {
17
+ this.setChallengeFrameVisible(!1), r ? (this.log(`[${this.getType()}]: manageOrder failed`, r), this.onError(400, "3DS failed")) : this.onPostAuth();
18
+ });
19
+ }, (r) => {
20
+ this.log(`[${this.getType()}]: managedOrders.js failed to load`, r), this.onError(400, "3DS could not be started");
21
+ });
22
+ });
23
+ }
24
+ getType() {
25
+ return "Forter";
26
+ }
27
+ };
28
+ function b(t, e, s) {
29
+ return new S(t, e, s);
30
+ }
31
+ export {
32
+ b as default
33
+ };
@@ -1,9 +1,9 @@
1
- var o = Object.defineProperty;
2
- var l = (r, e, t) => e in r ? o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var h = (r, e, t) => l(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { N as u, Y as n, f as c, X as d, U as p, R as g, a as S, b as a, g as i, D } from "./index-BuqGcTyx.js";
5
- import { t as m } from "./DefaultThreeDsProvider-aIZr-d29-34xFFHE7.js";
6
- var y = { class: "mask" }, f = { class: "wrapper" }, U = ["src"], A = /* @__PURE__ */ d(/* @__PURE__ */ p({
1
+ var l = Object.defineProperty;
2
+ var o = (r, e, t) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var h = (r, e, t) => o(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { O as u } from "./DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js";
5
+ import { H as c, i as n, o as d, a as p, Z as g, c as S, X as i, _ as a, P as D, K as m } from "./index-CL6hUU-f.js";
6
+ var y = { class: "mask" }, f = { class: "wrapper" }, A = ["src"], C = /* @__PURE__ */ p(/* @__PURE__ */ g({
7
7
  __name: "GPayments",
8
8
  props: {
9
9
  url: {},
@@ -18,27 +18,24 @@ var y = { class: "mask" }, f = { class: "wrapper" }, U = ["src"], A = /* @__PURE
18
18
  height: `${e.height || 400}px`
19
19
  };
20
20
  }
21
- return (C, T) => (g(), S("div", y, [a("div", f, [a("div", {
21
+ return (U, R) => (m(), S("div", y, [i("div", f, [i("div", {
22
22
  class: "container",
23
- style: i([s(), {
23
+ style: a([s(), {
24
24
  padding: "0",
25
25
  margin: "0"
26
26
  }])
27
- }, [a("iframe", {
27
+ }, [i("iframe", {
28
28
  src: t.value,
29
- style: i(s())
30
- }, null, 12, U)], 4)])]));
29
+ style: a(s())
30
+ }, null, 12, A)], 4)])]));
31
31
  }
32
- }), [["__scopeId", "data-v-cf5aa816"]]), { hideSpinner: v } = c(), I = class extends m {
32
+ }), [["__scopeId", "data-v-cf5aa816"]]), { hideSpinner: v } = d(), T = class extends u {
33
33
  constructor() {
34
34
  super(...arguments);
35
35
  h(this, "onDoAuthSuccess", (e, t) => {
36
36
  let s = JSON.parse(t);
37
- if (this.log(`[${this.getType()}][onDoAuthSuccess]`, s), !s.transStatus) {
38
- this.onError(e, "No transStatus specified");
39
- return;
40
- }
41
- switch (s.transStatus) {
37
+ if (this.log(`[${this.getType()}][onDoAuthSuccess]`, s), !s.transStatus) this.onError(e, "No transStatus specified");
38
+ else switch (s.transStatus) {
42
39
  case "C":
43
40
  if (!s.acsURL) {
44
41
  this.onError(e, "Invalid Challenge Url");
@@ -52,15 +49,7 @@ var y = { class: "mask" }, f = { class: "wrapper" }, U = ["src"], A = /* @__PURE
52
49
  });
53
50
  h(this, "onInitAuthSuccess", (e, t) => {
54
51
  let s = JSON.parse(t);
55
- if (this.log(`[${this.getType()}][onInitAuthSuccess]`, s), !s.threeDSAuthURL) {
56
- this.onError(e, "No AuthUrl specified");
57
- return;
58
- }
59
- if (this.threeDSRequestorTransID = s.threeDSRequestorTransID, this.threeDSServerTransID = s.threeDSServerTransID, this.threeDSMonitorURL = s.threeDSMonitorURL, this.threeDSAuthURL = s.threeDSAuthURL, s.threeDsServerCallbackUrl) {
60
- this.initFrame(s.threeDsServerCallbackUrl);
61
- return;
62
- }
63
- this.onAuth(!1, "");
52
+ this.log(`[${this.getType()}][onInitAuthSuccess]`, s), s.threeDSAuthURL ? (this.threeDSRequestorTransID = s.threeDSRequestorTransID, this.threeDSServerTransID = s.threeDSServerTransID, this.threeDSMonitorURL = s.threeDSMonitorURL, this.threeDSAuthURL = s.threeDSAuthURL, s.threeDsServerCallbackUrl ? this.initFrame(s.threeDsServerCallbackUrl) : this.onAuth(!1, "")) : this.onError(e, "No AuthUrl specified");
64
53
  });
65
54
  }
66
55
  getType() {
@@ -68,9 +57,9 @@ var y = { class: "mask" }, f = { class: "wrapper" }, U = ["src"], A = /* @__PURE
68
57
  }
69
58
  doChallenge(e) {
70
59
  this.log(`[${this.getType()}][doChallenge]`), v(), this.setChallengeFrameVisible(!0);
71
- let { destroy: t } = u({
60
+ let { destroy: t } = c({
72
61
  el: document.body,
73
- component: A,
62
+ component: C,
74
63
  props: {
75
64
  url: e,
76
65
  width: 390,
@@ -92,6 +81,9 @@ var y = { class: "mask" }, f = { class: "wrapper" }, U = ["src"], A = /* @__PURE
92
81
  t.src = e, t.style.width = "1px", t.style.height = "1px", t.style.border = "0", document.body.appendChild(t);
93
82
  }
94
83
  };
84
+ function b(r, e, t) {
85
+ return new T(r, e, t);
86
+ }
95
87
  export {
96
- I as GPaymentsThreeDsProvider
88
+ b as default
97
89
  };