@payfurl/client 4.9.5 → 4.9.6
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/{CloseIcon-DUKC8zu2.js → CloseIcon-BwxBac9r.js} +1040 -968
- package/dist/sdk/{DefaultThreeDsProvider-BQXZxRSe.js → DefaultThreeDsProvider-V6kOxHoH.js} +1 -1
- package/dist/sdk/{MetricsGlobalThreeDsProvider-CRGRhdai.js → MetricsGlobalThreeDsProvider-CgDVIbXk.js} +3 -3
- package/dist/sdk/{PayWayAppleButton-BKBON7Yl.js → PayWayAppleButton-NRBJ3jjI.js} +1 -1
- package/dist/sdk/{alerts-DMTJSYFZ.js → alerts-DE81O3wN.js} +1 -1
- package/dist/sdk/{cxpay-BpEM9LbT.js → cxpay-BEMrWL1q.js} +1 -1
- package/dist/sdk/{default-CE5nSCNU.js → default-BQDjOwfs.js} +1 -1
- package/dist/sdk/{ecentric-C-L8fXG9.js → ecentric-C5_oNEas.js} +2 -2
- package/dist/sdk/{epna-CJhaNici.js → epna-DX-S7yA6.js} +1 -1
- package/dist/sdk/{flashbanc-3uXb_QxD.js → flashbanc-xqp3XO6M.js} +1 -1
- package/dist/sdk/{forter-CMRlI8RN.js → forter-5rzXRwAX.js} +2 -2
- package/dist/sdk/{gpayments-D6zvi_nT.js → gpayments-DOv0-hRx.js} +2 -2
- package/dist/sdk/{metrics_global-Bkoz0wJ4.js → metrics_global-C--PnyF9.js} +1 -1
- package/dist/sdk/{nmi-D4gXIH6V.js → nmi-Y-RgOB0Y.js} +1 -1
- package/dist/sdk/{nuvei-ZtJQN-Yz.js → nuvei-BOMMfI_5.js} +2 -2
- package/dist/sdk/{payabli-DlSJfDyv.js → payabli-OU7W7cbE.js} +1 -1
- package/dist/sdk/payfurl.es.js +49 -31
- package/dist/sdk/payfurl.umd.js +8 -8
- package/dist/sdk/{payglocal-BC6XGiGa.js → payglocal-BxWTWcIu.js} +3 -3
- package/dist/sdk/{payway_rest-DQj75YyG.js → payway_rest-BX6JbR1g.js} +1 -1
- package/dist/sdk/{skybank-D-w9VqY5.js → skybank-BxtSlq18.js} +1 -1
- package/dist/sdk/{strings-Ksgqjvdu.js → strings-DmWzID7u.js} +13 -13
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, Et as t, It as n, Lt as r, O as i, Ot as a, Tt as o, Z as s, _t as c, ct as l, dt as u, h as d, n as f, t as p, vt as m, wt as h, xt as g } from "./CloseIcon-
|
|
1
|
+
import { A as e, Et as t, It as n, Lt as r, O as i, Ot as a, Tt as o, Z as s, _t as c, ct as l, dt as u, h as d, n as f, t as p, vt as m, wt as h, xt as g } from "./CloseIcon-BwxBac9r.js";
|
|
2
2
|
//#region src/sdk/3ds/ThreeDsChallenge.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" }, b = ["action"], x = ["value"], S = /*#__PURE__*/ s(/* @__PURE__ */ o({
|
|
4
4
|
__name: "ThreeDsChallenge",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dt as e, Et as t, Ft as n, It as r, Ot as i, Tt as a, Z as o, dt as s, mt as c, n as l, t as u, vt as d, wt as f, xt as p } from "./CloseIcon-
|
|
1
|
+
import { Dt as e, Et as t, Ft as n, It as r, Ot as i, Tt as a, Z as o, dt as s, mt as c, n as l, t as u, vt as d, wt as f, xt as p } from "./CloseIcon-BwxBac9r.js";
|
|
2
2
|
import { t as m } from "./screen-D7xBu0cj.js";
|
|
3
|
-
import { t as h } from "./alerts-
|
|
4
|
-
import { t as g } from "./DefaultThreeDsProvider-
|
|
3
|
+
import { t as h } from "./alerts-DE81O3wN.js";
|
|
4
|
+
import { t as g } from "./DefaultThreeDsProvider-V6kOxHoH.js";
|
|
5
5
|
//#region src/sdk/3ds/MetricsGlobalThreeDsChallenge.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" }, b = /*#__PURE__*/ o(/* @__PURE__ */ a({
|
|
7
7
|
__name: "MetricsGlobalThreeDsChallenge",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as e, It as t, Ot as n, Tt as r, Z as i, bt as a, dt as o, gt as s, vt as c, xt as l } from "./CloseIcon-
|
|
1
|
+
import { Bt as e, It as t, Ot as n, Tt as r, Z as i, bt as a, dt as o, gt as s, vt as c, xt as l } from "./CloseIcon-BwxBac9r.js";
|
|
2
2
|
//#region src/sdk/components/Error.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var u = { class: "message" }, d = /*#__PURE__*/ i(/* @__PURE__ */ r({
|
|
4
4
|
__name: "Error",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Et as e, It as t, Lt as n, Ot as r, Tt as i, Z as a, _t as o, ct as s, dt as c, t as l, vt as u, wt as d, xt as f } from "./CloseIcon-
|
|
2
|
-
import { t as p } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { Et as e, It as t, Lt as n, Ot as r, Tt as i, Z as a, _t as o, ct as s, dt as c, t as l, vt as u, wt as d, xt as f } from "./CloseIcon-BwxBac9r.js";
|
|
2
|
+
import { t as p } from "./DefaultThreeDsProvider-V6kOxHoH.js";
|
|
3
3
|
//#region src/sdk/3ds/ecentric.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" }, _ = ["action"], v = ["value"], y = /*#__PURE__*/ a(/* @__PURE__ */ i({
|
|
5
5
|
__name: "ecentric",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./CloseIcon-
|
|
2
|
-
import { t } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { n as e } from "./CloseIcon-BwxBac9r.js";
|
|
2
|
+
import { t } from "./DefaultThreeDsProvider-V6kOxHoH.js";
|
|
3
3
|
import { n, r, t as i } from "./managedOrders-D8BtEsXf.js";
|
|
4
4
|
//#region src/sdk/3ds/ForterThreeDsProvider.ts
|
|
5
5
|
var { hideSpinner: a } = e(), o = class extends t {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ot as e, Tt as t, Z as n, _t as r, ct as i, dt as a, n as o, vt as s, xt as c, zt as l } from "./CloseIcon-
|
|
2
|
-
import { t as u } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { Ot as e, Tt as t, Z as n, _t as r, ct as i, dt as a, n as o, vt as s, xt as c, zt as l } from "./CloseIcon-BwxBac9r.js";
|
|
2
|
+
import { t as u } from "./DefaultThreeDsProvider-V6kOxHoH.js";
|
|
3
3
|
//#region src/sdk/3ds/GPayments.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var d = { class: "mask" }, f = { class: "wrapper" }, p = ["src"], m = /*#__PURE__*/ n(/* @__PURE__ */ t({
|
|
5
5
|
__name: "GPayments",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Et as e, Ot as t, Tt as n, Z as r, dt as i, h as a, n as o, vt as s, xt as c } from "./CloseIcon-
|
|
2
|
-
import { t as l } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { Et as e, Ot as t, Tt as n, Z as r, dt as i, h as a, n as o, vt as s, xt as c } from "./CloseIcon-BwxBac9r.js";
|
|
2
|
+
import { t as l } from "./DefaultThreeDsProvider-V6kOxHoH.js";
|
|
3
3
|
//#region src/sdk/3ds/nuvei.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var u = { class: "mask" }, d = /*#__PURE__*/ r(/* @__PURE__ */ n({
|
|
5
5
|
__name: "nuvei",
|
package/dist/sdk/payfurl.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, Dt as s, Et as c, F as l, Ft as u, H as d, I as f, It as p, K as m, L as h, Lt as g, M as _, Mt as v, Nt as y, Ot as b, P as x, Pt as S, Q as ee, R as te, Rt as ne, S as re, St as ie, Tt as C, U as ae, W as oe, X as se, Y as ce, Z as w, _t as le, a as ue, at as de, b as fe, bt as T, c as pe, ct as me, d as he, dt as ge, et as _e, f as ve, ft as ye, gt as E, ht as be, it as xe, j as Se, jt as Ce, kt as we, lt as Te, m as Ee, mt as De, n as Oe, nt as ke, o as Ae, ot as je, pt as Me, r as Ne, rt as D, st as Pe, t as Fe, tt as Ie, ut as O, v as Le, vt as k, wt as Re, x as ze, xt as A, y as Be, yt as Ve, z as He, zt as Ue } from "./CloseIcon-
|
|
2
|
-
import { a as We, c as Ge, d as j, i as Ke, l as qe, n as Je, o as M, r as N, s as P, t as Ye, u as Xe } from "./strings-
|
|
1
|
+
import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, Dt as s, Et as c, F as l, Ft as u, H as d, I as f, It as p, K as m, L as h, Lt as g, M as _, Mt as v, Nt as y, Ot as b, P as x, Pt as S, Q as ee, R as te, Rt as ne, S as re, St as ie, Tt as C, U as ae, W as oe, X as se, Y as ce, Z as w, _t as le, a as ue, at as de, b as fe, bt as T, c as pe, ct as me, d as he, dt as ge, et as _e, f as ve, ft as ye, gt as E, ht as be, it as xe, j as Se, jt as Ce, kt as we, lt as Te, m as Ee, mt as De, n as Oe, nt as ke, o as Ae, ot as je, pt as Me, r as Ne, rt as D, st as Pe, t as Fe, tt as Ie, ut as O, v as Le, vt as k, wt as Re, x as ze, xt as A, y as Be, yt as Ve, z as He, zt as Ue } from "./CloseIcon-BwxBac9r.js";
|
|
2
|
+
import { a as We, c as Ge, d as j, i as Ke, l as qe, n as Je, o as M, r as N, s as P, t as Ye, u as Xe } from "./strings-DmWzID7u.js";
|
|
3
3
|
import { t as Ze } from "./screen-D7xBu0cj.js";
|
|
4
|
-
import { n as Qe, t as F } from "./alerts-
|
|
4
|
+
import { n as Qe, t as F } from "./alerts-DE81O3wN.js";
|
|
5
5
|
//#region node_modules/tslib/tslib.es6.mjs
|
|
6
6
|
function I(e, t, n, r) {
|
|
7
7
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
@@ -2955,11 +2955,20 @@ var Mn = { style: { position: "relative" } }, Nn = {
|
|
|
2955
2955
|
});
|
|
2956
2956
|
}
|
|
2957
2957
|
function re() {
|
|
2958
|
+
let e = n.options.billingDetailsRequired === !0;
|
|
2958
2959
|
return {
|
|
2959
2960
|
apiVersion: 2,
|
|
2960
2961
|
apiVersionMinor: 0,
|
|
2962
|
+
...e ? { emailRequired: !0 } : {},
|
|
2961
2963
|
allowedPaymentMethods: [{
|
|
2962
2964
|
...x,
|
|
2965
|
+
parameters: {
|
|
2966
|
+
...x.parameters,
|
|
2967
|
+
...e ? {
|
|
2968
|
+
billingAddressRequired: !0,
|
|
2969
|
+
billingAddressParameters: { format: "FULL" }
|
|
2970
|
+
} : {}
|
|
2971
|
+
},
|
|
2963
2972
|
tokenizationSpecification: {
|
|
2964
2973
|
type: "PAYMENT_GATEWAY",
|
|
2965
2974
|
parameters: {
|
|
@@ -3071,7 +3080,21 @@ var Mn = { style: { position: "relative" } }, Nn = {
|
|
|
3071
3080
|
}),
|
|
3072
3081
|
complete: R(this, "[GooglePay]: complete", (n) => {
|
|
3073
3082
|
this.log("[GooglePay]: complete", n);
|
|
3074
|
-
let r = {
|
|
3083
|
+
let r = n.paymentMethodData.info.billingAddress, [a, ...o] = r?.name?.trim().split(/\s+/) ?? [], s = this.billingAddress ? {
|
|
3084
|
+
line1: this.billingAddress.streetAddress,
|
|
3085
|
+
line2: this.billingAddress.streetAddress2,
|
|
3086
|
+
city: this.billingAddress.city,
|
|
3087
|
+
country: this.billingAddress.country,
|
|
3088
|
+
postalCode: this.billingAddress.postalCode,
|
|
3089
|
+
state: this.billingAddress.state
|
|
3090
|
+
} : r && {
|
|
3091
|
+
line1: r.address1,
|
|
3092
|
+
line2: r.address2,
|
|
3093
|
+
city: r.locality,
|
|
3094
|
+
country: r.countryCode,
|
|
3095
|
+
postalCode: r.postalCode,
|
|
3096
|
+
state: r.administrativeArea
|
|
3097
|
+
}, c = {
|
|
3075
3098
|
amount: this.amount,
|
|
3076
3099
|
currency: this.currency,
|
|
3077
3100
|
paymentData: {
|
|
@@ -3086,18 +3109,11 @@ var Mn = { style: { position: "relative" } }, Nn = {
|
|
|
3086
3109
|
cardNetwork: n.paymentMethodData.info.cardNetwork
|
|
3087
3110
|
}
|
|
3088
3111
|
},
|
|
3089
|
-
firstName: this.customer?.firstName,
|
|
3090
|
-
lastName: this.customer?.lastName,
|
|
3091
|
-
email: this.customer?.email,
|
|
3112
|
+
firstName: this.customer?.firstName || a,
|
|
3113
|
+
lastName: this.customer?.lastName || o.join(" ") || a,
|
|
3114
|
+
email: this.customer?.email || n.email,
|
|
3092
3115
|
phone: this.customer?.phoneNumber,
|
|
3093
|
-
address:
|
|
3094
|
-
line1: this.billingAddress.streetAddress,
|
|
3095
|
-
line2: this.billingAddress.streetAddress2,
|
|
3096
|
-
city: this.billingAddress.city,
|
|
3097
|
-
country: this.billingAddress.country,
|
|
3098
|
-
postalCode: this.billingAddress.postalCode,
|
|
3099
|
-
state: this.billingAddress.state
|
|
3100
|
-
} || void 0,
|
|
3116
|
+
address: s || void 0,
|
|
3101
3117
|
order: this.order && {
|
|
3102
3118
|
dutyAmount: this.order.taxAmount,
|
|
3103
3119
|
freightAmount: this.order.shippingAmount,
|
|
@@ -3111,7 +3127,7 @@ var Mn = { style: { position: "relative" } }, Nn = {
|
|
|
3111
3127
|
} || void 0,
|
|
3112
3128
|
metadata: W(i?.metadata)
|
|
3113
3129
|
};
|
|
3114
|
-
this.addChargeWithGooglePay(e, t,
|
|
3130
|
+
this.addChargeWithGooglePay(e, t, c);
|
|
3115
3131
|
}),
|
|
3116
3132
|
error: R(this, "[GooglePay]: error", (t) => {
|
|
3117
3133
|
this.log("[GooglePay]: error", t), F(e, "Unable to pay with Google Pay"), this.failureCallback?.({
|
|
@@ -3444,8 +3460,8 @@ var $n = { style: { position: "relative" } }, er = {
|
|
|
3444
3460
|
zn(/* #__PURE__ */ Object.assign({
|
|
3445
3461
|
"./applepay/ApplePayButton.interface.ts": () => import("./ApplePayButton.interface-BvRk9kiK.js"),
|
|
3446
3462
|
"./applepay/ApplePayButtonOptions.type.ts": () => import("./ApplePayButtonOptions.type-BvRk9kiK.js"),
|
|
3447
|
-
"./applepay/PayWayAppleButton.ts": () => import("./PayWayAppleButton-
|
|
3448
|
-
"./applepay/payway_rest.ts": () => import("./payway_rest-
|
|
3463
|
+
"./applepay/PayWayAppleButton.ts": () => import("./PayWayAppleButton-NRBJ3jjI.js"),
|
|
3464
|
+
"./applepay/payway_rest.ts": () => import("./payway_rest-BX6JbR1g.js")
|
|
3449
3465
|
}), `./applepay/${i.providerType.toLowerCase()}.ts`, 3).then(R(this, "[localAddApplePay], then", (e) => {
|
|
3450
3466
|
this.log(`Loading ${i.providerType}...`, e), s(e);
|
|
3451
3467
|
})).catch(() => {
|
|
@@ -4757,19 +4773,19 @@ function ti(e) {
|
|
|
4757
4773
|
//#endregion
|
|
4758
4774
|
//#region src/sdk/utils/moduleLoader.ts
|
|
4759
4775
|
var ni = {
|
|
4760
|
-
cxpay: () => import("./cxpay-
|
|
4761
|
-
default: () => import("./default-
|
|
4762
|
-
ecentric: () => import("./ecentric-
|
|
4763
|
-
epna: () => import("./epna-
|
|
4764
|
-
flashbanc: () => import("./flashbanc-
|
|
4765
|
-
forter: () => import("./forter-
|
|
4766
|
-
gpayments: () => import("./gpayments-
|
|
4767
|
-
metrics_global: () => import("./metrics_global-
|
|
4768
|
-
nmi: () => import("./nmi-
|
|
4769
|
-
nuvei: () => import("./nuvei-
|
|
4770
|
-
payabli: () => import("./payabli-
|
|
4771
|
-
payglocal: () => import("./payglocal-
|
|
4772
|
-
skybank: () => import("./skybank-
|
|
4776
|
+
cxpay: () => import("./cxpay-BEMrWL1q.js"),
|
|
4777
|
+
default: () => import("./default-BQDjOwfs.js"),
|
|
4778
|
+
ecentric: () => import("./ecentric-C5_oNEas.js"),
|
|
4779
|
+
epna: () => import("./epna-DX-S7yA6.js"),
|
|
4780
|
+
flashbanc: () => import("./flashbanc-xqp3XO6M.js"),
|
|
4781
|
+
forter: () => import("./forter-5rzXRwAX.js"),
|
|
4782
|
+
gpayments: () => import("./gpayments-DOv0-hRx.js"),
|
|
4783
|
+
metrics_global: () => import("./metrics_global-C--PnyF9.js"),
|
|
4784
|
+
nmi: () => import("./nmi-Y-RgOB0Y.js"),
|
|
4785
|
+
nuvei: () => import("./nuvei-BOMMfI_5.js"),
|
|
4786
|
+
payabli: () => import("./payabli-OU7W7cbE.js"),
|
|
4787
|
+
payglocal: () => import("./payglocal-BxWTWcIu.js"),
|
|
4788
|
+
skybank: () => import("./skybank-BxtSlq18.js")
|
|
4773
4789
|
}, ri = { forter: () => import("./forter-B5mAsqh7.js") };
|
|
4774
4790
|
async function ii(e) {
|
|
4775
4791
|
let t = ni[e.toLowerCase()];
|
|
@@ -5330,6 +5346,7 @@ var { hideSpinner: oi } = Oe(), si = {
|
|
|
5330
5346
|
googlePayMerchantId: r?.googlePayOptions?.googlePayMerchantId || h?.googlePayMerchantId || "",
|
|
5331
5347
|
googlePayMerchantName: r?.googlePayOptions?.googlePayMerchantName || h?.googlePayMerchantName || "",
|
|
5332
5348
|
buttonOptions: r?.googlePayOptions?.buttonOptions,
|
|
5349
|
+
billingDetailsRequired: r?.googlePayOptions?.billingDetailsRequired,
|
|
5333
5350
|
metadata: W(r?.metadata)
|
|
5334
5351
|
}, _ = c.hasApplePayProviders ? c.applePayProviders.find((e) => e.providerId === r?.applePayOptions?.providerId) || c.applePayProviders[0] : null, v = {
|
|
5335
5352
|
lineItemLabel: r?.applePayOptions?.lineItemLabel || _?.lineItemLabel || "",
|
|
@@ -5563,6 +5580,7 @@ var { hideSpinner: oi } = Oe(), si = {
|
|
|
5563
5580
|
googlePayMerchantId: n.googlePayMerchantId,
|
|
5564
5581
|
googlePayMerchantName: n.googlePayMerchantName,
|
|
5565
5582
|
buttonOptions: a?.buttonOptions,
|
|
5583
|
+
billingDetailsRequired: a?.billingDetailsRequired,
|
|
5566
5584
|
metadata: W(a?.metadata)
|
|
5567
5585
|
});
|
|
5568
5586
|
})), this);
|