@payfurl/react-plugin 1.0.10 → 1.1.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 (32) hide show
  1. package/dist/{CxPayThreeDsProvider-DfJyYDV8-BtwTH6Vv.js → CxPayThreeDsProvider-7yh00m_f-BSAj-Zut.js} +1 -1
  2. package/dist/{DefaultThreeDsProvider-DvV6zVzO-DDYac6nh.js → DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js} +33 -33
  3. package/dist/{EcentricThreeDsProvider-DC4tQCJ4-43cDaJIh.js → EcentricThreeDsProvider-BjVGZlb9-BVFegP5X.js} +31 -31
  4. package/dist/{EpnaThreeDsProvider-D9tTUWnr-EX6HQmg0.js → EpnaThreeDsProvider-D-jEeUhd-CjqDQ6sC.js} +1 -1
  5. package/dist/{FlashBancThreeDsProvider-Dc_WgWyQ-D2rZd6ti.js → FlashBancThreeDsProvider-Cov5ey75-D0PVygYS.js} +1 -1
  6. package/dist/{GPaymentsThreeDsProvider-BAJmTSdj-BmLQFvQr.js → GPaymentsThreeDsProvider-DC48F4-s-CeTTM1oZ.js} +23 -22
  7. package/dist/MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js +146 -0
  8. package/dist/{NmiThreeDsProvider-X5Wb78Qq-D6zRtIK-.js → NmiThreeDsProvider-UdLXXANS-BJ_uuNCG.js} +1 -1
  9. package/dist/{NuveiThreeDsProvider-C7kP4S9V-CKRUbO6O.js → NuveiThreeDsProvider-Da4x--0n-2TdKYejN.js} +45 -45
  10. package/dist/{PayGLocalThreeDsProvider-pa38V_3c-BYX0XJ0I.js → PayGLocalThreeDsProvider-BnHoCS8k-DBBnV_0h.js} +28 -28
  11. package/dist/{PayWayAppleButton-DGBgHxM1--mVa2z-I.js → PayWayAppleButton-BnfVXscK-s3xK_XOH.js} +1 -1
  12. package/dist/{PayabliThreeDsProvider-CMCehiRL-Dsv7XOl0.js → PayabliThreeDsProvider-DputC3bO-NOKVgrTF.js} +1 -1
  13. package/dist/{SkyBankThreeDsProvider-BJXZbNSS-DjLydBX-.js → SkyBankThreeDsProvider-Dv1Vr_P5-BfAcbM_v.js} +1 -1
  14. package/dist/{cxpay-CmCXB_3H-CFTLoWfG.js → cxpay-DvznoDgN-7uW13wnL.js} +1 -1
  15. package/dist/{default-DwmL369u-CFn9gU9h.js → default-C5N621sA-vMshBhxy.js} +1 -1
  16. package/dist/{ecentric-CkX8jlMS-CIF3TL3n.js → ecentric-CAuUEG5b-BIT7b2FE.js} +1 -1
  17. package/dist/{epna-CQuWi-kj-Bp3oLoVZ.js → epna-diKGQ91--D_6ns_Yg.js} +1 -1
  18. package/dist/{flashbanc-ROJhNrEr-CkfPZX3E.js → flashbanc-D8UHX81f-DP7Mfbms.js} +1 -1
  19. package/dist/{gpayments-CMf-VGx8-woOHZ2Uf.js → gpayments-C4CSZg2r-CiQQN4E2.js} +1 -1
  20. package/dist/{index-DjmLClKy.js → index-CgZDGZz7.js} +5202 -5062
  21. package/dist/{metrics_global-DCnzJ8W3-owheVXbs.js → metrics_global-BawXVoSi-BbuxD9JD.js} +1 -1
  22. package/dist/nmi-LmUsZTYy-ByY_sPgd.js +7 -0
  23. package/dist/{nuvei-DY1eIaaI-CH37Pkov.js → nuvei-DXKVuVRr-BU6CdMvt.js} +1 -1
  24. package/dist/{payabli-DD1ZuFv1-GPn71phq.js → payabli-7PdId67j-C1ny_G1X.js} +1 -1
  25. package/dist/payfurl-react.es.js +1 -1
  26. package/dist/payfurl-react.umd.js +26 -26
  27. package/dist/{payglocal-CC7Mmvkg-B93wBeJX.js → payglocal-vL14oF4n-tNH_zCze.js} +1 -1
  28. package/dist/{payway_rest-C2bgT2mt-DZYerbzI.js → payway_rest-Ca-gqNG3-Dlq4bSLu.js} +1 -1
  29. package/dist/{skybank-DLUEQlDI-CALhFzpW.js → skybank-B8zqMe9Y-CvU0qUrH.js} +1 -1
  30. package/package.json +2 -2
  31. package/dist/MetricsGlobalThreeDsProvider-DiPpCK4e-CRZ470ug.js +0 -146
  32. package/dist/nmi-BAQHxhKe-DtWC05bC.js +0 -7
