@payfurl/react-plugin 1.2.7 → 1.3.2

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 (47) hide show
  1. package/dist/ApplePayButtonOptions.type-BvRk9kiK-BzeTPT7u.js +9 -0
  2. package/dist/{DefaultThreeDsProvider-JPe2W_JG-bH2sJs83.js → DefaultThreeDsProvider-ChnRLzKI-DO_0wVUN.js} +76 -81
  3. package/dist/MetricsGlobalThreeDsProvider-DW-gsG6q-BYJaEFfc.js +148 -0
  4. package/dist/{PayWayAppleButton-DVoTz5Nn-1KU6o3AT.js → PayWayAppleButton-7Gi89Gij-aVF9l1aY.js} +2 -2
  5. package/dist/cxpay-CGIndAf1-BblBk3-x.js +15 -0
  6. package/dist/default-CgpOZU3K-CKDCWPRX.js +7 -0
  7. package/dist/{EcentricThreeDsProvider-Ddy0Fn5h-BDuqXhye.js → ecentric-F3nn_MwX-B9dBXDe_.js} +27 -24
  8. package/dist/epna-uXpYJKOA-B_n5GhIL.js +15 -0
  9. package/dist/flashbanc-9XKA8Wrl-CbS2P90X.js +15 -0
  10. package/dist/forter-Bm2GJ2Hs-BABaUju5.js +60 -0
  11. package/dist/{GPaymentsThreeDsProvider-BIku3bZP-DBcRTyGA.js → gpayments-DsXj9xbu-BOBji_fr.js} +15 -13
  12. package/dist/{index-BIgCRujv.js → index-CACzT3Rb.js} +3332 -3191
  13. package/dist/metrics_global-L-Rm7bcl-DYSYHN2y.js +7 -0
  14. package/dist/nmi-BzHX8wqW-Bq6oBsVL.js +15 -0
  15. package/dist/{NuveiThreeDsProvider-DMO_bgOI-DV1Uqhrk.js → nuvei-CS-nW8SB-v_HhomTx.js} +25 -23
  16. package/dist/payabli-C4YuB7Sr-BzB8PV73.js +15 -0
  17. package/dist/payfurl-react.es.js +1 -1
  18. package/dist/payfurl-react.umd.js +18 -17
  19. package/dist/payglocal-Cy6Qd8ve-NfcHP9iv.js +120 -0
  20. package/dist/{payway_rest-CIjvQwcK-BcZGibTP.js → payway_rest-ZMjPv2si-Dd1VuLdw.js} +1 -1
  21. package/dist/skybank-C6ZmVyX6-DWxUPtI7.js +15 -0
  22. package/dist/src/sdk/types/DropInOptions.type.d.ts +11 -3
  23. package/package.json +2 -2
  24. package/dist/CxPayThreeDsProvider-DAAmw4ya-CDOUGiWG.js +0 -12
  25. package/dist/EpnaThreeDsProvider-Ng4Pmq0D-CwV4TNgl.js +0 -12
  26. package/dist/FlashBancThreeDsProvider-DFZG4u44-6TmQipNC.js +0 -12
  27. package/dist/MetricsGlobalThreeDsProvider-BMeP5IWW-DAZlcVCc.js +0 -135
  28. package/dist/NmiThreeDsProvider-CzRH7vrp-O5u5frkm.js +0 -12
  29. package/dist/PayGLocalThreeDsProvider-DDqJz4iC-DBo2F6p3.js +0 -116
  30. package/dist/PayabliThreeDsProvider-BWStZH6E-uKWOTuW-.js +0 -12
  31. package/dist/SkyBankThreeDsProvider-U6pzbMJY-B9F5E7be.js +0 -12
  32. package/dist/ThreeDsPostAuthResponse.type-BFN9wqum-CaV_50Qh.js +0 -26
  33. package/dist/cxpay-BnpH4Q1F-CqZusCD1.js +0 -7
  34. package/dist/default-B8ZcE4ja-Df8foed4.js +0 -7
  35. package/dist/ecentric-DwR-gEaW-D7EJixv8.js +0 -7
  36. package/dist/epna-BtQr8Mlq-CdoA1Foj.js +0 -7
  37. package/dist/flashbanc-BNEJGUff-DX-o_bsN.js +0 -7
  38. package/dist/forter-D0-GGAlC-B2I1zsvz.js +0 -41
  39. package/dist/fraudProvider.type-Bzd9orn2-D-DU7Fmr.js +0 -7
  40. package/dist/fraudStatus.type-BvRk9kiK-zQpibcxa.js +0 -24
  41. package/dist/gpayments-QZCq0_0y-CChyao60.js +0 -7
  42. package/dist/metrics_global--mOHedmQ-BSlYrRxx.js +0 -7
  43. package/dist/nmi-BtKpUtad-RbToUxAS.js +0 -7
  44. package/dist/nuvei-BOfZN_Em-qgP8-fGC.js +0 -7
  45. package/dist/payabli-BfZ7IhDq-DQWCjgwk.js +0 -7
  46. package/dist/payglocal-CpEbJSpn-mfs00hdI.js +0 -7
  47. package/dist/skybank-DWPrfoAb-nBPi7AXK.js +0 -7
