@payfurl/client 4.6.14 → 4.6.16
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/{CxPayThreeDsProvider-c56b5d51.mjs → CxPayThreeDsProvider-fdb9495d.mjs} +3 -3
- package/dist/sdk/{DefaultThreeDsProvider-e4a6f836.mjs → DefaultThreeDsProvider-bc94590f.mjs} +4 -4
- package/dist/sdk/{EcentricThreeDsProvider-3bb49355.mjs → EcentricThreeDsProvider-b4e83ddb.mjs} +2 -2
- package/dist/sdk/{EpnaThreeDsProvider-20e46f44.mjs → EpnaThreeDsProvider-ae87f6a8.mjs} +3 -3
- package/dist/sdk/{FlashBancThreeDsProvider-0a2ae83d.mjs → FlashBancThreeDsProvider-1605038d.mjs} +3 -3
- package/dist/sdk/{GPaymentsThreeDsProvider-f3f3d41f.mjs → GPaymentsThreeDsProvider-c32e2ce2.mjs} +2 -2
- package/dist/sdk/{MetricsGlobalThreeDsProvider-c5aaa5ba.mjs → MetricsGlobalThreeDsProvider-4a1a277b.mjs} +2 -2
- package/dist/sdk/{NmiThreeDsProvider-d445f763.mjs → NmiThreeDsProvider-c7eee818.mjs} +3 -3
- package/dist/sdk/{NuveiThreeDsProvider-c9dd7ab4.mjs → NuveiThreeDsProvider-92ec0af3.mjs} +4 -4
- package/dist/sdk/{PayGLocalThreeDsProvider-11a2b53e.mjs → PayGLocalThreeDsProvider-40375fae.mjs} +6 -6
- package/dist/sdk/PayWayAppleButton-8ec95dcc.mjs +160 -0
- package/dist/sdk/{PayabliThreeDsProvider-cf7dfc60.mjs → PayabliThreeDsProvider-4c604ca6.mjs} +3 -3
- package/dist/sdk/{SkyBankThreeDsProvider-d71a32ab.mjs → SkyBankThreeDsProvider-83c74ce4.mjs} +3 -3
- package/dist/sdk/cxpay-4cfbabd6.mjs +10 -0
- package/dist/sdk/{default-603a910c.mjs → default-ce52738b.mjs} +2 -2
- package/dist/sdk/{ecentric-6f24c9bd.mjs → ecentric-6f32c4cc.mjs} +3 -3
- package/dist/sdk/epna-54185dfc.mjs +10 -0
- package/dist/sdk/flashbanc-8664c8b8.mjs +10 -0
- package/dist/sdk/{gpayments-971189de.mjs → gpayments-7527af22.mjs} +3 -3
- package/dist/sdk/{main-901fbd53.mjs → main-0d5d595b.mjs} +4419 -3914
- package/dist/sdk/{metrics_global-61d108a0.mjs → metrics_global-441d4b91.mjs} +3 -3
- package/dist/sdk/nmi-21be5427.mjs +10 -0
- package/dist/sdk/{nuvei-76c5f707.mjs → nuvei-6c9de68e.mjs} +3 -3
- package/dist/sdk/payabli-2128874d.mjs +10 -0
- package/dist/sdk/payfurl.es.js +1 -1
- package/dist/sdk/payfurl.umd.js +12 -12
- package/dist/sdk/{payglocal-dd2e6531.mjs → payglocal-10b095e8.mjs} +3 -3
- package/dist/sdk/payway_rest-3f40376d.mjs +8 -0
- package/dist/sdk/skybank-bbf556c6.mjs +10 -0
- package/package.json +1 -1
- package/dist/sdk/PayWayAppleButton-30d63a79.mjs +0 -125
- package/dist/sdk/cxpay-f775e3cf.mjs +0 -10
- package/dist/sdk/epna-08c5c681.mjs +0 -10
- package/dist/sdk/flashbanc-0c7aa218.mjs +0 -10
- package/dist/sdk/nmi-4647d1d0.mjs +0 -10
- package/dist/sdk/payabli-174071ec.mjs +0 -10
- package/dist/sdk/payway_rest-860d0f08.mjs +0 -8
- package/dist/sdk/skybank-f6acdbdb.mjs +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
class i extends r {
|
|
5
5
|
getType() {
|
|
6
6
|
return "CxPay";
|
package/dist/sdk/{DefaultThreeDsProvider-e4a6f836.mjs → DefaultThreeDsProvider-bc94590f.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var D = Object.defineProperty;
|
|
2
2
|
var u = (n, e, s) => e in n ? D(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
|
|
3
3
|
var o = (n, e, s) => (u(n, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
-
import { d as S, r as d, o as g,
|
|
5
|
-
const P = (n) => (f("data-v-ac351494"), n = n(), y(), n), U = { class: "mask" }, $ = { class: "wrapper" }, L = { class: "container" }, b = /* @__PURE__ */ P(() => /* @__PURE__ */ i("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), M = ["action"], w = ["value"],
|
|
4
|
+
import { d as S, r as d, o as g, a as p, c as T, b as i, e as _, C as m, u as I, p as f, f as y, _ as A, i as v, T as C, h as E, F as R } from "./main-0d5d595b.mjs";
|
|
5
|
+
const P = (n) => (f("data-v-ac351494"), n = n(), y(), n), U = { class: "mask" }, $ = { class: "wrapper" }, L = { class: "container" }, b = /* @__PURE__ */ P(() => /* @__PURE__ */ i("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), M = ["action"], w = ["value"], N = /* @__PURE__ */ S({
|
|
6
6
|
__name: "ThreeDsChallenge",
|
|
7
7
|
props: {
|
|
8
8
|
threeDSServerTransID: null,
|
|
@@ -47,7 +47,7 @@ const P = (n) => (f("data-v-ac351494"), n = n(), y(), n), U = { class: "mask" },
|
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
const
|
|
50
|
+
const k = /* @__PURE__ */ A(N, [["__scopeId", "data-v-ac351494"]]), { hideSpinner: c, showSpinner: O } = v(), q = "3ds_method_invocation_complete", V = "3ds_challenge_complete";
|
|
51
51
|
class J {
|
|
52
52
|
constructor(e, s, t) {
|
|
53
53
|
o(this, "log");
|
|
@@ -182,7 +182,7 @@ class J {
|
|
|
182
182
|
this.log(`[${this.getType()}][doChallenge]`), c();
|
|
183
183
|
const { destroy: r } = E({
|
|
184
184
|
el: document.body,
|
|
185
|
-
component:
|
|
185
|
+
component: k,
|
|
186
186
|
props: {
|
|
187
187
|
threeDSServerTransID: this.threeDSServerTransID,
|
|
188
188
|
acsTransID: s,
|
package/dist/sdk/{EcentricThreeDsProvider-3bb49355.mjs → EcentricThreeDsProvider-b4e83ddb.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var h = (t, s, e) => s in t ? c(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
3
|
var i = (t, s, e) => (h(t, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
|
-
import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d as p, r as u, o as _,
|
|
4
|
+
import { DefaultThreeDsProvider as d } from "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
5
|
+
import { d as p, r as u, o as _, a as D, c as m, b as r, e as g, C as S, u as y, p as f, f as T, _ as v, h as C } from "./main-0d5d595b.mjs";
|
|
6
6
|
const I = (t) => (f("data-v-82a75009"), t = t(), T(), t), P = { class: "mask" }, A = { class: "wrapper" }, V = { class: "container" }, E = /* @__PURE__ */ I(() => /* @__PURE__ */ r("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1)), $ = ["action"], k = ["value"], x = /* @__PURE__ */ p({
|
|
7
7
|
__name: "ecentric",
|
|
8
8
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
class i extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "EPNA";
|
package/dist/sdk/{FlashBancThreeDsProvider-0a2ae83d.mjs → FlashBancThreeDsProvider-1605038d.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as r } from "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
class s extends r {
|
|
5
5
|
getType() {
|
|
6
6
|
return "FlashBanc";
|
package/dist/sdk/{GPaymentsThreeDsProvider-f3f3d41f.mjs → GPaymentsThreeDsProvider-c32e2ce2.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var i = Object.defineProperty;
|
|
2
2
|
var l = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var o = (n, r, e) => (l(n, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
|
-
import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d as u,
|
|
4
|
+
import { DefaultThreeDsProvider as c } from "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
5
|
+
import { d as u, a as d, c as p, b as a, n as h, _, h as g } from "./main-0d5d595b.mjs";
|
|
6
6
|
const m = { class: "mask" }, D = { class: "wrapper" }, S = ["src"], y = /* @__PURE__ */ u({
|
|
7
7
|
__name: "GPayments",
|
|
8
8
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var S = Object.defineProperty;
|
|
2
2
|
var w = (o, n, t) => n in o ? S(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
|
|
3
3
|
var l = (o, n, t) => (w(o, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
-
import { DefaultThreeDsProvider as P } from "./DefaultThreeDsProvider-
|
|
5
|
-
import { d as f, r as v, o as E, j as A, w as b, v as T,
|
|
4
|
+
import { DefaultThreeDsProvider as P } from "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
5
|
+
import { d as f, r as v, o as E, j as A, w as b, v as T, a as I, c as x, b as p, e as G, C as L, p as N, f as M, _ as $, i as H, s as g, h as k } from "./main-0d5d595b.mjs";
|
|
6
6
|
const O = (o) => (N("data-v-8a0b6dcb"), o = o(), M(), o), j = { class: "mask" }, B = { class: "wrapper" }, F = { class: "container" }, U = /* @__PURE__ */ O(() => /* @__PURE__ */ p("div", { id: "ThreeDsChallengeIFrame" }, null, -1)), W = /* @__PURE__ */ f({
|
|
7
7
|
__name: "MetricsGlobalThreeDsChallenge",
|
|
8
8
|
emits: ["close", "submit"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
class m extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "NMI";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var p = (n, r, t) => r in n ? d(n, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[r] = t;
|
|
3
3
|
var l = (n, r, t) => (p(n, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
|
-
import { d as m,
|
|
5
|
-
import { DefaultThreeDsProvider as I, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as C } from "./DefaultThreeDsProvider-
|
|
6
|
-
const b = (n) => (_("data-v-3b52be97"), n = n(),
|
|
4
|
+
import { d as m, i as u, o as g, a as D, c as S, p as _, f, b as h, _ as y, s as P, h as T } from "./main-0d5d595b.mjs";
|
|
5
|
+
import { DefaultThreeDsProvider as I, THREE_DS_METHOD_INVOCATION_COMPLETE as N, THREE_DS_CHALLENGE_COMPLETE as C } from "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
6
|
+
const b = (n) => (_("data-v-3b52be97"), n = n(), f(), n), v = { class: "mask" }, E = /* @__PURE__ */ b(() => /* @__PURE__ */ h("div", { class: "wrapper" }, [
|
|
7
7
|
/* @__PURE__ */ h("div", { class: "container" })
|
|
8
8
|
], -1)), x = [
|
|
9
9
|
E
|
|
@@ -80,7 +80,7 @@ const b = (n) => (_("data-v-3b52be97"), n = n(), y(), n), v = { class: "mask" },
|
|
|
80
80
|
return (s, o) => (D(), S("div", v, x));
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
const A = /* @__PURE__ */
|
|
83
|
+
const A = /* @__PURE__ */ y(V, [["__scopeId", "data-v-3b52be97"]]), { hideSpinner: R } = u();
|
|
84
84
|
class O extends I {
|
|
85
85
|
constructor() {
|
|
86
86
|
super(...arguments);
|
package/dist/sdk/{PayGLocalThreeDsProvider-11a2b53e.mjs → PayGLocalThreeDsProvider-40375fae.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-
|
|
2
|
-
import { r as c, o as p, j as _, I as P, d as T,
|
|
1
|
+
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
2
|
+
import { r as c, o as p, j as _, I as P, d as T, k as C, a as w, c as E, b as g, _ as L, s as l, h as I } from "./main-0d5d595b.mjs";
|
|
3
3
|
const h = c(!1);
|
|
4
4
|
function S(o, ...e) {
|
|
5
5
|
h.value && console.log(o, e);
|
|
@@ -8,7 +8,7 @@ function u(o) {
|
|
|
8
8
|
var e, r;
|
|
9
9
|
(e = o == null ? void 0 : o.data) != null && e.status && o.data.status === P && (h.value = !!((r = o == null ? void 0 : o.data) != null && r.debug));
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function k() {
|
|
12
12
|
return p(() => {
|
|
13
13
|
window.addEventListener("message", u);
|
|
14
14
|
}), _(() => {
|
|
@@ -18,14 +18,14 @@ function R() {
|
|
|
18
18
|
logMessage: S
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const R = { class: "modal-mask" }, b = { class: "modal-wrapper" }, v = ["src"], x = /* @__PURE__ */ T({
|
|
22
22
|
__name: "PayGLocalThreeDsChallenge",
|
|
23
23
|
props: {
|
|
24
24
|
url: null
|
|
25
25
|
},
|
|
26
26
|
emits: ["close"],
|
|
27
27
|
setup(o, { emit: e }) {
|
|
28
|
-
const r = o, { logMessage: a } =
|
|
28
|
+
const r = o, { logMessage: a } = k(), t = c(r.url);
|
|
29
29
|
c(null), C(() => r.url, (s) => {
|
|
30
30
|
t.value = s;
|
|
31
31
|
}), p(() => {
|
|
@@ -42,7 +42,7 @@ const k = { class: "modal-mask" }, b = { class: "modal-wrapper" }, v = ["src"],
|
|
|
42
42
|
const m = i.split(".")[1], D = window.atob(m), f = JSON.parse(D);
|
|
43
43
|
e("close", f);
|
|
44
44
|
}
|
|
45
|
-
return (s, i) => (w(), E("div",
|
|
45
|
+
return (s, i) => (w(), E("div", R, [
|
|
46
46
|
g("div", b, [
|
|
47
47
|
g("iframe", {
|
|
48
48
|
src: t.value,
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var A = (a, t, i) => t in a ? g(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
|
|
3
|
+
var s = (a, t, i) => (A(a, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
+
import { R as b, g as C, H as P } from "./main-0d5d595b.mjs";
|
|
5
|
+
const h = {
|
|
6
|
+
CHECKOUT: "CHECKOUT",
|
|
7
|
+
CHARGE: "CHARGE"
|
|
8
|
+
}, p = (a) => ({
|
|
9
|
+
[h.CHECKOUT]: {
|
|
10
|
+
url: a + "/payment_method/checkout",
|
|
11
|
+
method: "POST"
|
|
12
|
+
},
|
|
13
|
+
[h.CHARGE]: {
|
|
14
|
+
url: a + "/charge/checkout",
|
|
15
|
+
method: "POST"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
class I {
|
|
19
|
+
constructor(t, i, o, r, n, e) {
|
|
20
|
+
s(this, "log");
|
|
21
|
+
s(this, "container");
|
|
22
|
+
s(this, "button", null);
|
|
23
|
+
s(this, "providerId");
|
|
24
|
+
s(this, "apiUrl");
|
|
25
|
+
s(this, "amount");
|
|
26
|
+
s(this, "currency");
|
|
27
|
+
s(this, "options");
|
|
28
|
+
s(this, "clientParameters");
|
|
29
|
+
s(this, "billingAddress", null);
|
|
30
|
+
s(this, "customer", null);
|
|
31
|
+
s(this, "order", null);
|
|
32
|
+
s(this, "buttonId", "apple-pay-payway-button");
|
|
33
|
+
s(this, "onLoad", () => {
|
|
34
|
+
});
|
|
35
|
+
s(this, "onSuccess");
|
|
36
|
+
s(this, "onFailure");
|
|
37
|
+
s(this, "httpInvoker", null);
|
|
38
|
+
this.log = t, this.apiUrl = e.apiUrl, this.container = i || document.body, this.options = e.options, this.clientParameters = e.clientParameters, this.providerId = e.providerId, this.amount = Number(r), this.currency = n, this.providerId = o, this.onSuccess = e.onSuccess || null, this.onFailure = e.onFailure || null;
|
|
39
|
+
const d = new b(e.environment, C(e.publicKey));
|
|
40
|
+
this.httpInvoker = new P(e.publicKey, e.version, d), this.init();
|
|
41
|
+
}
|
|
42
|
+
draw() {
|
|
43
|
+
const t = () => {
|
|
44
|
+
this.onLoad = () => {
|
|
45
|
+
};
|
|
46
|
+
const i = {
|
|
47
|
+
container: this.buttonId,
|
|
48
|
+
publishableApiKey: this.clientParameters.PublishableApiKey,
|
|
49
|
+
principalAmount: this.amount,
|
|
50
|
+
currency: String(this.currency).toLowerCase(),
|
|
51
|
+
buttonMode: "callback"
|
|
52
|
+
};
|
|
53
|
+
this.log("[createPaymentRequestButton]", i), window.payway.createPaymentRequestButton(i, (o, r) => {
|
|
54
|
+
var n;
|
|
55
|
+
if (this.log("[createPaymentRequestButton]", o, r), o) {
|
|
56
|
+
(n = this.onFailure) == null || n.call(this, o);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.checkout(r.singleUseTokenId);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
window.payway ? t() : this.onLoad = t;
|
|
63
|
+
}
|
|
64
|
+
show() {
|
|
65
|
+
this.button && (this.button.style.display = "block");
|
|
66
|
+
}
|
|
67
|
+
hide() {
|
|
68
|
+
this.button && (this.button.style.display = "none");
|
|
69
|
+
}
|
|
70
|
+
init() {
|
|
71
|
+
const t = document.createElement("div");
|
|
72
|
+
t.id = this.buttonId, this.container.appendChild(t), this.button = t, this.initScript();
|
|
73
|
+
}
|
|
74
|
+
initScript() {
|
|
75
|
+
const t = document.createElement("script");
|
|
76
|
+
t.src = "https://api.payway.com.au/rest/v1/payway.js", t.onload = () => {
|
|
77
|
+
this.onLoad && this.onLoad();
|
|
78
|
+
}, document.head.appendChild(t);
|
|
79
|
+
}
|
|
80
|
+
checkout(t) {
|
|
81
|
+
var o, r, n, e, d, m;
|
|
82
|
+
const i = {
|
|
83
|
+
providerId: this.providerId,
|
|
84
|
+
amount: this.amount,
|
|
85
|
+
currency: this.currency,
|
|
86
|
+
reference: (o = this.order) == null ? void 0 : o.orderNumber,
|
|
87
|
+
options: {
|
|
88
|
+
ProviderToken: t
|
|
89
|
+
},
|
|
90
|
+
customer: {
|
|
91
|
+
firstName: (r = this.customer) == null ? void 0 : r.firstName,
|
|
92
|
+
lastName: (n = this.customer) == null ? void 0 : n.lastName,
|
|
93
|
+
email: (e = this.customer) == null ? void 0 : e.email,
|
|
94
|
+
phone: (d = this.customer) == null ? void 0 : d.phoneNumber,
|
|
95
|
+
billingAddress: this.billingAddress && {
|
|
96
|
+
name: `${this.billingAddress.firstName} ${this.billingAddress.lastName}`,
|
|
97
|
+
addressLine1: this.billingAddress.streetAddress,
|
|
98
|
+
addressLine2: this.billingAddress.streetAddress2,
|
|
99
|
+
suburb: this.billingAddress.city,
|
|
100
|
+
countryCode: this.billingAddress.country,
|
|
101
|
+
postcode: this.billingAddress.postalCode,
|
|
102
|
+
state: this.billingAddress.state
|
|
103
|
+
} || void 0
|
|
104
|
+
},
|
|
105
|
+
items: this.order && this.order.orderItems.map((l) => ({
|
|
106
|
+
name: l.name,
|
|
107
|
+
reference: l.sku,
|
|
108
|
+
quantity: l.quantity,
|
|
109
|
+
amount: l.totalAmount
|
|
110
|
+
})) || []
|
|
111
|
+
};
|
|
112
|
+
this.log("[PayWayAppleButton][checkout]", i), (m = this.httpInvoker) == null || m.invoke(p(this.apiUrl)[h.CHECKOUT].url, p(this.apiUrl)[h.CHECKOUT].method, JSON.stringify(i), (l, u) => {
|
|
113
|
+
this.log("[PayWayAppleButton][checkout]: successCheckoutHandler", l, u);
|
|
114
|
+
const y = JSON.parse(u), c = JSON.parse(window.atob(y.checkoutData));
|
|
115
|
+
this.log("[PayWayAppleButton][checkout]: decodedData", c), this.charge(c.checkoutId);
|
|
116
|
+
}, (l, u) => {
|
|
117
|
+
var c;
|
|
118
|
+
this.log("[PayWayAppleButton][checkout]: failureCheckoutHandler", l, u);
|
|
119
|
+
const y = JSON.parse(u);
|
|
120
|
+
(c = this.onFailure) == null || c.call(this, { error: y.message });
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
charge(t) {
|
|
124
|
+
var i;
|
|
125
|
+
this.log("[PayWayAppleButton][charge]", { checkoutId: t }), (i = this.httpInvoker) == null || i.invoke(p(this.apiUrl)[h.CHARGE].url, p(this.apiUrl)[h.CHARGE].method, JSON.stringify({ checkoutId: t }), (o, r) => {
|
|
126
|
+
var e;
|
|
127
|
+
this.log("[PayWayAppleButton][charge]: successChargeHandler", o, r);
|
|
128
|
+
const n = JSON.parse(r);
|
|
129
|
+
(e = this.onSuccess) == null || e.call(this, {
|
|
130
|
+
transactionId: n == null ? void 0 : n.chargeId
|
|
131
|
+
});
|
|
132
|
+
}, (o, r) => {
|
|
133
|
+
var e;
|
|
134
|
+
this.log("[PayWayAppleButton][charge]: failureChargeHandler", o, r);
|
|
135
|
+
const n = JSON.parse(r);
|
|
136
|
+
(e = this.onFailure) == null || e.call(this, { error: n.message });
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
redraw() {
|
|
140
|
+
this.button && (this.button.innerHTML = "", this.draw());
|
|
141
|
+
}
|
|
142
|
+
setAmount(t) {
|
|
143
|
+
this.log("[PayWayAppleButton][setAmount]", t), this.amount = t, this.redraw();
|
|
144
|
+
}
|
|
145
|
+
setCurrency(t) {
|
|
146
|
+
this.log("[PayWayAppleButton][setCurrency]", t), this.currency = t, this.redraw();
|
|
147
|
+
}
|
|
148
|
+
setCustomerInfo(t) {
|
|
149
|
+
this.log("[PayWayAppleButton][setCustomerInfo]", t), this.customer = { ...t };
|
|
150
|
+
}
|
|
151
|
+
setBillingAddress(t) {
|
|
152
|
+
this.log("[PayWayAppleButton][setBillingAddress]", t), this.billingAddress = { ...t };
|
|
153
|
+
}
|
|
154
|
+
setOrderInfo(t) {
|
|
155
|
+
this.log("[PayWayAppleButton][setOrderInfo]", t), this.order = { ...t };
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export {
|
|
159
|
+
I as PayWayAppleButton
|
|
160
|
+
};
|
package/dist/sdk/{PayabliThreeDsProvider-cf7dfc60.mjs → PayabliThreeDsProvider-4c604ca6.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
class i extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "Payabli";
|
package/dist/sdk/{SkyBankThreeDsProvider-d71a32ab.mjs → SkyBankThreeDsProvider-83c74ce4.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
class s extends e {
|
|
5
5
|
getType() {
|
|
6
6
|
return "SkyBank";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CxPayThreeDsProvider as e } from "./CxPayThreeDsProvider-fdb9495d.mjs";
|
|
2
|
+
import "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
3
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
4
|
+
import "./main-0d5d595b.mjs";
|
|
5
|
+
function n(r, o, t) {
|
|
6
|
+
return new e(r, o, t);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
n as default
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-
|
|
2
|
-
import "./main-
|
|
1
|
+
import { DefaultThreeDsProvider as o } from "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
2
|
+
import "./main-0d5d595b.mjs";
|
|
3
3
|
function a(e, r, t) {
|
|
4
4
|
return new o(e, r, t);
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { EcentricThreeDsProvider as i } from "./EcentricThreeDsProvider-b4e83ddb.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
function m(r, e, t) {
|
|
5
5
|
return new i(r, e, t);
|
|
6
6
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EpnaThreeDsProvider as t } from "./EpnaThreeDsProvider-ae87f6a8.mjs";
|
|
2
|
+
import "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
3
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
4
|
+
import "./main-0d5d595b.mjs";
|
|
5
|
+
function a(r, e, o) {
|
|
6
|
+
return new t(r, e, o);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
a as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FlashBancThreeDsProvider as e } from "./FlashBancThreeDsProvider-1605038d.mjs";
|
|
2
|
+
import "./MetricsGlobalThreeDsProvider-4a1a277b.mjs";
|
|
3
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
4
|
+
import "./main-0d5d595b.mjs";
|
|
5
|
+
function p(r, o, t) {
|
|
6
|
+
return new e(r, o, t);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
p as default
|
|
10
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GPaymentsThreeDsProvider as o } from "./GPaymentsThreeDsProvider-
|
|
2
|
-
import "./DefaultThreeDsProvider-
|
|
3
|
-
import "./main-
|
|
1
|
+
import { GPaymentsThreeDsProvider as o } from "./GPaymentsThreeDsProvider-c32e2ce2.mjs";
|
|
2
|
+
import "./DefaultThreeDsProvider-bc94590f.mjs";
|
|
3
|
+
import "./main-0d5d595b.mjs";
|
|
4
4
|
function p(r, e, t) {
|
|
5
5
|
return new o(r, e, t);
|
|
6
6
|
}
|