@payfurl/client 4.8.3 → 4.8.5

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 (31) hide show
  1. package/README.md +27 -4
  2. package/dist/sdk/{CxPayThreeDsProvider-DQHrNbtf.js → CxPayThreeDsProvider-BljTEbxB.js} +1 -1
  3. package/dist/sdk/{DefaultThreeDsProvider-P_cdnP1M.js → DefaultThreeDsProvider-DbKbN6Le.js} +1 -1
  4. package/dist/sdk/{EcentricThreeDsProvider-B_CTaoAa.js → EcentricThreeDsProvider-DjBTwEnR.js} +2 -2
  5. package/dist/sdk/{EpnaThreeDsProvider-DGmOGtwW.js → EpnaThreeDsProvider-KyUTPiU6.js} +1 -1
  6. package/dist/sdk/{FlashBancThreeDsProvider-B-_q0Wgx.js → FlashBancThreeDsProvider-DLWmBAJq.js} +1 -1
  7. package/dist/sdk/{GPaymentsThreeDsProvider-CNvS1TEr.js → GPaymentsThreeDsProvider-Bq63V0gC.js} +2 -2
  8. package/dist/sdk/{MetricsGlobalThreeDsProvider-bHlBG5TO.js → MetricsGlobalThreeDsProvider-Ctsa_ZKe.js} +2 -2
  9. package/dist/sdk/{NmiThreeDsProvider-pYfkqY6w.js → NmiThreeDsProvider-Cc9uoPqm.js} +1 -1
  10. package/dist/sdk/{NuveiThreeDsProvider-DW0A-UVJ.js → NuveiThreeDsProvider-BdJW8InS.js} +2 -2
  11. package/dist/sdk/{PayGLocalThreeDsProvider-BHwgDrtz.js → PayGLocalThreeDsProvider-CiKRmfOe.js} +2 -2
  12. package/dist/sdk/{PayWayAppleButton-DcRb1H14.js → PayWayAppleButton-D6R2TDKl.js} +1 -1
  13. package/dist/sdk/{PayabliThreeDsProvider-Bp9H8Pm4.js → PayabliThreeDsProvider-DEvztVTU.js} +1 -1
  14. package/dist/sdk/{SkyBankThreeDsProvider-DNIVJ3RD.js → SkyBankThreeDsProvider-R4NN8r-j.js} +1 -1
  15. package/dist/sdk/{cxpay-HDQIqLHk.js → cxpay-C-GgzidJ.js} +1 -1
  16. package/dist/sdk/{default-DLW8OfDP.js → default-BoeX8PJ8.js} +1 -1
  17. package/dist/sdk/{ecentric-lSpPCcHF.js → ecentric-CyZDsJgo.js} +1 -1
  18. package/dist/sdk/{epna-BkB_D01q.js → epna-D57kaC8G.js} +1 -1
  19. package/dist/sdk/{flashbanc-CHej1ZtB.js → flashbanc-orqI9uWg.js} +1 -1
  20. package/dist/sdk/{fraudStatus.type-Cq1nS1HG.js → fraudStatus.type-Bto5o7lY.js} +2337 -2256
  21. package/dist/sdk/{gpayments-CZAu93lM.js → gpayments-ZSCifuNl.js} +1 -1
  22. package/dist/sdk/{metrics_global-DLxl6iHN.js → metrics_global-CQH6PsUd.js} +1 -1
  23. package/dist/sdk/{nmi-nHY0rKqg.js → nmi-BZF7ZLQM.js} +1 -1
  24. package/dist/sdk/{nuvei-spbTTTAx.js → nuvei-C3bePsCN.js} +1 -1
  25. package/dist/sdk/{payabli-sfIGcqVb.js → payabli-DP-dvidH.js} +1 -1
  26. package/dist/sdk/payfurl.es.js +1 -1
  27. package/dist/sdk/payfurl.umd.js +14 -14
  28. package/dist/sdk/{payglocal-YM-pH-l6.js → payglocal-3JSRI28a.js} +1 -1
  29. package/dist/sdk/{payway_rest-BmoVSVNb.js → payway_rest-rG6pY8D4.js} +1 -1
  30. package/dist/sdk/{skybank-DLrBhuxw.js → skybank-xXIyqCCk.js} +1 -1
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -7,17 +7,18 @@ This iframe collects the payment details, which are then submitted to payFURL an
7
7
  The payment token is added as a hidden input to the form. For PayPal or Buy Now Pay Later payments, the payment details are converted to a transactionId, which is also added as a hidden input to the form.
8
8
  Payment detail collection is triggered when the form is submitted.
9
9
 
10
- ## Installation
11
- Use npm to install the PayFURL Client SDK:
10
+ ## Integrate with your app
11
+
12
+ If you want to use the published PayFURL Client SDK in your application, install it from npm:
12
13
 