@@ -0,0 +1,7 @@
1
+ import { w as n } from "./MetricsGlobalThreeDsProvider-DW-gsG6q-BYJaEFfc.js";
2
+ function f(t, r, e) {
3
+ return new n(t, r, e);
4
+ }
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,15 @@
1
+ import { w as n } from "./MetricsGlobalThreeDsProvider-DW-gsG6q-BYJaEFfc.js";
2
+ var o = class extends n {
3
+ getType() {
4
+ return "NMI";
5
+ }
6
+ getDomain() {
7
+ return "secure.nmi.com";
8
+ }
9
+ };
10
+ function a(e, r, t) {
11
+ return new o(e, r, t);
12
+ }
13
+ export {
14
+ a as default
15
+ };
@@ -1,9 +1,9 @@
1
- var u = Object.defineProperty;
2
- var p = (n, s, a) => s in n ? u(n, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[s] = a;
3
- var c = (n, s, a) => p(n, typeof s != "symbol" ? s + "" : s, a);
4
- import { h as m, N as g, q as l, X as D, U as S, i as y, R as P, a as T, b as h } from "./index-BIgCRujv.js";
5
- import { t as f } from "./DefaultThreeDsProvider-JPe2W_JG-bH2sJs83.js";
6
- var v = { class: "mask" }, N = /* @__PURE__ */ D(/* @__PURE__ */ S({
1
+ var p = Object.defineProperty;
2
+ var m = (n, s, a) => s in n ? p(n, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[s] = a;
3
+ var h = (n, s, a) => m(n, typeof s != "symbol" ? s + "" : s, a);
4
+ import { h as g, J as c, F as D, $ as d, Q as S, K as y, s as P, V as f, a as T, Y as l } from "./index-CACzT3Rb.js";
5
+ import { O as v } from "./DefaultThreeDsProvider-ChnRLzKI-DO_0wVUN.js";
6
+ var I = { class: "mask" }, N = /* @__PURE__ */ S(/* @__PURE__ */ y({
7
7
  __name: "nuvei",
8
8
  props: {
9
9
  threeDSServerTransID: {},
@@ -22,15 +22,15 @@ var v = { class: "mask" }, N = /* @__PURE__ */ D(/* @__PURE__ */ S({
22
22
  country: {}
23
23
  },
24
24
  setup(n) {
25
- let { hideSpinner: s, showSpinner: a } = l(), e = n;
26
- y(() => {
25
+ let { hideSpinner: s, showSpinner: a } = d(), e = n;
26
+ P(() => {
27
27
  a();
28
28
  let r = document.createElement("script");
29
29
  r.type = "text/javascript", r.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", r.onload = () => {
30
30
  let o = new MutationObserver(function() {
31
31
  document.getElementsByClassName("sfcModal-dialog")[0] && (s(), o.disconnect());
32
- }), i = { childList: !0 }, d = document.querySelector("body");
33
- o.observe(d, i), t();
32
+ }), i = { childList: !0 }, u = document.querySelector("body");
33
+ o.observe(u, i), t();
34
34
  }, document.head.appendChild(r);
35
35
  });
36
36
  function t() {
@@ -64,19 +64,19 @@ var v = { class: "mask" }, N = /* @__PURE__ */ D(/* @__PURE__ */ S({
64
64
  }, "*");
65
65
  });
66
66
  }
67
- return (r, o) => (P(), T("div", v, [...o[0] || (o[0] = [h("div", { class: "wrapper" }, [h("div", { class: "container" })], -1)])]));
67
+ return (r, o) => (f(), T("div", I, [...o[0] || (o[0] = [l("div", { class: "wrapper" }, [l("div", { class: "container" })], -1)])]));
68
68
  }
69
- }), [["__scopeId", "data-v-3b52be97"]]), { hideSpinner: I } = l(), V = class extends f {
69
+ }), [["__scopeId", "data-v-3b52be97"]]), { hideSpinner: C } = d(), V = class extends v {
70
70
  constructor() {
71
71
  super(...arguments);
72
- c(this, "_paResPayload", null);
73
- c(this, "onSuccess", (s, a) => {
72
+ h(this, "_paResPayload", null);
73
+ h(this, "onSuccess", (s, a) => {
74
74
  var t, r;
75
- this.closeChallenge(), I();
75
+ this.closeChallenge(), C();
76
76
  let e = JSON.parse(a);
77
- e.authenticationValue ? (t = this.threeDsProcessor) == null || t.onSuccess(e) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, e), (r = this.threeDsProcessor) == null || r.onError({ error: "3D Secure failed" }));
77
+ e.authenticationValue ? (t = this.threeDsProcessor) == null || t.onSuccess(e) : (this.log(`[${this.getType()}][_onSuccess] ${c}`, e), (r = this.threeDsProcessor) == null || r.onError({ error: c }));
78
78
  });
79
- c(this, "onDoAuthSuccess", (s, a) => {
79
+ h(this, "onDoAuthSuccess", (s, a) => {
80
80
  var t, r, o;
81
81
  let e = JSON.parse(a);
82
82
  if (this.log(`[${this.getType()}][onDoAuthSuccess]`, e), !e.transStatus || !e.authenticationValue) {
@@ -106,7 +106,6 @@ var v = { class: "mask" }, N = /* @__PURE__ */ D(/* @__PURE__ */ S({
106
106
  transStatus: e.transStatus,
107
107
  transStatusReason: e.transStatusReason
108
108
  });
109
- break;
110
109
  }
111
110
  });
112
111
  }
@@ -119,7 +118,7 @@ var v = { class: "mask" }, N = /* @__PURE__ */ D(/* @__PURE__ */ S({
119
118
  var t;
120
119
  (t = this.threeDsProcessor) == null || t.setPaymentInfo(e), super.onPreAuth();
121
120
  }, () => {
122
- m(this.container, "Unable to get card information");
121
+ g(this.container, "Unable to get card information");
123
122
  }) : super.onPreAuth();
124
123
  }
125
124
  onPostAuth() {
@@ -136,14 +135,14 @@ var v = { class: "mask" }, N = /* @__PURE__ */ D(/* @__PURE__ */ S({
136
135
  doNuveiChallenge(s, a, e) {
137
136
  var o;
138
137
  let t = JSON.parse(s);
139
- (t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })), a && (t.firstName = a.firstName, t.lastName = a.lastName, t.email = a.email, t.country = a.country), e && (t.cardNumber = e.cardNumber, t.cardHolderName = e.cardholder || "", t.expirationMonth = e.expiryDate.substring(2, 4), t.expirationYear = e.expiryDate.substring(0, 2), t.CVV = e.ccv);
140
- let { destroy: r } = g({
138
+ (t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: c })), a && (t.firstName = a.firstName, t.lastName = a.lastName, t.email = a.email, t.country = a.country), e && (t.cardNumber = e.cardNumber, t.cardHolderName = e.cardholder || "", t.expirationMonth = e.expiryDate.substring(2, 4), t.expirationYear = e.expiryDate.substring(0, 2), t.CVV = e.ccv), this.setChallengeFrameVisible(!0);
139
+ let { destroy: r } = D({
141
140
  el: document.body,
142
141
  component: N,
143
142
  props: t,
144
143
  on: { close: () => {
145
144
  var i;
146
- r(), this.threeDSDestroy = () => {
145
+ r(), this.setChallengeFrameVisible(!1), this.threeDSDestroy = () => {
147
146
  }, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
148
147
  } }
149
148
  });
@@ -160,6 +159,9 @@ var v = { class: "mask" }, N = /* @__PURE__ */ D(/* @__PURE__ */ S({
160
159
  }
161
160
  }
162
161
  };
162
+ function A(n, s, a) {
163
+ return new V(n, s, a);
164
+ }
163
165
  export {
164
- V as NuveiThreeDsProvider
166
+ A as default
165
167
  };
@@ -0,0 +1,15 @@
1
+ import { w as n } from "./MetricsGlobalThreeDsProvider-DW-gsG6q-BYJaEFfc.js";
2
+ var r = class extends n {
3
+ getType() {
4
+ return "Payabli";
5
+ }
6
+ getDomain() {
7
+ return "centavo.transactiongateway.com";
8
+ }
9
+ };
10
+ function c(t, e, a) {
11
+ return new r(t, e, a);
12
+ }
13
+ export {
14
+ c as default
15
+ };
@@ -1,4 +1,4 @@
1
- import { P as a } from "./index-BIgCRujv.js";
1
+ import { P as a } from "./index-CACzT3Rb.js";
2
2
  export {
3
3
  a as PayfurlDropin
4
4
  };