@@ -1,6 +1,6 @@
1
- import { b as d, P as p, Y as m, U as g, d as h, X as D, J as S, a as v, M as l } from "./index-DjmLClKy.js";
2
- import { DefaultThreeDsProvider as y, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-DvV6zVzO-DDYac6nh.js";
3
- var f = Object.defineProperty, I = (n, e, r) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r, c = (n, e, r) => I(n, typeof e != "symbol" ? e + "" : e, r);
1
+ import { c as d, y as p, z as m, d as h, a as g, e as D, Y as S, J as y, x as l } from "./index-CgZDGZz7.js";
2
+ import { DefaultThreeDsProvider as v, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
3
+ var f = Object.defineProperty, I = (n, e, a) => e in n ? f(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a, c = (n, e, a) => I(n, typeof e != "symbol" ? e + "" : e, a);
4
4
  const N = { class: "mask" }, C = /* @__PURE__ */ g({
5
5
  __name: "nuvei",
6
6
  props: {
@@ -20,15 +20,15 @@ const N = { class: "mask" }, C = /* @__PURE__ */ g({
20
20
  country: {}
21
21
  },
22
22
  setup(n) {
23
- const { hideSpinner: e, showSpinner: r } = h(), s = n;
23
+ const { hideSpinner: e, showSpinner: a } = h(), s = n;
24
24
  D(() => {
25
- r();
25
+ a();
26
26
  const t = document.createElement("script");
27
27
  t.type = "text/javascript", t.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", t.onload = () => {
28
- const a = new MutationObserver(function() {
29
- document.getElementsByClassName("sfcModal-dialog")[0] && (e(), a.disconnect());
28
+ const r = new MutationObserver(function() {
29
+ document.getElementsByClassName("sfcModal-dialog")[0] && (e(), r.disconnect());
30
30
  }), i = { childList: !0 }, u = document.querySelector("body");
31
- a.observe(u, i), o();
31
+ r.observe(u, i), o();
32
32
  }, document.head.appendChild(t);
33
33
  });
34
34
  function o() {
@@ -67,53 +67,53 @@ const N = { class: "mask" }, C = /* @__PURE__ */ g({
67
67
  email: s.email,
68
68
  country: s.country
69
69
  }
70
- }, function(a) {
71
- window.postMessage({ status: "3ds_challenge_complete", cres: a }, "*");
70
+ }, function(r) {
71
+ window.postMessage({ status: "3ds_challenge_complete", cres: r }, "*");
72
72
  });
73
73
  }
74
- return (t, a) => (v(), S("div", N, a[0] || (a[0] = [
74
+ return (t, r) => (S(), y("div", N, [...r[0] || (r[0] = [
75
75
  l("div", { class: "wrapper" }, [
76
76
  l("div", { class: "container" })
77
77
  ], -1)
78
- ])));
78
+ ])]));
79
79
  }
80
- }), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: b } = h();
81
- class A extends y {
80
+ }), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: E } = h();
81
+ class x extends v {
82
82
  constructor() {
83
- super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, r) => {
83
+ super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, a) => {
84
84
  var s, o;
85
- this.closeChallenge(), b();
86
- const t = JSON.parse(r);
85
+ this.closeChallenge(), E();
86
+ const t = JSON.parse(a);
87
87
  t.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(t) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, t), (o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" }));
88
- }), c(this, "onDoAuthSuccess", (e, r) => {
88
+ }), c(this, "onDoAuthSuccess", (e, a) => {
89
89
  var s, o, t;
90
- const a = JSON.parse(r);
91
- if (this.log(`[${this.getType()}][onDoAuthSuccess]`, a), !a.transStatus || !a.authenticationValue) {
90
+ const r = JSON.parse(a);
91
+ if (this.log(`[${this.getType()}][onDoAuthSuccess]`, r), !r.transStatus || !r.authenticationValue) {
92
92
  this.onError(e, "No transStatus specified");
93
93
  return;
94
94
  }
95
- switch (a.transStatus) {
95
+ switch (r.transStatus) {
96
96
  case "C":
97
- this.doNuveiChallenge(a.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (o = this.threeDsProcessor) == null ? void 0 : o.getPaymentInfo());
97
+ this.doNuveiChallenge(r.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (o = this.threeDsProcessor) == null ? void 0 : o.getPaymentInfo());
98
98
  break;
99
99
  default:
100
- this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + a.transStatus), (t = this.threeDsProcessor) == null || t.onSuccess({
101
- threeDSServerTransID: a.threeDSServerTransID,
100
+ this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + r.transStatus), (t = this.threeDsProcessor) == null || t.onSuccess({
101
+ threeDSServerTransID: r.threeDSServerTransID,
102
102
  threeDSRequestorTransID: "",
103
- acsRenderingType: a.acsRenderingType,
104
- acsTransID: a.acsTransID,
105
- authenticationType: a.authenticationType,
106
- authenticationValue: a.authenticationValue,
103
+ acsRenderingType: r.acsRenderingType,
104
+ acsTransID: r.acsTransID,
105
+ authenticationType: r.authenticationType,
106
+ authenticationValue: r.authenticationValue,
107
107
  challengeCancel: "",
108
- dsTransID: a.dsTransID,
109
- eci: a.eci,
108
+ dsTransID: r.dsTransID,
109
+ eci: r.eci,
110
110
  interactionCounter: "",
111
111
  messageCategory: "",
112
- messageExtension: a.messageExtension,
113
- messageType: a.messageType,
114
- messageVersion: a.messageVersion,
115
- transStatus: a.transStatus,
116
- transStatusReason: a.transStatusReason
112
+ messageExtension: r.messageExtension,
113
+ messageType: r.messageType,
114
+ messageVersion: r.messageVersion,
115
+ transStatus: r.transStatus,
116
+ transStatusReason: r.transStatusReason
117
117
  });
118
118
  break;
119
119
  }
@@ -123,8 +123,8 @@ class A extends y {
123
123
  return "Nuvei";
124
124
  }
125
125
  onPreAuth() {
126
- var e, r;
127
- this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (r = this.threeDsProcessor) == null || r.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
126
+ var e, a;
127
+ this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (a = this.threeDsProcessor) == null || a.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
128
128
  var o;
129
129
  (o = this.threeDsProcessor) == null || o.setPaymentInfo(s), super.onPreAuth();
130
130
  }, () => {
@@ -142,27 +142,27 @@ class A extends y {
142
142
  xid: this._paResPayload.xid
143
143
  }, this.onSuccess, this.onError);
144
144
  }
145
- doNuveiChallenge(e, r, s) {
145
+ doNuveiChallenge(e, a, s) {
146
146
  var o;
147
147
  const t = JSON.parse(e);
148
- (t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: "3D Secure failed" })), r && (t.firstName = r.firstName, t.lastName = r.lastName, t.email = r.email, t.country = r.country), s && (t.cardNumber = s.cardNumber, t.cardHolderName = s.cardholder || "", t.expirationMonth = s.expiryDate.substring(2, 4), t.expirationYear = s.expiryDate.substring(0, 2), t.CVV = s.ccv);
149
- const { destroy: a } = p({
148
+ (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), s && (t.cardNumber = s.cardNumber, t.cardHolderName = s.cardholder || "", t.expirationMonth = s.expiryDate.substring(2, 4), t.expirationYear = s.expiryDate.substring(0, 2), t.CVV = s.ccv);
149
+ const { destroy: r } = p({
150
150
  el: document.body,
151
151
  component: _,
152
152
  props: t,
153
153
  on: {
154
154
  close: () => {
155
155
  var i;
156
- a(), this.threeDSDestroy = () => {
156
+ r(), this.threeDSDestroy = () => {
157
157
  }, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
158
158
  }
159
159
  }
160
160
  });
161
- this.threeDSDestroy = a;
161
+ this.threeDSDestroy = r;
162
162
  }
163
163
  messageHandler(e) {
164
- var r, s, o;
165
- if ((r = e == null ? void 0 : e.data) != null && r.status) {
164
+ var a, s, o;
165
+ if ((a = e == null ? void 0 : e.data) != null && a.status) {
166
166
  if (e.data.status === P) {
167
167
  this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), e.stopPropagation(), this.onAuth(!0, "");
168
168
  return;
@@ -172,5 +172,5 @@ class A extends y {
172
172
  }
173
173
  }
174
174
  export {
175
- A as NuveiThreeDsProvider
175
+ x as NuveiThreeDsProvider
176
176
  };
@@ -1,57 +1,57 @@
1
- import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-DvV6zVzO-DDYac6nh.js";
2
- import { b as c, P as y, Y as C, n as h, U as w, o as E, X as m, l as p, J as I, a as L, M as g, h as S } from "./index-DjmLClKy.js";
3
- const u = h(!1);
4
- function k(r, ...e) {
5
- u.value && console.log(r, e);
1
+ import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
2
+ import { c, y as C, z as w, a as I, n as D, I as E, u as L, e as m, h as p, Y as S, J as k, x as g, f as R, B as x } from "./index-CgZDGZz7.js";
3
+ const h = D(!1);
4
+ function $(r, ...e) {
5
+ h.value && console.log(r, e);
6
6
  }
7
- function D(r) {
7
+ function v(r) {
8
8
  var e, t;
9
- (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (u.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
9
+ (e = r == null ? void 0 : r.data) != null && e.status && r.data.status === R && (h.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
10
10
  }
11
- function R() {
11
+ function b() {
12
12
  return m(() => {
13
- window.addEventListener("message", D);
13
+ window.addEventListener("message", v);
14
14
  }), p(() => {
15
- window.removeEventListener("message", D);
15
+ window.removeEventListener("message", v);
16
16
  }), {
17
- debug: u,
18
- logMessage: k
17
+ debug: h,
18
+ logMessage: $
19
19
  };
20
20
  }
21
- const b = { class: "modal-mask" }, U = { class: "modal-wrapper" }, A = ["src"], M = /* @__PURE__ */ w({
21
+ const A = { class: "modal-mask" }, U = { class: "modal-wrapper" }, _ = ["src"], G = /* @__PURE__ */ I({
22
22
  __name: "PayGLocalThreeDsChallenge",
23
23
  props: {
24
24
  url: {}
25
25
  },
26
26
  emits: ["close"],
27
27
  setup(r, { emit: e }) {
28
- const { logMessage: t } = R(), a = r, s = e, o = h(a.url);
29
- h(null), E(() => a.url, (l) => {
28
+ const { logMessage: t } = b(), a = r, s = e, o = D(a.url), n = E(() => x(o.value) ? o.value : "");
29
+ L(() => a.url, (l) => {
30
30
  o.value = l;
31
31
  }), m(() => {
32
- window.addEventListener("message", n);
32
+ window.addEventListener("message", u);
33
33
  }), p(() => {
34
- window.removeEventListener("message", n);
34
+ window.removeEventListener("message", u);
35
35
  });
36
- function n(l) {
36
+ function u(l) {
37
37
  var i;
38
38
  if (t("PayGLocalThreeDsChallenge: Message received", l.data), !((i = l == null ? void 0 : l.data) != null && i["payglocal-token"])) return;
39
39
  const d = l.data["payglocal-token"];
40
40
  t("Token received", d);
41
- const v = d.split(".")[1], P = window.atob(v), T = JSON.parse(P);
42
- s("close", T);
41
+ const T = d.split(".")[1], y = window.atob(T), P = JSON.parse(y);
42
+ s("close", P);
43
43
  }
44
- return (l, i) => (L(), I("div", b, [
44
+ return (l, i) => (S(), k("div", A, [
45
45
  g("div", U, [
46
46
  g("iframe", {
47
- src: o.value,
47
+ src: n.value,
48
48
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
49
- }, null, 8, A)
49
+ }, null, 8, _)
50
50
  ])
51
51
  ]));
52
52
  }
53
- }), $ = /* @__PURE__ */ C(M, [["__scopeId", "data-v-6f042298"]]);
54
- class G extends f {
53
+ }), M = /* @__PURE__ */ w(G, [["__scopeId", "data-v-0699f67d"]]);
54
+ class z extends f {
55
55
  getType() {
56
56
  return "PayGLocal";
57
57
  }
@@ -81,9 +81,9 @@ class G extends f {
81
81
  c(this.container, "3D Secure URL is missing");
82
82
  return;
83
83
  }
84
- const { destroy: t } = y({
84
+ const { destroy: t } = C({
85
85
  el: document.body,
86
- component: $,
86
+ component: M,
87
87
  props: {
88
88
  url: e
89
89
  },
@@ -123,5 +123,5 @@ class G extends f {
123
123
  }
124
124
  }
125
125
  export {
126
- G as PayGLocalThreeDsProvider
126
+ z as PayGLocalThreeDsProvider
127
127
  };
@@ -1,4 +1,4 @@
1
- import { x as b, F as v, k as g } from "./index-DjmLClKy.js";
1
+ import { U as b, R as v, _ as g } from "./index-CgZDGZz7.js";
2
2
  var A = Object.defineProperty, C = (n, t, e) => t in n ? A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, i = (n, t, e) => C(n, typeof t != "symbol" ? t + "" : t, e);
3
3
  const h = {
4
4
  CHECKOUT: "CHECKOUT",
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DiPpCK4e-CRZ470ug.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "Payabli";
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-DiPpCK4e-CRZ470ug.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-D1adNHH6-59d0yjP1.js";
2
2
  class s extends e {
3
3
  getType() {
4
4
  return "SkyBank";
@@ -1,4 +1,4 @@
1
- import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-DfJyYDV8-BtwTH6Vv.js";
1
+ import { CxPayThreeDsProvider as n } from "./CxPayThreeDsProvider-7yh00m_f-BSAj-Zut.js";
2
2
  function t(r, e, a) {
3
3
  return new n(r, e, a);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-DvV6zVzO-DDYac6nh.js";
1
+ import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-Bs-1jjDE-BR4j-f3Q.js";
2
2
  function a(e, r, t) {
3
3
  return new o(e, r, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-DC4tQCJ4-43cDaJIh.js";
1
+ import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-BjVGZlb9-BVFegP5X.js";
2
2
  function o(r, e, t) {
3
3
  return new i(r, e, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-D9tTUWnr-EX6HQmg0.js";
1
+ import { EpnaThreeDsProvider as n } from "./EpnaThreeDsProvider-D-jEeUhd-CjqDQ6sC.js";
2
2
  function t(r, e, a) {
3
3
  return new n(r, e, a);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-Dc_WgWyQ-D2rZd6ti.js";
1
+ import { FlashBancThreeDsProvider as a } from "./FlashBancThreeDsProvider-Cov5ey75-D0PVygYS.js";
2
2
  function o(r, e, t) {
3
3
  return new a(r, e, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-BAJmTSdj-BmLQFvQr.js";
1
+ import { GPaymentsThreeDsProvider as a } from "./GPaymentsThreeDsProvider-DC48F4-s-CeTTM1oZ.js";
2
2
  function o(e, r, t) {
3
3
  return new a(e, r, t);
4
4
  }