13
14
  ```bash
14
- npm install @payfurl/client-sdk
15
+ npm install @payfurl/client
15
16
  ```
16
17
 
17
18
  Import the SDK into your application:
18
19
 
19
20
  ```javascript
20
- import payfurl from '@payfurl/client-sdk';
21
+ import payfurl from '@payfurl/client';
21
22
  ```
22
23
 
23
24
  ## Usage
@@ -39,4 +40,26 @@ To create a drop-in UI:
39
40
  pf.addDropIn('<id-of-div-container>', 20, 'AUD');
40
41
  ```
41
42
 
43
+ ## Local development
44
+
45
+ If you are working in this repository, install the project dependencies with:
46
+
47
+ ```bash
48
+ npm install
49
+ ```
50
+
51
+ ## Local testing
52
+
53
+ To serve the SDK locally for testing, run:
54
+
55
+ ```bash
56
+ npm run server
57
+ ```
58
+
59
+ This starts a local HTTP server on port `3001`.
60
+
61
+ To open the SDK main page in your browser, go to `http://localhost:3001/sdk.html`.
62
+
63
+ ## More info
64
+
42
65
  For more thorough documentation, visit [the PayFURL Client SDK docs](https://docs.payfurl.com/client_sdk/).
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-bHlBG5TO.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-Ctsa_ZKe.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "CxPay";
@@ -1,7 +1,7 @@
1
1
  var d = Object.defineProperty;
2
2
  var S = (n, e, s) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
3
3
  var r = (n, e, s) => S(n, typeof e != "symbol" ? e + "" : e, s);
4
- import { d as p, c as m, i as g, o as T, a as f, b as I, e as l, f as y, C as A, u as C, r as E, _ as v, T as _, h as R, j as P } from "./fraudStatus.type-Cq1nS1HG.js";
4
+ import { d as p, c as m, i as g, o as T, a as f, b as I, e as l, f as y, C as A, u as C, r as E, _ as v, T as _, h as R, j as P } from "./fraudStatus.type-Bto5o7lY.js";
5
5
  const U = { class: "mask" }, $ = { class: "wrapper" }, b = { class: "container" }, L = ["action"], M = ["value"], k = /* @__PURE__ */ p({
6
6
  __name: "ThreeDsChallenge",
7
7
  props: {
@@ -1,8 +1,8 @@
1
1
  var h = Object.defineProperty;
2
2
  var c = (s, t, e) => t in s ? h(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
3
  var l = (s, t, e) => c(s, typeof t != "symbol" ? t + "" : t, e);
4
- import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-P_cdnP1M.js";
5
- import { d as p, c as u, i as m, o as D, a as f, b as g, e as a, f as S, C as T, u as _, r as y, _ as C, h as v } from "./fraudStatus.type-Cq1nS1HG.js";
4
+ import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-DbKbN6Le.js";
5
+ import { d as p, c as u, i as m, o as D, a as f, b as g, e as a, f as S, C as T, u as _, r as y, _ as C, h as v } from "./fraudStatus.type-Bto5o7lY.js";
6
6
  const P = { class: "mask" }, I = { class: "wrapper" }, A = { class: "container" }, V = ["action"], E = ["value"], $ = /* @__PURE__ */ p({
7
7
  __name: "ecentric",
8
8
  props: {
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-bHlBG5TO.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-Ctsa_ZKe.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "EPNA";
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-bHlBG5TO.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-Ctsa_ZKe.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "FlashBanc";
@@ -1,8 +1,8 @@
1
1
  var l = Object.defineProperty;
2
2
  var c = (o, r, e) => r in o ? l(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
3
3
  var n = (o, r, e) => c(o, typeof r != "symbol" ? r + "" : r, e);
4
- import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-P_cdnP1M.js";
5
- import { d as u, c as p, i, a as g, b as m, e as a, n as h, _ as D, h as S } from "./fraudStatus.type-Cq1nS1HG.js";
4
+ import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-DbKbN6Le.js";
5
+ import { d as u, c as p, i, a as g, b as m, e as a, n as h, _ as D, h as S } from "./fraudStatus.type-Bto5o7lY.js";
6
6
  const y = { class: "mask" }, f = { class: "wrapper" }, _ = ["src"], C = /* @__PURE__ */ u({
7
7
  __name: "GPayments",
8
8
  props: {
@@ -1,8 +1,8 @@
1
1
  var E = Object.defineProperty;
2
2
  var _ = (h, o, t) => o in h ? E(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t;
3
3
  var m = (h, o, t) => _(h, typeof o != "symbol" ? o + "" : o, t);
4
- import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-P_cdnP1M.js";
5
- import { d as v, o as T, k as b, w as L, v as N, a as x, b as I, e as g, f as G, C as $, r as H, _ as M, s as p, h as k, j as F } from "./fraudStatus.type-Cq1nS1HG.js";
4
+ import { DefaultThreeDsProvider as A } from "./DefaultThreeDsProvider-DbKbN6Le.js";
5
+ import { d as v, o as T, k as b, w as L, v as N, a as x, b as I, e as g, f as G, C as $, r as H, _ as M, s as p, h as k, j as F } from "./fraudStatus.type-Bto5o7lY.js";
6
6
  const O = { class: "mask" }, U = { class: "wrapper" }, j = { class: "container" }, B = /* @__PURE__ */ v({
7
7
  __name: "MetricsGlobalThreeDsChallenge",
8
8
  emits: ["close", "submit"],
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-bHlBG5TO.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-Ctsa_ZKe.js";
2
2
  class t extends e {
3
3
  getType() {
4
4
  return "NMI";
@@ -1,8 +1,8 @@
1
1
  var u = Object.defineProperty;
2
2
  var p = (n, o, t) => o in n ? u(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t;
3
3
  var h = (n, o, t) => p(n, typeof o != "symbol" ? o + "" : o, t);
4
- import { d as m, j as d, o as g, a as D, b as S, e as l, _ as f, s as y, h as P } from "./fraudStatus.type-Cq1nS1HG.js";
5
- import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-P_cdnP1M.js";
4
+ import { d as m, j as d, o as g, a as D, b as S, e as l, _ as f, s as y, h as P } from "./fraudStatus.type-Bto5o7lY.js";
5
+ import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-DbKbN6Le.js";
6
6
  const C = { class: "mask" }, _ = /* @__PURE__ */ m({
7
7
  __name: "nuvei",
8
8
  props: {
@@ -1,5 +1,5 @@
1
- import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-P_cdnP1M.js";
2
- import { o as p, k as D, I as _, r as f, d as w, c as E, i as I, l as L, a as S, b as k, e as u, _ as R, s as c, h as U } from "./fraudStatus.type-Cq1nS1HG.js";
1
+ import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-DbKbN6Le.js";
2
+ import { o as p, k as D, I as _, r as f, d as w, c as E, i as I, l as L, a as S, b as k, e as u, _ as R, s as c, h as U } from "./fraudStatus.type-Bto5o7lY.js";
3
3
  const h = f(!1);
4
4
  function b(s, ...e) {
5
5
  h.value && console.log(s, e);
@@ -1,7 +1,7 @@
1
1
  var g = Object.defineProperty;
2
2
  var b = (o, t, i) => t in o ? g(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
3
3
  var e = (o, t, i) => b(o, typeof t != "symbol" ? t + "" : t, i);
4
- import { R as A, g as v, H as C } from "./fraudStatus.type-Cq1nS1HG.js";
4
+ import { R as A, g as v, H as C } from "./fraudStatus.type-Bto5o7lY.js";
5
5
  const d = {
6
6
  CHECKOUT: "CHECKOUT",
7
7
  CHARGE: "CHARGE"
@@ -1,4 +1,4 @@
1
- import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-bHlBG5TO.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-Ctsa_ZKe.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-bHlBG5TO.js";
1
+ import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-Ctsa_ZKe.js";
2
2
  class a extends e {
3
3
  getType() {
4
4
  return "SkyBank";
@@ -1,4 +1,4 @@
1
- import { CxPayThreeDsProvider as t } from "./CxPayThreeDsProvider-DQHrNbtf.js";
1
+ import { CxPayThreeDsProvider as t } from "./CxPayThreeDsProvider-BljTEbxB.js";
2
2
  function n(r, e, o) {
3
3
  return new t(r, e, o);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-P_cdnP1M.js";
1
+ import { DefaultThreeDsProvider as f } from "./DefaultThreeDsProvider-DbKbN6Le.js";
2
2
  function u(e, r, t) {
3
3
  return new f(e, r, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EcentricThreeDsProvider as n } from "./EcentricThreeDsProvider-B_CTaoAa.js";
1
+ import { EcentricThreeDsProvider as n } from "./EcentricThreeDsProvider-DjBTwEnR.js";
2
2
  function i(e, r, t) {
3
3
  return new n(e, r, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { EpnaThreeDsProvider as o } from "./EpnaThreeDsProvider-DGmOGtwW.js";
1
+ import { EpnaThreeDsProvider as o } from "./EpnaThreeDsProvider-KyUTPiU6.js";
2
2
  function a(e, r, n) {
3
3
  return new o(e, r, n);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { FlashBancThreeDsProvider as n } from "./FlashBancThreeDsProvider-B-_q0Wgx.js";
1
+ import { FlashBancThreeDsProvider as n } from "./FlashBancThreeDsProvider-DLWmBAJq.js";
2
2
  function t(r, e, a) {
3
3
  return new n(r, e, a);
4
4
  }