@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.
- package/README.md +27 -4
- package/dist/sdk/{CxPayThreeDsProvider-DQHrNbtf.js → CxPayThreeDsProvider-BljTEbxB.js} +1 -1
- package/dist/sdk/{DefaultThreeDsProvider-P_cdnP1M.js → DefaultThreeDsProvider-DbKbN6Le.js} +1 -1
- package/dist/sdk/{EcentricThreeDsProvider-B_CTaoAa.js → EcentricThreeDsProvider-DjBTwEnR.js} +2 -2
- package/dist/sdk/{EpnaThreeDsProvider-DGmOGtwW.js → EpnaThreeDsProvider-KyUTPiU6.js} +1 -1
- package/dist/sdk/{FlashBancThreeDsProvider-B-_q0Wgx.js → FlashBancThreeDsProvider-DLWmBAJq.js} +1 -1
- package/dist/sdk/{GPaymentsThreeDsProvider-CNvS1TEr.js → GPaymentsThreeDsProvider-Bq63V0gC.js} +2 -2
- package/dist/sdk/{MetricsGlobalThreeDsProvider-bHlBG5TO.js → MetricsGlobalThreeDsProvider-Ctsa_ZKe.js} +2 -2
- package/dist/sdk/{NmiThreeDsProvider-pYfkqY6w.js → NmiThreeDsProvider-Cc9uoPqm.js} +1 -1
- package/dist/sdk/{NuveiThreeDsProvider-DW0A-UVJ.js → NuveiThreeDsProvider-BdJW8InS.js} +2 -2
- package/dist/sdk/{PayGLocalThreeDsProvider-BHwgDrtz.js → PayGLocalThreeDsProvider-CiKRmfOe.js} +2 -2
- package/dist/sdk/{PayWayAppleButton-DcRb1H14.js → PayWayAppleButton-D6R2TDKl.js} +1 -1
- package/dist/sdk/{PayabliThreeDsProvider-Bp9H8Pm4.js → PayabliThreeDsProvider-DEvztVTU.js} +1 -1
- package/dist/sdk/{SkyBankThreeDsProvider-DNIVJ3RD.js → SkyBankThreeDsProvider-R4NN8r-j.js} +1 -1
- package/dist/sdk/{cxpay-HDQIqLHk.js → cxpay-C-GgzidJ.js} +1 -1
- package/dist/sdk/{default-DLW8OfDP.js → default-BoeX8PJ8.js} +1 -1
- package/dist/sdk/{ecentric-lSpPCcHF.js → ecentric-CyZDsJgo.js} +1 -1
- package/dist/sdk/{epna-BkB_D01q.js → epna-D57kaC8G.js} +1 -1
- package/dist/sdk/{flashbanc-CHej1ZtB.js → flashbanc-orqI9uWg.js} +1 -1
- package/dist/sdk/{fraudStatus.type-Cq1nS1HG.js → fraudStatus.type-Bto5o7lY.js} +2337 -2256
- package/dist/sdk/{gpayments-CZAu93lM.js → gpayments-ZSCifuNl.js} +1 -1
- package/dist/sdk/{metrics_global-DLxl6iHN.js → metrics_global-CQH6PsUd.js} +1 -1
- package/dist/sdk/{nmi-nHY0rKqg.js → nmi-BZF7ZLQM.js} +1 -1
- package/dist/sdk/{nuvei-spbTTTAx.js → nuvei-C3bePsCN.js} +1 -1
- package/dist/sdk/{payabli-sfIGcqVb.js → payabli-DP-dvidH.js} +1 -1
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +14 -14
- package/dist/sdk/{payglocal-YM-pH-l6.js → payglocal-3JSRI28a.js} +1 -1
- package/dist/sdk/{payway_rest-BmoVSVNb.js → payway_rest-rG6pY8D4.js} +1 -1
- package/dist/sdk/{skybank-DLrBhuxw.js → skybank-xXIyqCCk.js} +1 -1
- 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
|
-
##
|
|
11
|
-
|
|
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
|
|
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
|
|
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,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-
|
|
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: {
|
package/dist/sdk/{EcentricThreeDsProvider-B_CTaoAa.js → EcentricThreeDsProvider-DjBTwEnR.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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: {
|
package/dist/sdk/{GPaymentsThreeDsProvider-CNvS1TEr.js → GPaymentsThreeDsProvider-Bq63V0gC.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,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-
|
|
5
|
-
import { DefaultThreeDsProvider as T, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as I } from "./DefaultThreeDsProvider-
|
|
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: {
|
package/dist/sdk/{PayGLocalThreeDsProvider-BHwgDrtz.js → PayGLocalThreeDsProvider-CiKRmfOe.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-
|
|
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-
|
|
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-
|
|
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"
|