@payfurl/client 4.3.1 → 4.3.3
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/dist/sdk/{default-2f143068.mjs → default-060f306b.mjs} +1 -1
- package/dist/sdk/{ecentric-176b2940.mjs → ecentric-70c83465.mjs} +1 -1
- package/dist/sdk/{gpayments-70faa68a.mjs → gpayments-6381ba63.mjs} +1 -1
- package/dist/sdk/{main-b6f8ef8c.mjs → main-daca3805.mjs} +19 -15
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +7 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as v, r as A, o as C, a as y, c as R, b as c, e as b, C as U, u as w, p as k, f as N, _ as E, F as L, g as V } from "./main-
|
|
1
|
+
import { d as v, r as A, o as C, a as y, c as R, b as c, e as b, C as U, u as w, p as k, f as N, _ as E, F as L, g as V } from "./main-daca3805.mjs";
|
|
2
2
|
const M = (t) => (k("data-v-fa2e3c62"), t = t(), N(), t), q = { class: "mask" }, x = { class: "wrapper" }, O = { class: "container" }, F = /* @__PURE__ */ M(() => /* @__PURE__ */ c("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), J = ["action"], B = ["value"], $ = /* @__PURE__ */ v({
|
|
3
3
|
__name: "ThreeDsChallenge",
|
|
4
4
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as A, r as v, o as C, a as R, c as y, b as c, e as b, C as U, u as k, p as V, f as w, _ as E, F as L, g as N } from "./main-
|
|
1
|
+
import { d as A, r as v, o as C, a as R, c as y, b as c, e as b, C as U, u as k, p as V, f as w, _ as E, F as L, g as N } from "./main-daca3805.mjs";
|
|
2
2
|
const M = (t) => (V("data-v-a55c9c23"), t = t(), w(), t), x = { class: "mask" }, F = { class: "wrapper" }, q = { class: "container" }, O = /* @__PURE__ */ M(() => /* @__PURE__ */ c("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), J = ["action"], B = ["value"], j = /* @__PURE__ */ A({
|
|
3
3
|
__name: "ecentric",
|
|
4
4
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as v, a as I, c as R, b as f, _ as g, g as y, H as D } from "./main-
|
|
1
|
+
import { d as v, a as I, c as R, b as f, _ as g, g as y, H as D } from "./main-daca3805.mjs";
|
|
2
2
|
import { getEmptySuccessThreeDsPostAuthResponse as U } from "./ThreeDsPostAuthResponse.type-3091950f.mjs";
|
|
3
3
|
const T = { class: "mask" }, k = { class: "wrapper" }, L = { class: "container" }, N = ["src"], b = /* @__PURE__ */ v({
|
|
4
4
|
__name: "GPayments",
|
|
@@ -3877,20 +3877,20 @@ const ql = {
|
|
|
3877
3877
|
apiUrl: ""
|
|
3878
3878
|
}, Jl = {
|
|
3879
3879
|
baseUrl: "https://assets.payfurl.com",
|
|
3880
|
-
cssUrl: "https://assets.payfurl.com/v4.3.
|
|
3881
|
-
url: "https://assets.payfurl.com/v4.3.
|
|
3880
|
+
cssUrl: "https://assets.payfurl.com/v4.3.3/js/",
|
|
3881
|
+
url: "https://assets.payfurl.com/v4.3.3/iframe/index.html",
|
|
3882
3882
|
redirectUrl: "https://assets.payfurl.com/v{VERSION}/checkout/redirect.html",
|
|
3883
3883
|
apiUrl: "https://develop-api.payfurl.com"
|
|
3884
3884
|
}, Wl = {
|
|
3885
3885
|
baseUrl: "https://assets.payfurl.com",
|
|
3886
|
-
cssUrl: "https://assets.payfurl.com/v4.3.
|
|
3887
|
-
url: "https://assets.payfurl.com/v4.3.
|
|
3886
|
+
cssUrl: "https://assets.payfurl.com/v4.3.3/js/",
|
|
3887
|
+
url: "https://assets.payfurl.com/v4.3.3/iframe/index.html",
|
|
3888
3888
|
redirectUrl: "https://assets.payfurl.com/v{VERSION}/checkout/redirect.html",
|
|
3889
3889
|
apiUrl: "https://sandbox-api.payfurl.com"
|
|
3890
3890
|
}, Xl = {
|
|
3891
3891
|
baseUrl: "https://assets.payfurl.com",
|
|
3892
|
-
cssUrl: "https://assets.payfurl.com/v4.3.
|
|
3893
|
-
url: "https://assets.payfurl.com/v4.3.
|
|
3892
|
+
cssUrl: "https://assets.payfurl.com/v4.3.3/js/",
|
|
3893
|
+
url: "https://assets.payfurl.com/v4.3.3/iframe/index.html",
|
|
3894
3894
|
redirectUrl: "https://assets.payfurl.com/v{VERSION}/checkout/redirect.html",
|
|
3895
3895
|
apiUrl: "https://api.payfurl.com"
|
|
3896
3896
|
};
|
|
@@ -6327,7 +6327,7 @@ class Wu {
|
|
|
6327
6327
|
throw Y(t, "Invalid billing postal code"), new TypeError("Invalid billing postal code");
|
|
6328
6328
|
}
|
|
6329
6329
|
}
|
|
6330
|
-
const Xu = "@payfurl/client", Zu = "4.3.
|
|
6330
|
+
const Xu = "@payfurl/client", Zu = "4.3.3", ed = [
|
|
6331
6331
|
"dist/sdk"
|
|
6332
6332
|
], td = "./dist/sdk/payfurl.umd.js", sd = "./dist/sdk/payfurl.es.js", nd = "./dist/sdk/payfurl.d.ts", rd = {
|
|
6333
6333
|
".": {
|
|
@@ -6973,6 +6973,7 @@ class wd {
|
|
|
6973
6973
|
constructor() {
|
|
6974
6974
|
m(this, "container", null);
|
|
6975
6975
|
m(this, "form", null);
|
|
6976
|
+
m(this, "submit", null);
|
|
6976
6977
|
m(this, "environment", Te.LOCAL);
|
|
6977
6978
|
m(this, "debug", !1);
|
|
6978
6979
|
m(this, "config", Ii(Te.PRODUCTION));
|
|
@@ -7116,7 +7117,7 @@ class wd {
|
|
|
7116
7117
|
}
|
|
7117
7118
|
_initForm(t) {
|
|
7118
7119
|
var s;
|
|
7119
|
-
this.container = t, this.form = ((s = t == null ? void 0 : t.parentElement) == null ? void 0 : s.closest("form")) || null, this.form && this.form.addEventListener("submit", this._submitForm.bind(this));
|
|
7120
|
+
this.container = t, this.form = ((s = t == null ? void 0 : t.parentElement) == null ? void 0 : s.closest("form")) || null, this.form && (this.submit = this.form.querySelector('button[type="submit"]') || this.form.querySelector('input[type="submit"]'), this.submit ? this.submit.addEventListener("click", this._submitForm.bind(this)) : this.form.addEventListener("submit", this._submitForm.bind(this)));
|
|
7120
7121
|
}
|
|
7121
7122
|
_setToken(t, s = "token") {
|
|
7122
7123
|
if (!this.form)
|
|
@@ -7125,14 +7126,17 @@ class wd {
|
|
|
7125
7126
|
n || (n = document.createElement("input"), n.type = "hidden", n.name = s, this.form.appendChild(n)), n.value = t;
|
|
7126
7127
|
}
|
|
7127
7128
|
_submitForm(t) {
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
if (
|
|
7131
|
-
this.form.
|
|
7132
|
-
|
|
7129
|
+
var s;
|
|
7130
|
+
if (t.preventDefault(), !((s = this.form) != null && s.onsubmit && !this.form.onsubmit(new SubmitEvent("submit")))) {
|
|
7131
|
+
if (this.form) {
|
|
7132
|
+
const n = this.form.querySelector('input[name="token"]');
|
|
7133
|
+
if (n != null && n.value) {
|
|
7134
|
+
this.form.submit();
|
|
7135
|
+
return;
|
|
7136
|
+
}
|
|
7133
7137
|
}
|
|
7138
|
+
window.postMessage({ status: "submit-form" }, "*");
|
|
7134
7139
|
}
|
|
7135
|
-
window.postMessage({ status: "submit-form" }, "*");
|
|
7136
7140
|
}
|
|
7137
7141
|
addCard(t, s, n) {
|
|
7138
7142
|
if (this.log("[addCard]", { providerId: s, options: n }), !wt(s))
|
|
@@ -7621,7 +7625,7 @@ class wd {
|
|
|
7621
7625
|
});
|
|
7622
7626
|
}
|
|
7623
7627
|
add3DsProcessor(t, s, n, r) {
|
|
7624
|
-
this.log("[add3DsProcessor]", t, s), zr(/* @__PURE__ */ Object.assign({ "./3ds/ThreeDsAuthResponse.type.ts": () => import("./ThreeDsInitResponse.type-06482849.mjs").then((i) => i.T), "./3ds/ThreeDsInitResponse.type.ts": () => import("./ThreeDsInitResponse.type-06482849.mjs").then((i) => i.b), "./3ds/ThreeDsPostAuthResponse.type.ts": () => import("./ThreeDsPostAuthResponse.type-3091950f.mjs"), "./3ds/default.ts": () => import("./default-
|
|
7628
|
+
this.log("[add3DsProcessor]", t, s), zr(/* @__PURE__ */ Object.assign({ "./3ds/ThreeDsAuthResponse.type.ts": () => import("./ThreeDsInitResponse.type-06482849.mjs").then((i) => i.T), "./3ds/ThreeDsInitResponse.type.ts": () => import("./ThreeDsInitResponse.type-06482849.mjs").then((i) => i.b), "./3ds/ThreeDsPostAuthResponse.type.ts": () => import("./ThreeDsPostAuthResponse.type-3091950f.mjs"), "./3ds/default.ts": () => import("./default-060f306b.mjs"), "./3ds/ecentric.ts": () => import("./ecentric-70c83465.mjs"), "./3ds/gpayments.ts": () => import("./gpayments-6381ba63.mjs") }), `./3ds/${s.toLowerCase()}.ts`).then((i) => {
|
|
7625
7629
|
var a;
|
|
7626
7630
|
this.log(`Loading ${s}...`, i);
|
|
7627
7631
|
const o = i.default(this.log.bind(this), this.environment, this.container, this.config.apiUrl);
|
package/dist/sdk/payfurl.es.js
CHANGED