@spot-flow/checkout-inline-js 0.1.49-dev.8 → 0.1.49-dev.9
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.
|
@@ -1721,7 +1721,7 @@ const Us = new Pl({
|
|
|
1721
1721
|
if (S === "en") return b;
|
|
1722
1722
|
const C = Object.keys(b), w = Object.values(b);
|
|
1723
1723
|
return (await p(w, S)).reduce(
|
|
1724
|
-
(x,
|
|
1724
|
+
(x, P, D) => (x[C[D]] = P, x),
|
|
1725
1725
|
{}
|
|
1726
1726
|
);
|
|
1727
1727
|
},
|
|
@@ -1754,9 +1754,9 @@ const Ea = async (n) => {
|
|
|
1754
1754
|
n
|
|
1755
1755
|
);
|
|
1756
1756
|
};
|
|
1757
|
-
let
|
|
1757
|
+
let E = Ca;
|
|
1758
1758
|
const Pa = async (n) => {
|
|
1759
|
-
|
|
1759
|
+
E = await He.translateRecord(
|
|
1760
1760
|
Ca,
|
|
1761
1761
|
n
|
|
1762
1762
|
);
|
|
@@ -1812,7 +1812,7 @@ const Oa = async (n) => {
|
|
|
1812
1812
|
};
|
|
1813
1813
|
function Vs(n) {
|
|
1814
1814
|
if (n in z) return z[n];
|
|
1815
|
-
if (n in
|
|
1815
|
+
if (n in E) return E[n];
|
|
1816
1816
|
if (n in ln)
|
|
1817
1817
|
return ln[n];
|
|
1818
1818
|
if (n in pe) return pe[n];
|
|
@@ -2136,7 +2136,7 @@ class Jn {
|
|
|
2136
2136
|
const e = document.querySelector("#success-amount"), t = document.querySelector(
|
|
2137
2137
|
"#payment-success-text"
|
|
2138
2138
|
), i = document.querySelector("#processed-text"), s = document.querySelector("#charge-text");
|
|
2139
|
-
t && (this.message ? t.innerHTML = this.message : t.innerHTML =
|
|
2139
|
+
t && (this.message ? t.innerHTML = this.message : t.innerHTML = E["payment-success"]), i && (i.innerHTML = E["we-processed"]), s && (s.innerHTML = E.charge), e && (e.innerHTML = `${this.currency !== "USD" ? this.localCurrency : this.currency} ${Te(this.amount)}`);
|
|
2140
2140
|
}
|
|
2141
2141
|
render() {
|
|
2142
2142
|
return Rl;
|
|
@@ -2193,7 +2193,7 @@ class nn {
|
|
|
2193
2193
|
const s = this.container.querySelector("#payment-warning-text"), a = this.container.querySelector(
|
|
2194
2194
|
"#payment-warning-desc"
|
|
2195
2195
|
), o = this.container.querySelector("#try-again");
|
|
2196
|
-
s && (s.textContent = e), a && t && (a.textContent = t), o && (i ? o.textContent = i : o.textContent =
|
|
2196
|
+
s && (s.textContent = e), a && t && (a.textContent = t), o && (i ? o.textContent = i : o.textContent = E["try-again"]), o && i && (o.textContent = i), this.attachListener();
|
|
2197
2197
|
}
|
|
2198
2198
|
hideReportIssue() {
|
|
2199
2199
|
const e = this.container.querySelector("#report-issue");
|
|
@@ -24914,9 +24914,9 @@ class Wl {
|
|
|
24914
24914
|
})), p && p.addEventListener("change", (M) => {
|
|
24915
24915
|
var D;
|
|
24916
24916
|
M.preventDefault();
|
|
24917
|
-
const x = p.files,
|
|
24917
|
+
const x = p.files, P = /(\.jpg|\.jpeg|\.png|\.pdf)$/i;
|
|
24918
24918
|
if (x && x.length)
|
|
24919
|
-
if (
|
|
24919
|
+
if (P.exec(x[0].name)) {
|
|
24920
24920
|
const j = x[0];
|
|
24921
24921
|
b && (b.innerHTML = `<span class="bg-primary text-white text-sm font-semibold py-2 px-3 rounded-md" id="upload-btn-text">
|
|
24922
24922
|
Uploading...
|
|
@@ -24959,11 +24959,11 @@ class Wl {
|
|
|
24959
24959
|
} else
|
|
24960
24960
|
return;
|
|
24961
24961
|
}), C && C.addEventListener("submit", (M) => {
|
|
24962
|
-
var
|
|
24962
|
+
var P;
|
|
24963
24963
|
M.preventDefault();
|
|
24964
24964
|
const { reason: x } = this.formValues;
|
|
24965
24965
|
this.onAction({
|
|
24966
|
-
transactionReference: (
|
|
24966
|
+
transactionReference: (P = this.paymentResponse) == null ? void 0 : P.reference,
|
|
24967
24967
|
reportingReason: x,
|
|
24968
24968
|
disputeSource: "CUSTOMER",
|
|
24969
24969
|
supportingDocuments: this.documents
|
|
@@ -25539,20 +25539,20 @@ function Cc(n, e) {
|
|
|
25539
25539
|
let w = {};
|
|
25540
25540
|
const A = n.attributes.length;
|
|
25541
25541
|
for (let x = 0; x < A; x++) {
|
|
25542
|
-
const
|
|
25543
|
-
qa(C,
|
|
25542
|
+
const P = n.attributes[x];
|
|
25543
|
+
qa(C, P.name, P.value) || (w[P.name] = ja(t, C, Wn(P.name), P.value));
|
|
25544
25544
|
}
|
|
25545
25545
|
if (C === "link" && a) {
|
|
25546
25546
|
const x = Array.from(t.styleSheets).find((D) => D.href === n.href);
|
|
25547
|
-
let
|
|
25548
|
-
x && (
|
|
25547
|
+
let P = null;
|
|
25548
|
+
x && (P = vi(x)), P && (delete w.rel, delete w.href, w._cssText = bi(P, x.href));
|
|
25549
25549
|
}
|
|
25550
25550
|
if (C === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
|
|
25551
25551
|
const x = vi(n.sheet);
|
|
25552
25552
|
x && (w._cssText = bi(x, as()));
|
|
25553
25553
|
}
|
|
25554
25554
|
if (C === "input" || C === "textarea" || C === "select") {
|
|
25555
|
-
const x = n.value,
|
|
25555
|
+
const x = n.value, P = n.checked;
|
|
25556
25556
|
w.type !== "radio" && w.type !== "checkbox" && w.type !== "submit" && w.type !== "button" && x ? w.value = is({
|
|
25557
25557
|
element: n,
|
|
25558
25558
|
type: ss(n),
|
|
@@ -25560,21 +25560,21 @@ function Cc(n, e) {
|
|
|
25560
25560
|
value: x,
|
|
25561
25561
|
maskInputOptions: o,
|
|
25562
25562
|
maskInputFn: l
|
|
25563
|
-
}) :
|
|
25563
|
+
}) : P && (w.checked = P);
|
|
25564
25564
|
}
|
|
25565
25565
|
if (C === "option" && (n.selected && !o.select ? w.selected = !0 : delete w.selected), C === "canvas" && m) {
|
|
25566
25566
|
if (n.__context === "2d")
|
|
25567
25567
|
nc(n) || (w.rr_dataURL = n.toDataURL(c.type, c.quality));
|
|
25568
25568
|
else if (!("__context" in n)) {
|
|
25569
|
-
const x = n.toDataURL(c.type, c.quality),
|
|
25570
|
-
|
|
25571
|
-
const D =
|
|
25569
|
+
const x = n.toDataURL(c.type, c.quality), P = document.createElement("canvas");
|
|
25570
|
+
P.width = n.width, P.height = n.height;
|
|
25571
|
+
const D = P.toDataURL(c.type, c.quality);
|
|
25572
25572
|
x !== D && (w.rr_dataURL = x);
|
|
25573
25573
|
}
|
|
25574
25574
|
}
|
|
25575
25575
|
if (C === "img" && p) {
|
|
25576
25576
|
tt || (tt = t.createElement("canvas"), Gs = tt.getContext("2d"));
|
|
25577
|
-
const x = n,
|
|
25577
|
+
const x = n, P = x.crossOrigin;
|
|
25578
25578
|
x.crossOrigin = "anonymous";
|
|
25579
25579
|
const D = () => {
|
|
25580
25580
|
x.removeEventListener("load", D);
|
|
@@ -25583,7 +25583,7 @@ function Cc(n, e) {
|
|
|
25583
25583
|
} catch (j) {
|
|
25584
25584
|
console.warn(`Cannot inline img src=${x.currentSrc}! Error: ${j}`);
|
|
25585
25585
|
}
|
|
25586
|
-
|
|
25586
|
+
P ? w.crossOrigin = P : x.removeAttribute("crossorigin");
|
|
25587
25587
|
};
|
|
25588
25588
|
x.complete && x.naturalWidth !== 0 ? D() : x.addEventListener("load", D);
|
|
25589
25589
|
}
|
|
@@ -25592,11 +25592,11 @@ function Cc(n, e) {
|
|
|
25592
25592
|
x.rr_mediaState = n.paused ? "paused" : "played", x.rr_mediaCurrentTime = n.currentTime, x.rr_mediaPlaybackRate = n.playbackRate, x.rr_mediaMuted = n.muted, x.rr_mediaLoop = n.loop, x.rr_mediaVolume = n.volume;
|
|
25593
25593
|
}
|
|
25594
25594
|
if (f || (n.scrollLeft && (w.rr_scrollLeft = n.scrollLeft), n.scrollTop && (w.rr_scrollTop = n.scrollTop)), S) {
|
|
25595
|
-
const { width: x, height:
|
|
25595
|
+
const { width: x, height: P } = n.getBoundingClientRect();
|
|
25596
25596
|
w = {
|
|
25597
25597
|
class: w.class,
|
|
25598
25598
|
rr_width: `${x}px`,
|
|
25599
|
-
rr_height: `${
|
|
25599
|
+
rr_height: `${P}px`
|
|
25600
25600
|
};
|
|
25601
25601
|
}
|
|
25602
25602
|
C === "iframe" && !g(w.src) && (n.contentDocument || (w.rr_src = w.src), delete w.src);
|
|
@@ -25645,7 +25645,7 @@ function Sc(n, e) {
|
|
|
25645
25645
|
return !1;
|
|
25646
25646
|
}
|
|
25647
25647
|
function at(n, e) {
|
|
25648
|
-
const { doc: t, mirror: i, blockClass: s, blockSelector: a, maskTextClass: o, maskTextSelector: l, skipChild: c = !1, inlineStylesheet: p = !0, maskInputOptions: m = {}, maskTextFn: g, maskInputFn: f, slimDOMOptions: b, dataURLOptions: S = {}, inlineImages: C = !1, recordCanvas: w = !1, onSerialize: A, onIframeLoad: M, iframeLoadTimeout: x = 5e3, onStylesheetLoad:
|
|
25648
|
+
const { doc: t, mirror: i, blockClass: s, blockSelector: a, maskTextClass: o, maskTextSelector: l, skipChild: c = !1, inlineStylesheet: p = !0, maskInputOptions: m = {}, maskTextFn: g, maskInputFn: f, slimDOMOptions: b, dataURLOptions: S = {}, inlineImages: C = !1, recordCanvas: w = !1, onSerialize: A, onIframeLoad: M, iframeLoadTimeout: x = 5e3, onStylesheetLoad: P, stylesheetLoadTimeout: D = 5e3, keepIframeSrcFn: j = () => !1, newlyAddedElement: Q = !1 } = e;
|
|
25649
25649
|
let { needsMask: K } = e, { preserveWhiteSpace: q = !0 } = e;
|
|
25650
25650
|
!K && n.childNodes && (K = za(n, o, l, K === void 0));
|
|
25651
25651
|
const ce = fc(n, {
|
|
@@ -25701,7 +25701,7 @@ function at(n, e) {
|
|
|
25701
25701
|
onSerialize: A,
|
|
25702
25702
|
onIframeLoad: M,
|
|
25703
25703
|
iframeLoadTimeout: x,
|
|
25704
|
-
onStylesheetLoad:
|
|
25704
|
+
onStylesheetLoad: P,
|
|
25705
25705
|
stylesheetLoadTimeout: D,
|
|
25706
25706
|
keepIframeSrcFn: j
|
|
25707
25707
|
};
|
|
@@ -25739,14 +25739,14 @@ function at(n, e) {
|
|
|
25739
25739
|
onSerialize: A,
|
|
25740
25740
|
onIframeLoad: M,
|
|
25741
25741
|
iframeLoadTimeout: x,
|
|
25742
|
-
onStylesheetLoad:
|
|
25742
|
+
onStylesheetLoad: P,
|
|
25743
25743
|
stylesheetLoadTimeout: D,
|
|
25744
25744
|
keepIframeSrcFn: j
|
|
25745
25745
|
});
|
|
25746
25746
|
Ke && M(n, Ke);
|
|
25747
25747
|
}
|
|
25748
25748
|
}, x), G.type === Se.Element && G.tagName === "link" && typeof G.attributes.rel == "string" && (G.attributes.rel === "stylesheet" || G.attributes.rel === "preload" && typeof G.attributes.href == "string" && Ka(G.attributes.href) === "css") && bc(n, () => {
|
|
25749
|
-
if (
|
|
25749
|
+
if (P) {
|
|
25750
25750
|
const ve = at(n, {
|
|
25751
25751
|
doc: t,
|
|
25752
25752
|
mirror: i,
|
|
@@ -25768,16 +25768,16 @@ function at(n, e) {
|
|
|
25768
25768
|
onSerialize: A,
|
|
25769
25769
|
onIframeLoad: M,
|
|
25770
25770
|
iframeLoadTimeout: x,
|
|
25771
|
-
onStylesheetLoad:
|
|
25771
|
+
onStylesheetLoad: P,
|
|
25772
25772
|
stylesheetLoadTimeout: D,
|
|
25773
25773
|
keepIframeSrcFn: j
|
|
25774
25774
|
});
|
|
25775
|
-
ve &&
|
|
25775
|
+
ve && P(n, ve);
|
|
25776
25776
|
}
|
|
25777
25777
|
}, D), G;
|
|
25778
25778
|
}
|
|
25779
25779
|
function wc(n, e) {
|
|
25780
|
-
const { mirror: t = new Fa(), blockClass: i = "rr-block", blockSelector: s = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: l = !0, inlineImages: c = !1, recordCanvas: p = !1, maskAllInputs: m = !1, maskTextFn: g, maskInputFn: f, slimDOM: b = !1, dataURLOptions: S, preserveWhiteSpace: C, onSerialize: w, onIframeLoad: A, iframeLoadTimeout: M, onStylesheetLoad: x, stylesheetLoadTimeout:
|
|
25780
|
+
const { mirror: t = new Fa(), blockClass: i = "rr-block", blockSelector: s = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: l = !0, inlineImages: c = !1, recordCanvas: p = !1, maskAllInputs: m = !1, maskTextFn: g, maskInputFn: f, slimDOM: b = !1, dataURLOptions: S, preserveWhiteSpace: C, onSerialize: w, onIframeLoad: A, iframeLoadTimeout: M, onStylesheetLoad: x, stylesheetLoadTimeout: P, keepIframeSrcFn: D = () => !1 } = e || {};
|
|
25781
25781
|
return at(n, {
|
|
25782
25782
|
doc: n,
|
|
25783
25783
|
mirror: t,
|
|
@@ -25829,7 +25829,7 @@ function wc(n, e) {
|
|
|
25829
25829
|
onIframeLoad: A,
|
|
25830
25830
|
iframeLoadTimeout: M,
|
|
25831
25831
|
onStylesheetLoad: x,
|
|
25832
|
-
stylesheetLoadTimeout:
|
|
25832
|
+
stylesheetLoadTimeout: P,
|
|
25833
25833
|
keepIframeSrcFn: D,
|
|
25834
25834
|
newlyAddedElement: !1
|
|
25835
25835
|
});
|
|
@@ -26504,7 +26504,7 @@ const Rc = ["INPUT", "TEXTAREA", "SELECT"], Qs = /* @__PURE__ */ new WeakMap();
|
|
|
26504
26504
|
function Hc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ignoreClass: a, ignoreSelector: o, maskInputOptions: l, maskInputFn: c, sampling: p, userTriggeredOnInput: m }) {
|
|
26505
26505
|
function g(M) {
|
|
26506
26506
|
let x = It(M);
|
|
26507
|
-
const
|
|
26507
|
+
const P = M.isTrusted, D = x && x.tagName;
|
|
26508
26508
|
if (x && D === "OPTION" && (x = x.parentElement), !x || !D || Rc.indexOf(D) < 0 || Re(x, i, s, !0) || x.classList.contains(a) || o && x.matches(o))
|
|
26509
26509
|
return;
|
|
26510
26510
|
let j = x.value, Q = !1;
|
|
@@ -26516,7 +26516,7 @@ function Hc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ig
|
|
|
26516
26516
|
type: K,
|
|
26517
26517
|
value: j,
|
|
26518
26518
|
maskInputFn: c
|
|
26519
|
-
})), f(x, m ? { text: j, isChecked: Q, userTriggered:
|
|
26519
|
+
})), f(x, m ? { text: j, isChecked: Q, userTriggered: P } : { text: j, isChecked: Q });
|
|
26520
26520
|
const q = x.name;
|
|
26521
26521
|
K === "radio" && q && Q && e.querySelectorAll(`input[type="radio"][name="${q}"]`).forEach((ce) => {
|
|
26522
26522
|
if (ce !== x) {
|
|
@@ -26526,8 +26526,8 @@ function Hc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ig
|
|
|
26526
26526
|
});
|
|
26527
26527
|
}
|
|
26528
26528
|
function f(M, x) {
|
|
26529
|
-
const
|
|
26530
|
-
if (!
|
|
26529
|
+
const P = Qs.get(M);
|
|
26530
|
+
if (!P || P.text !== x.text || P.isChecked !== x.isChecked) {
|
|
26531
26531
|
Qs.set(M, x);
|
|
26532
26532
|
const D = t.getId(M);
|
|
26533
26533
|
Y(n)(Object.assign(Object.assign({}, x), { id: D }));
|
|
@@ -27419,15 +27419,15 @@ var sd = id(
|
|
|
27419
27419
|
function w(x) {
|
|
27420
27420
|
try {
|
|
27421
27421
|
M(f.next(x));
|
|
27422
|
-
} catch (
|
|
27423
|
-
C(
|
|
27422
|
+
} catch (P) {
|
|
27423
|
+
C(P);
|
|
27424
27424
|
}
|
|
27425
27425
|
}
|
|
27426
27426
|
function A(x) {
|
|
27427
27427
|
try {
|
|
27428
27428
|
M(f.throw(x));
|
|
27429
|
-
} catch (
|
|
27430
|
-
C(
|
|
27429
|
+
} catch (P) {
|
|
27430
|
+
C(P);
|
|
27431
27431
|
}
|
|
27432
27432
|
}
|
|
27433
27433
|
function M(x) {
|
|
@@ -27465,7 +27465,7 @@ var sd = id(
|
|
|
27465
27465
|
if ("OffscreenCanvas" in globalThis) {
|
|
27466
27466
|
const { id: m, bitmap: g, width: f, height: b, dataURLOptions: S } = p.data, C = l(f, b, S), w = new OffscreenCanvas(f, b);
|
|
27467
27467
|
w.getContext("2d").drawImage(g, 0, 0), g.close();
|
|
27468
|
-
const M = yield w.convertToBlob(S), x = M.type,
|
|
27468
|
+
const M = yield w.convertToBlob(S), x = M.type, P = yield M.arrayBuffer(), D = s(P);
|
|
27469
27469
|
if (!a.has(m) && (yield C) === D)
|
|
27470
27470
|
return a.set(m, D), c.postMessage({ id: m });
|
|
27471
27471
|
if (a.get(m) === D)
|
|
@@ -27685,7 +27685,7 @@ function Ce(n) {
|
|
|
27685
27685
|
let me, ui, ji, Ci = !1;
|
|
27686
27686
|
const Ye = ec();
|
|
27687
27687
|
function Dt(n = {}) {
|
|
27688
|
-
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: l = null, maskTextClass: c = "rr-mask", maskTextSelector: p = null, inlineStylesheet: m = !0, maskAllInputs: g, maskInputOptions: f, slimDOMOptions: b, maskInputFn: S, maskTextFn: C, hooks: w, packFn: A, sampling: M = {}, dataURLOptions: x = {}, mousemoveWait:
|
|
27688
|
+
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: l = null, maskTextClass: c = "rr-mask", maskTextSelector: p = null, inlineStylesheet: m = !0, maskAllInputs: g, maskInputOptions: f, slimDOMOptions: b, maskInputFn: S, maskTextFn: C, hooks: w, packFn: A, sampling: M = {}, dataURLOptions: x = {}, mousemoveWait: P, recordDOM: D = !0, recordCanvas: j = !1, recordCrossOriginIframes: Q = !1, recordAfter: K = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: q = !1, collectFonts: ce = !1, inlineImages: Me = !1, plugins: G, keepIframeSrcFn: De = () => !1, ignoreCSSAttributes: ve = /* @__PURE__ */ new Set([]), errorHandler: Ke } = n;
|
|
27689
27689
|
Ec(Ke);
|
|
27690
27690
|
const xe = Q ? window.parent === window : !0;
|
|
27691
27691
|
let un = !1;
|
|
@@ -27697,7 +27697,7 @@ function Dt(n = {}) {
|
|
|
27697
27697
|
}
|
|
27698
27698
|
if (xe && !e)
|
|
27699
27699
|
throw new Error("emit function is required");
|
|
27700
|
-
|
|
27700
|
+
P !== void 0 && M.mousemove === void 0 && (M.mousemove = P), Ye.reset();
|
|
27701
27701
|
const an = g === !0 ? {
|
|
27702
27702
|
color: !0,
|
|
27703
27703
|
date: !0,
|
|
@@ -28668,10 +28668,10 @@ v.dom_query = /* @__PURE__ */ function() {
|
|
|
28668
28668
|
t(p[f], x) && (w[C++] = p[f]);
|
|
28669
28669
|
continue;
|
|
28670
28670
|
}
|
|
28671
|
-
var
|
|
28672
|
-
if (
|
|
28673
|
-
c =
|
|
28674
|
-
var D =
|
|
28671
|
+
var P = o.match(dd);
|
|
28672
|
+
if (P) {
|
|
28673
|
+
c = P[1];
|
|
28674
|
+
var D = P[2], j = P[3], Q = P[4];
|
|
28675
28675
|
for (c || (c = "*"), p = [], m = 0, f = 0; f < w.length; f++)
|
|
28676
28676
|
for (c == "*" ? S = n(w[f]) : S = w[f].getElementsByTagName(c), b = 0; b < S.length; b++)
|
|
28677
28677
|
p[m++] = S[b];
|
|
@@ -30130,8 +30130,8 @@ L.prototype._send_request = function(n, e, t, i) {
|
|
|
30130
30130
|
var A;
|
|
30131
30131
|
try {
|
|
30132
30132
|
A = v.JSONDecode(f.responseText);
|
|
30133
|
-
} catch (
|
|
30134
|
-
if (m.report_error(
|
|
30133
|
+
} catch (P) {
|
|
30134
|
+
if (m.report_error(P), t.ignore_json_errors)
|
|
30135
30135
|
A = f.responseText;
|
|
30136
30136
|
else
|
|
30137
30137
|
return;
|
|
@@ -30662,7 +30662,7 @@ class Mo {
|
|
|
30662
30662
|
), i = this.container.querySelector(
|
|
30663
30663
|
"#long-processing-text"
|
|
30664
30664
|
), s = this.container.querySelector("#confirmed-text");
|
|
30665
|
-
i && (i.innerHTML =
|
|
30665
|
+
i && (i.innerHTML = E["long-processing"]), s && (s.innerHTML = E["once-confirmed"]), t && (t.innerHTML = z["merchant-back"]), e && e.addEventListener("click", () => {
|
|
30666
30666
|
var a;
|
|
30667
30667
|
_.track("redirect_to_merchant", {
|
|
30668
30668
|
payment_method: this.paymentMethod,
|
|
@@ -30741,7 +30741,7 @@ class Vd {
|
|
|
30741
30741
|
), t = this.container.querySelector(
|
|
30742
30742
|
"#confirming-txn-status-end-text"
|
|
30743
30743
|
), i = this.container.querySelector("#please-wait-text"), s = this.container.querySelector("#minutes-text");
|
|
30744
|
-
e && (e.innerHTML =
|
|
30744
|
+
e && (e.innerHTML = E["confirming-txn-status"]), t && (t.innerHTML = E["few-minutes"]), i && (i.innerHTML = E["please-wait-for"]), s && (s.innerHTML = E.minutes), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
30745
30745
|
const a = 3e4;
|
|
30746
30746
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
30747
30747
|
this.verifyCardPayment(
|
|
@@ -31295,7 +31295,7 @@ class jd {
|
|
|
31295
31295
|
showPaymentMethods: A,
|
|
31296
31296
|
onClose: M,
|
|
31297
31297
|
restartTransactionProcess: x,
|
|
31298
|
-
retryingPayment:
|
|
31298
|
+
retryingPayment: P,
|
|
31299
31299
|
keys: D,
|
|
31300
31300
|
testcardIsVisible: j
|
|
31301
31301
|
}) {
|
|
@@ -31348,7 +31348,7 @@ class jd {
|
|
|
31348
31348
|
d(this, "translatedAvsData");
|
|
31349
31349
|
this.currency = c, this.onSuccess = f || (() => null), this.keys = D, this.testcardIsVisible = j, this.container = i, this.encryption = a, this.token = l, this.customer = s, this.planId = o, this.amount = e, this.totalAmount = t, this.rdtCode = p, this.url = m, this.reference = g, this.callBackUrl = b, this.metadata = S, this.localCurrency = C, this._currentStep = 1, this.activeRef = "", this.contents = this.container.querySelector(
|
|
31350
31350
|
"#payment-content-view"
|
|
31351
|
-
), this.cardResponse = {}, this.cardResponseHeader = {}, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.restartTransactionProcess = x, this.retryingPayment =
|
|
31351
|
+
), this.cardResponse = {}, this.cardResponseHeader = {}, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.restartTransactionProcess = x, this.retryingPayment = P, this.isMaxRetriesReached = !1, this.isCancelledPlan = !1, this.errorText = "", this.otpMessage = "", this.renderCardContent(), this.rawAvsData = {
|
|
31352
31352
|
"billing-address": "Billing address",
|
|
31353
31353
|
address: "Address",
|
|
31354
31354
|
city: "City",
|
|
@@ -31466,7 +31466,7 @@ class jd {
|
|
|
31466
31466
|
verification_status: "Failed",
|
|
31467
31467
|
authentication_type: "None"
|
|
31468
31468
|
}), this.cardResponse = c, this.cardResponseHeader = p, c.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31469
|
-
|
|
31469
|
+
E["payment-failed"]
|
|
31470
31470
|
), this.warningScreen.hideReportIssue();
|
|
31471
31471
|
else if (!["success", "successful"].includes(c.status) && c.status !== "failed")
|
|
31472
31472
|
if (this.cardResponse = c, this.cardResponseHeader = p, c != null && c.authorization) {
|
|
@@ -31495,7 +31495,7 @@ class jd {
|
|
|
31495
31495
|
}
|
|
31496
31496
|
} else
|
|
31497
31497
|
this.currentStep = 4, c.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31498
|
-
|
|
31498
|
+
E["error-with-payment"]
|
|
31499
31499
|
), this.warningScreen.hideReportIssue();
|
|
31500
31500
|
else ["success", "successful"].includes(c.status) && (this.currentStep = 5, this.cardResponse = c, this.cardResponseHeader = p, _.track("verify_payment", {
|
|
31501
31501
|
payment_method: "Card",
|
|
@@ -31511,8 +31511,8 @@ class jd {
|
|
|
31511
31511
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 4, _.track("max_retries_reached", {
|
|
31512
31512
|
payment_method: "Card"
|
|
31513
31513
|
}), this.warningScreen.setPaymentError(
|
|
31514
|
-
|
|
31515
|
-
|
|
31514
|
+
E["maximum-retries"],
|
|
31515
|
+
E["maximum-retries-desc"],
|
|
31516
31516
|
z["merchant-back"]
|
|
31517
31517
|
);
|
|
31518
31518
|
else {
|
|
@@ -31530,7 +31530,7 @@ class jd {
|
|
|
31530
31530
|
)) : (this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText));
|
|
31531
31531
|
} else
|
|
31532
31532
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31533
|
-
|
|
31533
|
+
E["payment-failed"]
|
|
31534
31534
|
);
|
|
31535
31535
|
this.warningScreen.hideReportIssue();
|
|
31536
31536
|
}
|
|
@@ -31576,7 +31576,7 @@ class jd {
|
|
|
31576
31576
|
verification_status: "Failed",
|
|
31577
31577
|
authentication_type: "PIN"
|
|
31578
31578
|
}), this.currentStep = 4, o.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31579
|
-
|
|
31579
|
+
E["payment-failed"]
|
|
31580
31580
|
), this.warningScreen.hideReportIssue();
|
|
31581
31581
|
else if (["success", "successful", "failed"].includes(o.status))
|
|
31582
31582
|
this.currentStep = 5, this.redirectTo(o, l, "success"), _.track("verify_payment", {
|
|
@@ -31621,7 +31621,7 @@ class jd {
|
|
|
31621
31621
|
this.errorText = l, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31622
31622
|
} else
|
|
31623
31623
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31624
|
-
|
|
31624
|
+
E["payment-failed"]
|
|
31625
31625
|
);
|
|
31626
31626
|
this.warningScreen.hideReportIssue();
|
|
31627
31627
|
});
|
|
@@ -31666,7 +31666,7 @@ class jd {
|
|
|
31666
31666
|
verification_status: "Failed",
|
|
31667
31667
|
authentication_type: "AVS"
|
|
31668
31668
|
}), l.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31669
|
-
|
|
31669
|
+
E["payment-failed"]
|
|
31670
31670
|
), this.warningScreen.hideReportIssue();
|
|
31671
31671
|
else if (["success", "successful", "failed"].includes(l.status))
|
|
31672
31672
|
["success", "successful"].includes(l.status) && (this.currentStep = 5, this.redirectTo(l, c, "success"), _.track("verify_payment", {
|
|
@@ -31702,7 +31702,7 @@ class jd {
|
|
|
31702
31702
|
this.errorText = c, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31703
31703
|
} else
|
|
31704
31704
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31705
|
-
|
|
31705
|
+
E["payment-failed"]
|
|
31706
31706
|
);
|
|
31707
31707
|
this.warningScreen.hideReportIssue();
|
|
31708
31708
|
}).finally(() => {
|
|
@@ -31741,7 +31741,7 @@ class jd {
|
|
|
31741
31741
|
verification_status: "Failed",
|
|
31742
31742
|
authentication_type: "PIN+0TP"
|
|
31743
31743
|
}), a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31744
|
-
|
|
31744
|
+
E["payment-failed"]
|
|
31745
31745
|
), this.warningScreen.hideReportIssue();
|
|
31746
31746
|
else if (["success", "successful", "failed"].includes(a.status))
|
|
31747
31747
|
["success", "successful"].includes(a.status) && (this.currentStep = 5, this.redirectTo(a, o, "success"), _.track("verify_payment", {
|
|
@@ -31784,7 +31784,7 @@ class jd {
|
|
|
31784
31784
|
this.errorText = o, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31785
31785
|
} else
|
|
31786
31786
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31787
|
-
|
|
31787
|
+
E["payment-failed"]
|
|
31788
31788
|
);
|
|
31789
31789
|
this.warningScreen.hideReportIssue();
|
|
31790
31790
|
});
|
|
@@ -31818,7 +31818,7 @@ class jd {
|
|
|
31818
31818
|
this.errorText = a;
|
|
31819
31819
|
}
|
|
31820
31820
|
this.currentStep = 4, s.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31821
|
-
|
|
31821
|
+
E["payment-failed"]
|
|
31822
31822
|
), this.warningScreen.hideReportIssue(), _.track("verify_payment", {
|
|
31823
31823
|
payment_method: "Card",
|
|
31824
31824
|
verification_status: "Failed",
|
|
@@ -31854,7 +31854,7 @@ class jd {
|
|
|
31854
31854
|
this.errorText = c;
|
|
31855
31855
|
}
|
|
31856
31856
|
this.currentStep = 4, l.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31857
|
-
|
|
31857
|
+
E["payment-failed"]
|
|
31858
31858
|
), this.warningScreen.hideReportIssue(), _.track("verify_payment", {
|
|
31859
31859
|
payment_method: "Card",
|
|
31860
31860
|
verification_status: "Failed",
|
|
@@ -31882,7 +31882,7 @@ class jd {
|
|
|
31882
31882
|
verification_status: "Null",
|
|
31883
31883
|
authentication_type: "3DS"
|
|
31884
31884
|
}), this.warningScreen.setPaymentError(
|
|
31885
|
-
|
|
31885
|
+
E["payment-failed"]
|
|
31886
31886
|
), this.warningScreen.hideReportIssue();
|
|
31887
31887
|
}
|
|
31888
31888
|
}
|
|
@@ -31923,7 +31923,7 @@ class jd {
|
|
|
31923
31923
|
authentication_type: "3DS",
|
|
31924
31924
|
verification_status: "Failed"
|
|
31925
31925
|
}), t.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31926
|
-
|
|
31926
|
+
E["payment-failed"]
|
|
31927
31927
|
), this.warningScreen.hideReportIssue()) : ["success", "successful"].includes(t.status) ? (this.currentStep = 5, _.track("charge_3ds_payment", {
|
|
31928
31928
|
payment_method: "Card",
|
|
31929
31929
|
authentication_type: "3DS",
|
|
@@ -31933,7 +31933,7 @@ class jd {
|
|
|
31933
31933
|
authentication_type: "3DS",
|
|
31934
31934
|
verification_status: "Null"
|
|
31935
31935
|
}), t.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31936
|
-
|
|
31936
|
+
E["payment-failed"]
|
|
31937
31937
|
), this.warningScreen.hideReportIssue());
|
|
31938
31938
|
}).catch(async (t) => {
|
|
31939
31939
|
if (_.track("charge_3ds_payment", {
|
|
@@ -31948,7 +31948,7 @@ class jd {
|
|
|
31948
31948
|
this.errorText = i, this.currentStep = 4, this.warningScreen.setPaymentError(this.errorText);
|
|
31949
31949
|
} else
|
|
31950
31950
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
31951
|
-
|
|
31951
|
+
E["payment-failed"]
|
|
31952
31952
|
);
|
|
31953
31953
|
this.warningScreen.hideReportIssue();
|
|
31954
31954
|
});
|
|
@@ -31994,7 +31994,7 @@ class jd {
|
|
|
31994
31994
|
container: this.contents,
|
|
31995
31995
|
onClose: this.onClose,
|
|
31996
31996
|
onAction: (A) => (M) => this.submitOtp.bind(this)(A, M),
|
|
31997
|
-
otpMessage: this.otpMessage ||
|
|
31997
|
+
otpMessage: this.otpMessage || E["Payment failed"]
|
|
31998
31998
|
}), this.cardOtpValidationForm.renderComponent();
|
|
31999
31999
|
break;
|
|
32000
32000
|
case 4:
|
|
@@ -32037,7 +32037,7 @@ class jd {
|
|
|
32037
32037
|
this.errorText = x;
|
|
32038
32038
|
}
|
|
32039
32039
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
32040
|
-
this.errorText ||
|
|
32040
|
+
this.errorText || E["payment-failed"]
|
|
32041
32041
|
);
|
|
32042
32042
|
},
|
|
32043
32043
|
url: this.url,
|
|
@@ -32296,7 +32296,7 @@ var Lo = { exports: {} };
|
|
|
32296
32296
|
return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, x) {
|
|
32297
32297
|
M.__proto__ = x;
|
|
32298
32298
|
} || function(M, x) {
|
|
32299
|
-
for (var
|
|
32299
|
+
for (var P in x) x.hasOwnProperty(P) && (M[P] = x[P]);
|
|
32300
32300
|
}, C(w, A);
|
|
32301
32301
|
};
|
|
32302
32302
|
return function(w, A) {
|
|
@@ -32321,10 +32321,10 @@ var Lo = { exports: {} };
|
|
|
32321
32321
|
var x = w[M] << 16 | w[M + 1] << 8 | w[M + 2];
|
|
32322
32322
|
A += this._encodeByte(x >>> 3 * 6 & 63), A += this._encodeByte(x >>> 2 * 6 & 63), A += this._encodeByte(x >>> 1 * 6 & 63), A += this._encodeByte(x >>> 0 * 6 & 63);
|
|
32323
32323
|
}
|
|
32324
|
-
var
|
|
32325
|
-
if (
|
|
32326
|
-
var x = w[M] << 16 | (
|
|
32327
|
-
A += this._encodeByte(x >>> 3 * 6 & 63), A += this._encodeByte(x >>> 2 * 6 & 63),
|
|
32324
|
+
var P = w.length - M;
|
|
32325
|
+
if (P > 0) {
|
|
32326
|
+
var x = w[M] << 16 | (P === 2 ? w[M + 1] << 8 : 0);
|
|
32327
|
+
A += this._encodeByte(x >>> 3 * 6 & 63), A += this._encodeByte(x >>> 2 * 6 & 63), P === 2 ? A += this._encodeByte(x >>> 1 * 6 & 63) : A += this._paddingCharacter || "", A += this._paddingCharacter || "";
|
|
32328
32328
|
}
|
|
32329
32329
|
return A;
|
|
32330
32330
|
}, C.prototype.maxDecodedLength = function(w) {
|
|
@@ -32334,9 +32334,9 @@ var Lo = { exports: {} };
|
|
|
32334
32334
|
}, C.prototype.decode = function(w) {
|
|
32335
32335
|
if (w.length === 0)
|
|
32336
32336
|
return new Uint8Array(0);
|
|
32337
|
-
for (var A = this._getPaddingLength(w), M = w.length - A, x = new Uint8Array(this.maxDecodedLength(M)),
|
|
32338
|
-
Q = this._decodeChar(w.charCodeAt(D + 0)), K = this._decodeChar(w.charCodeAt(D + 1)), q = this._decodeChar(w.charCodeAt(D + 2)), ce = this._decodeChar(w.charCodeAt(D + 3)), x[
|
|
32339
|
-
if (D < M - 1 && (Q = this._decodeChar(w.charCodeAt(D)), K = this._decodeChar(w.charCodeAt(D + 1)), x[
|
|
32337
|
+
for (var A = this._getPaddingLength(w), M = w.length - A, x = new Uint8Array(this.maxDecodedLength(M)), P = 0, D = 0, j = 0, Q = 0, K = 0, q = 0, ce = 0; D < M - 4; D += 4)
|
|
32338
|
+
Q = this._decodeChar(w.charCodeAt(D + 0)), K = this._decodeChar(w.charCodeAt(D + 1)), q = this._decodeChar(w.charCodeAt(D + 2)), ce = this._decodeChar(w.charCodeAt(D + 3)), x[P++] = Q << 2 | K >>> 4, x[P++] = K << 4 | q >>> 2, x[P++] = q << 6 | ce, j |= Q & o, j |= K & o, j |= q & o, j |= ce & o;
|
|
32339
|
+
if (D < M - 1 && (Q = this._decodeChar(w.charCodeAt(D)), K = this._decodeChar(w.charCodeAt(D + 1)), x[P++] = Q << 2 | K >>> 4, j |= Q & o, j |= K & o), D < M - 2 && (q = this._decodeChar(w.charCodeAt(D + 2)), x[P++] = K << 4 | q >>> 2, j |= q & o), D < M - 3 && (ce = this._decodeChar(w.charCodeAt(D + 3)), x[P++] = q << 6 | ce, j |= ce & o), j !== 0)
|
|
32340
32340
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
32341
32341
|
return x;
|
|
32342
32342
|
}, C.prototype._encodeByte = function(w) {
|
|
@@ -32614,7 +32614,7 @@ var Lo = { exports: {} };
|
|
|
32614
32614
|
super(r), Object.setPrototypeOf(this, new.target.prototype);
|
|
32615
32615
|
}
|
|
32616
32616
|
}
|
|
32617
|
-
class
|
|
32617
|
+
class P extends Error {
|
|
32618
32618
|
constructor(r) {
|
|
32619
32619
|
super(r), Object.setPrototypeOf(this, new.target.prototype);
|
|
32620
32620
|
}
|
|
@@ -34569,7 +34569,7 @@ var Lo = { exports: {} };
|
|
|
34569
34569
|
}, $ = function() {
|
|
34570
34570
|
ie();
|
|
34571
34571
|
var ge;
|
|
34572
|
-
ge = Vn(k), u(new
|
|
34572
|
+
ge = Vn(k), u(new P(ge));
|
|
34573
34573
|
}, ie = function() {
|
|
34574
34574
|
k.unbind("initialized", I), k.unbind("open", B), k.unbind("error", O), k.unbind("closed", $);
|
|
34575
34575
|
};
|
|
@@ -34953,7 +34953,7 @@ class ha {
|
|
|
34953
34953
|
"#account-number-text"
|
|
34954
34954
|
), C = this.container.querySelector("#expiration-text");
|
|
34955
34955
|
p && (p.innerHTML = Fe["transfer-header"]), f && (f.innerHTML = z.amount), b.forEach((w) => {
|
|
34956
|
-
w.innerHTML =
|
|
34956
|
+
w.innerHTML = E.copy;
|
|
34957
34957
|
}), S && (S.innerHTML = Fe["account-number"]), m && (m.innerHTML = Fe["bank-name"]), g && (g.innerHTML = Fe.beneficiary), C && (C.innerHTML = Fe["expiration-text"]), i && e && i.addEventListener("click", () => {
|
|
34958
34958
|
s && (t && _.track("copy_transferBank", {
|
|
34959
34959
|
payment_method: "Transfer",
|
|
@@ -34990,9 +34990,9 @@ class ha {
|
|
|
34990
34990
|
}
|
|
34991
34991
|
copyToClipboard(e, t) {
|
|
34992
34992
|
navigator.clipboard.writeText(e).then(() => {
|
|
34993
|
-
t.innerHTML =
|
|
34993
|
+
t.innerHTML = E.copied;
|
|
34994
34994
|
}).catch(() => {
|
|
34995
|
-
t.innerHTML =
|
|
34995
|
+
t.innerHTML = E["copy-fail"];
|
|
34996
34996
|
});
|
|
34997
34997
|
}
|
|
34998
34998
|
renderComponent(e) {
|
|
@@ -35012,8 +35012,8 @@ class ha {
|
|
|
35012
35012
|
payment_method: "Transfer",
|
|
35013
35013
|
verification_status: "Success"
|
|
35014
35014
|
}), x != null && x.redirectUrl && setTimeout(() => {
|
|
35015
|
-
const
|
|
35016
|
-
|
|
35015
|
+
const P = new URL(x.redirectUrl);
|
|
35016
|
+
P.searchParams.append("status", x.status), P.searchParams.append("reference", x.reference), window.location.href = P.toString();
|
|
35017
35017
|
}, 1800)) : x.status === "failed" && (clearInterval(this.timerId || void 0), this.onFail(7, "Transfer failed"), _.track("verify_payment", {
|
|
35018
35018
|
payment_method: "Transfer",
|
|
35019
35019
|
verification_status: "Failed"
|
|
@@ -35136,7 +35136,7 @@ class Jd {
|
|
|
35136
35136
|
), i = this.container.querySelector(
|
|
35137
35137
|
"#account-details-text"
|
|
35138
35138
|
), s = this.container.querySelector("#please-wait-text"), a = this.container.querySelector("#minutes-text"), o = this.container.querySelector("#bankname-text"), l = this.container.querySelector("#beneficiary-text"), c = this.container.querySelector("#transfer-bank"), p = this.container.querySelector("#transfer-acn-pr"), m = this.container.querySelector("#copy-acn-pr"), g = this.container.querySelector("#acn-tooltip-pr");
|
|
35139
|
-
e && (e.innerHTML =
|
|
35139
|
+
e && (e.innerHTML = E["confirming-txn-status"]), t && (t.innerHTML = E["few-minutes"]), s && (s.innerHTML = E["please-wait-for"]), a && (a.innerHTML = E.minutes), o && (o.innerHTML = Fe["bank-name"]), l && (l.innerHTML = Fe.beneficiary), i && (i.innerHTML = Fe["account-details"]);
|
|
35140
35140
|
const f = this.container.querySelector("#show-acn");
|
|
35141
35141
|
f && f.addEventListener("click", () => {
|
|
35142
35142
|
this.onAction(1), clearTimeout(this.timer);
|
|
@@ -35146,7 +35146,7 @@ class Jd {
|
|
|
35146
35146
|
payment_process: "Payment Verification",
|
|
35147
35147
|
account_number: p.innerHTML,
|
|
35148
35148
|
bank_name: c == null ? void 0 : c.innerHTML
|
|
35149
|
-
}), g && (g.innerHTML =
|
|
35149
|
+
}), g && (g.innerHTML = E.copy, this.copyToClipboard(p.innerHTML, g));
|
|
35150
35150
|
}), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
35151
35151
|
const b = 3e4;
|
|
35152
35152
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
@@ -35213,9 +35213,9 @@ class Jd {
|
|
|
35213
35213
|
}
|
|
35214
35214
|
copyToClipboard(e, t) {
|
|
35215
35215
|
navigator.clipboard.writeText(e).then(() => {
|
|
35216
|
-
t.innerHTML =
|
|
35216
|
+
t.innerHTML = E.copied;
|
|
35217
35217
|
}).catch(() => {
|
|
35218
|
-
t.innerHTML =
|
|
35218
|
+
t.innerHTML = E["copy-fail"];
|
|
35219
35219
|
});
|
|
35220
35220
|
}
|
|
35221
35221
|
renderComponent(e) {
|
|
@@ -35416,7 +35416,7 @@ class $d {
|
|
|
35416
35416
|
payment_method: "Transfer",
|
|
35417
35417
|
verification_status: "Failed"
|
|
35418
35418
|
}), a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
35419
|
-
|
|
35419
|
+
E["payment-failed"]
|
|
35420
35420
|
), this.warningScreen.hideReportIssue();
|
|
35421
35421
|
else if (e && t && (e.classList.add("hidden"), t.classList.remove("hidden")), this.activeRef = a.reference, this.paymentResponse = a, a.bankDetails && a.bankDetails.accountNumber)
|
|
35422
35422
|
this.transferDetails = new ha({
|
|
@@ -35457,8 +35457,8 @@ class $d {
|
|
|
35457
35457
|
this.isMaxRetriesReached = !0, this.verifyTransfer(), this.currentStep = 7, _.track("max_retries_reached", {
|
|
35458
35458
|
payment_method: "Transfer"
|
|
35459
35459
|
}), this.warningScreen.setPaymentError(
|
|
35460
|
-
|
|
35461
|
-
|
|
35460
|
+
E["maximum-retries"],
|
|
35461
|
+
E["maximum-retries-desc"],
|
|
35462
35462
|
z["merchant-back"]
|
|
35463
35463
|
);
|
|
35464
35464
|
else if (a != null && a.message) {
|
|
@@ -35469,7 +35469,7 @@ class $d {
|
|
|
35469
35469
|
this.errorText = o, this.currentStep = 7, this.warningScreen.setPaymentError(this.errorText);
|
|
35470
35470
|
} else
|
|
35471
35471
|
this.currentStep = 7, this.warningScreen.setPaymentError(
|
|
35472
|
-
|
|
35472
|
+
E["payment-failed"]
|
|
35473
35473
|
);
|
|
35474
35474
|
this.warningScreen.hideReportIssue();
|
|
35475
35475
|
});
|
|
@@ -35581,7 +35581,7 @@ class $d {
|
|
|
35581
35581
|
this.errorText = o;
|
|
35582
35582
|
}
|
|
35583
35583
|
this.warningScreen.setPaymentError(
|
|
35584
|
-
this.errorText ||
|
|
35584
|
+
this.errorText || E["payment-failed"]
|
|
35585
35585
|
);
|
|
35586
35586
|
},
|
|
35587
35587
|
token: this.token,
|
|
@@ -35608,9 +35608,9 @@ class $d {
|
|
|
35608
35608
|
}
|
|
35609
35609
|
copyToClipboard(e, t) {
|
|
35610
35610
|
navigator.clipboard.writeText(e).then(() => {
|
|
35611
|
-
t.innerHTML =
|
|
35611
|
+
t.innerHTML = E.copied;
|
|
35612
35612
|
}).catch(() => {
|
|
35613
|
-
t.innerHTML =
|
|
35613
|
+
t.innerHTML = E["copy-fail"];
|
|
35614
35614
|
});
|
|
35615
35615
|
}
|
|
35616
35616
|
destroyTimer() {
|
|
@@ -36545,7 +36545,7 @@ class hu {
|
|
|
36545
36545
|
"#designated-rate-mob"
|
|
36546
36546
|
), w = this.container.querySelector(
|
|
36547
36547
|
"#designated-rate-no-plan"
|
|
36548
|
-
), A = this.container.querySelector("#source-rate"), M = this.container.querySelector("#source-rate-mob"), x = this.container.querySelector("#tax-rate"),
|
|
36548
|
+
), A = this.container.querySelector("#source-rate"), M = this.container.querySelector("#source-rate-mob"), x = this.container.querySelector("#tax-rate"), P = this.container.querySelector("#tax-rate-mob"), D = this.container.querySelector("#tooltip-localCurrency"), j = this.container.querySelector(
|
|
36549
36549
|
"#tooltip-localCurrency-mob"
|
|
36550
36550
|
), Q = this.container.querySelector(
|
|
36551
36551
|
"#select-payment-method-text"
|
|
@@ -36571,7 +36571,7 @@ class hu {
|
|
|
36571
36571
|
}
|
|
36572
36572
|
});
|
|
36573
36573
|
}
|
|
36574
|
-
if (Q && (Q.innerHTML = z.select_payment_method_text), K && (K.innerHTML = `${z.amount}:`), Ke && (Ke.innerHTML = `${z["to-pay"]}:`), q && (q.innerHTML =
|
|
36574
|
+
if (Q && (Q.innerHTML = z.select_payment_method_text), K && (K.innerHTML = `${z.amount}:`), Ke && (Ke.innerHTML = `${z["to-pay"]}:`), q && (q.innerHTML = E["what-is-this"]), ce && (ce.innerHTML = E["rate-reflect-note"]), Me && (Me.innerHTML = E["rate-please-note"]), G && (G.innerHTML = E["what-is-this"]), De && (De.innerHTML = E["rate-reflect-note"]), ve && (ve.innerHTML = E["rate-please-note"]), (On = this.merchantDetail) != null && On.merchantLogo ? t && t.setAttribute("src", (wn = this.merchantDetail) == null ? void 0 : wn.merchantLogo) : e && (t == null || t.remove(), e.innerHTML = `<div class="font-semibold text-tone-100 rounded-2xl w-8 h-8 bg-tone-10 container-center uppercase">${this.merchantDetail.merchantName[0]}</div>`), i && (i.innerHTML = this.email), s && (s.innerHTML = this.email), l) {
|
|
36575
36575
|
if ((mn = (Ge = this.merchantDetail) == null ? void 0 : Ge.plan) != null && mn.title) {
|
|
36576
36576
|
const Je = ((he = (Un = this.merchantDetail) == null ? void 0 : Un.plan) == null ? void 0 : he.title) || "";
|
|
36577
36577
|
l.textContent = ri(Je);
|
|
@@ -36601,7 +36601,7 @@ class hu {
|
|
|
36601
36601
|
}
|
|
36602
36602
|
A && (this.localCurrency && this.localCurrency !== this.currency ? A.children[1].innerHTML = `${this.localCurrency} ${Te(this.amount * (((Xn = (Yn = this.merchantDetail) == null ? void 0 : Yn.rate) == null ? void 0 : Xn.rate) || 1), 2)}` : A.remove()), M && (this.localCurrency && this.localCurrency !== this.currency ? M.children[1].innerHTML = `${this.localCurrency} ${Te(this.amount * (((Zt = (Wt = this.merchantDetail) == null ? void 0 : Wt.rate) == null ? void 0 : Zt.rate) || 1), 2)}` : M.remove());
|
|
36603
36603
|
const un = this.localCurrency !== this.currency ? this.amount * (((Jt = (Qt = this.merchantDetail) == null ? void 0 : Qt.rate) == null ? void 0 : Jt.rate) || 1) : this.amount;
|
|
36604
|
-
x && ($n = this.merchantDetail) != null && $n.taxQuoteId && (We = this.merchantDetail) != null && We.totalAmount && (x.classList.remove("hidden"), x.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Te(((Yt = this.merchantDetail) == null ? void 0 : Yt.totalAmount) - un, 2)}`),
|
|
36604
|
+
x && ($n = this.merchantDetail) != null && $n.taxQuoteId && (We = this.merchantDetail) != null && We.totalAmount && (x.classList.remove("hidden"), x.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Te(((Yt = this.merchantDetail) == null ? void 0 : Yt.totalAmount) - un, 2)}`), P && (pn = this.merchantDetail) != null && pn.taxQuoteId && (Xt = this.merchantDetail) != null && Xt.totalAmount && (P.classList.remove("hidden"), P.children[1].innerHTML = `${this.localCurrency !== this.currency ? this.localCurrency : this.currency} ${Te(((yt = this.merchantDetail) == null ? void 0 : yt.totalAmount) - un, 2)}`);
|
|
36605
36605
|
const an = ru[this.localCurrency];
|
|
36606
36606
|
D && this.localCurrency && (D.innerHTML = an ? `${an} (${this.localCurrency})` : this.localCurrency), j && this.localCurrency && (j.innerHTML = an ? `${an} (${this.localCurrency})` : this.localCurrency), this.renderPaymentOptions(this.container), this.attachListeners();
|
|
36607
36607
|
}
|
|
@@ -36757,7 +36757,7 @@ class pu {
|
|
|
36757
36757
|
), t = this.container.querySelector(
|
|
36758
36758
|
"#confirming-txn-status-end-text"
|
|
36759
36759
|
), i = this.container.querySelector("#please-wait-text"), s = this.container.querySelector("#minutes-text");
|
|
36760
|
-
e && (e.innerHTML =
|
|
36760
|
+
e && (e.innerHTML = E["confirming-txn-status"]), t && (t.innerHTML = E["few-minutes"]), i && (i.innerHTML = E["please-wait-for"]), s && (s.innerHTML = E.minutes), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
36761
36761
|
const a = 3e4;
|
|
36762
36762
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
36763
36763
|
this.verifyMobileMoney(
|
|
@@ -37194,7 +37194,7 @@ class Cu {
|
|
|
37194
37194
|
), i = this.container.querySelector(
|
|
37195
37195
|
"#long-processing-text"
|
|
37196
37196
|
), s = this.container.querySelector("#confirmed-text");
|
|
37197
|
-
i && (i.innerHTML =
|
|
37197
|
+
i && (i.innerHTML = E["long-processing"]), s && (s.innerHTML = E["once-confirmed"]), t && (t.innerHTML = z["merchant-back"]), e && e.addEventListener("click", () => {
|
|
37198
37198
|
var a;
|
|
37199
37199
|
_.track("redirect_to_merchant", {
|
|
37200
37200
|
payment_method: this.paymentMethod,
|
|
@@ -37238,7 +37238,7 @@ class Su {
|
|
|
37238
37238
|
showPaymentMethods: A,
|
|
37239
37239
|
onClose: M,
|
|
37240
37240
|
restartTransactionProcess: x,
|
|
37241
|
-
retryingPayment:
|
|
37241
|
+
retryingPayment: P,
|
|
37242
37242
|
countryCode: D
|
|
37243
37243
|
}) {
|
|
37244
37244
|
d(this, "contents");
|
|
@@ -37282,7 +37282,7 @@ class Su {
|
|
|
37282
37282
|
d(this, "otpMessage");
|
|
37283
37283
|
this.container = e, this.onSuccess = c || (() => null), this.token = b, this.currency = S, this.amount = g, this.totalAmount = f, this.contents = this.container.querySelector(
|
|
37284
37284
|
"#payment-content-view"
|
|
37285
|
-
), this._currentStep = 1, this.activeRef = "", this.token = t, this.customer = m, this.metadata = s, this.localCurrency = i, this.callBackUrl = a, this.localCurrency = i, this.rdtCode = o, this.url = p, this.reference = l, this.merchantDetails = {}, this.disablePaymentMethods = C, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = x, this.retryingPayment =
|
|
37285
|
+
), this._currentStep = 1, this.activeRef = "", this.token = t, this.customer = m, this.metadata = s, this.localCurrency = i, this.callBackUrl = a, this.localCurrency = i, this.rdtCode = o, this.url = p, this.reference = l, this.merchantDetails = {}, this.disablePaymentMethods = C, this.hidePaymentMethods = w, this.showPaymentMethods = A, this.onClose = M, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = x, this.retryingPayment = P, this.isMaxRetriesReached = !1, this.countryCode = D, this.errorText = "", this.otpMessage = "", _.track("mobile_money_opens", {
|
|
37286
37286
|
payment_method: "Mobile Money"
|
|
37287
37287
|
}), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
|
|
37288
37288
|
}
|
|
@@ -37369,7 +37369,7 @@ class Su {
|
|
|
37369
37369
|
}
|
|
37370
37370
|
if (l.status === "failed") {
|
|
37371
37371
|
this.currentStep = 5, l.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
37372
|
-
|
|
37372
|
+
E["payment-failed"]
|
|
37373
37373
|
), this.warningScreen.hideReportIssue(), _.track("start_payment_failed", {
|
|
37374
37374
|
payment_method: "Mobile Money",
|
|
37375
37375
|
verification_status: "Failed",
|
|
@@ -37398,8 +37398,8 @@ class Su {
|
|
|
37398
37398
|
verification_status: "Null"
|
|
37399
37399
|
}), l.code === "payment_max_retry_attempts")
|
|
37400
37400
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 5, this.warningScreen.setPaymentError(
|
|
37401
|
-
|
|
37402
|
-
|
|
37401
|
+
E["maximum-retries"],
|
|
37402
|
+
E["maximum-retries-desc"],
|
|
37403
37403
|
z["merchant-back"]
|
|
37404
37404
|
);
|
|
37405
37405
|
else {
|
|
@@ -37408,7 +37408,7 @@ class Su {
|
|
|
37408
37408
|
R()
|
|
37409
37409
|
);
|
|
37410
37410
|
this.errorText = c, l.message ? (this.currentStep = 5, this.warningScreen.setPaymentError(this.errorText)) : (this.currentStep = 5, this.warningScreen.setPaymentError(
|
|
37411
|
-
|
|
37411
|
+
E["payment-failed"]
|
|
37412
37412
|
));
|
|
37413
37413
|
}
|
|
37414
37414
|
this.warningScreen.hideReportIssue();
|
|
@@ -37727,7 +37727,7 @@ class ku {
|
|
|
37727
37727
|
this._currentStep = e, this.renderEftContent();
|
|
37728
37728
|
}
|
|
37729
37729
|
showLoader() {
|
|
37730
|
-
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
37730
|
+
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(E["verify-payment"]);
|
|
37731
37731
|
}
|
|
37732
37732
|
goBackToMerchant() {
|
|
37733
37733
|
Ie(
|
|
@@ -37789,7 +37789,7 @@ class ku {
|
|
|
37789
37789
|
}
|
|
37790
37790
|
if (a.status === "failed") {
|
|
37791
37791
|
this.currentStep = 4, a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
37792
|
-
|
|
37792
|
+
E["payment-failed"]
|
|
37793
37793
|
), _.track("start_payment", {
|
|
37794
37794
|
payment_method: "EFT",
|
|
37795
37795
|
verification_status: "Failed"
|
|
@@ -37805,8 +37805,8 @@ class ku {
|
|
|
37805
37805
|
}).catch(async (a) => {
|
|
37806
37806
|
if (a.code === "payment_max_retry_attempts")
|
|
37807
37807
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
37808
|
-
|
|
37809
|
-
|
|
37808
|
+
E["maximum-retries"],
|
|
37809
|
+
E["maximum-retries-desc"],
|
|
37810
37810
|
z["merchant-back"]
|
|
37811
37811
|
);
|
|
37812
37812
|
else if (a.message) {
|
|
@@ -37905,7 +37905,7 @@ class ku {
|
|
|
37905
37905
|
break;
|
|
37906
37906
|
case 3:
|
|
37907
37907
|
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
37908
|
-
|
|
37908
|
+
E["verify-payment"]
|
|
37909
37909
|
);
|
|
37910
37910
|
break;
|
|
37911
37911
|
case 4:
|
|
@@ -37928,7 +37928,7 @@ class ku {
|
|
|
37928
37928
|
this.errorText = o;
|
|
37929
37929
|
}
|
|
37930
37930
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
37931
|
-
this.errorText ||
|
|
37931
|
+
this.errorText || E["payment-failed"]
|
|
37932
37932
|
);
|
|
37933
37933
|
},
|
|
37934
37934
|
url: this.url,
|
|
@@ -38028,6 +38028,7 @@ class ba {
|
|
|
38028
38028
|
d(this, "currency");
|
|
38029
38029
|
d(this, "paymentResponse");
|
|
38030
38030
|
d(this, "localCurrency");
|
|
38031
|
+
d(this, "onStepChange");
|
|
38031
38032
|
// private paymentResponseHeaders: Headers;
|
|
38032
38033
|
d(this, "retryingPayment");
|
|
38033
38034
|
d(this, "isMaxRetriesReached");
|
|
@@ -38035,7 +38036,7 @@ class ba {
|
|
|
38035
38036
|
this.container = e.container, this.onAction = e.onAction, this.onVerify = e.onVerify, this.amount = e.amount, this.currency = e.currency, this.restartTransactionProcess = e.restartTransactionProcess, this.paymentResponse = {}, this.token = e.token, this.reference = e.reference, this.callBackUrl = e.callBackUrl, this.customer = e.customer, this.metadata = e.metadata, this.retryingPayment = e.retryingPayment, this.localCurrency = e.localCurrency, this.warningError = new nn({
|
|
38036
38037
|
container: this.container,
|
|
38037
38038
|
onAction: this.restartTransactionProcess.bind(this)
|
|
38038
|
-
}), this.merchantKey = e.merchantKey, this.url = e.url, this.rdtCode = e.rdtCode, this._currentStep = 1, this.isMaxRetriesReached = !1, this.errorText = "";
|
|
38039
|
+
}), this.merchantKey = e.merchantKey, this.url = e.url, this.rdtCode = e.rdtCode, this._currentStep = 1, this.isMaxRetriesReached = !1, this.errorText = "", this.onStepChange = e.onStepChange;
|
|
38039
38040
|
}
|
|
38040
38041
|
populateSelect(e, t, i, s) {
|
|
38041
38042
|
if (!e) return;
|
|
@@ -38229,16 +38230,17 @@ class ba {
|
|
|
38229
38230
|
);
|
|
38230
38231
|
}
|
|
38231
38232
|
})().then(async ({ data: l, headers: c }) => {
|
|
38233
|
+
var p;
|
|
38232
38234
|
if (this.paymentResponse = l, l.status === "failed") {
|
|
38233
|
-
if (this.
|
|
38234
|
-
const
|
|
38235
|
+
if ((p = this.onStepChange) == null || p.call(this, 4), l.providerMessage) {
|
|
38236
|
+
const m = await Z(
|
|
38235
38237
|
l.providerMessage,
|
|
38236
38238
|
wt.language
|
|
38237
38239
|
);
|
|
38238
|
-
this.errorText =
|
|
38240
|
+
this.errorText = m, this.warningScreen.setPaymentError(this.errorText);
|
|
38239
38241
|
} else
|
|
38240
38242
|
this.warningScreen.setPaymentError(
|
|
38241
|
-
|
|
38243
|
+
E["payment-failed"]
|
|
38242
38244
|
);
|
|
38243
38245
|
_.track("start_payment", {
|
|
38244
38246
|
payment_method: "Stablecoins",
|
|
@@ -38253,24 +38255,25 @@ class ba {
|
|
|
38253
38255
|
else
|
|
38254
38256
|
return;
|
|
38255
38257
|
}).catch(async (l) => {
|
|
38258
|
+
var c, p;
|
|
38256
38259
|
if (_.track("verify_payment", {
|
|
38257
38260
|
payment_method: "Stablecoins",
|
|
38258
38261
|
verification_status: "Null"
|
|
38259
38262
|
}), l.code === "payment_max_retry_attempts")
|
|
38260
|
-
this.isMaxRetriesReached = !0, this.
|
|
38261
|
-
|
|
38262
|
-
|
|
38263
|
+
this.isMaxRetriesReached = !0, (c = this.onStepChange) == null || c.call(this, 4), this.warningScreen.setPaymentError(
|
|
38264
|
+
E["maximum-retries"],
|
|
38265
|
+
E["maximum-retries-desc"],
|
|
38263
38266
|
z["merchant-back"]
|
|
38264
38267
|
);
|
|
38265
|
-
else if (this.
|
|
38266
|
-
const
|
|
38268
|
+
else if ((p = this.onStepChange) == null || p.call(this, 4), l.message) {
|
|
38269
|
+
const m = await Z(
|
|
38267
38270
|
l.message,
|
|
38268
38271
|
wt == null ? void 0 : wt.language
|
|
38269
38272
|
);
|
|
38270
|
-
this.errorText =
|
|
38273
|
+
this.errorText = m, this.warningScreen.setPaymentError(this.errorText);
|
|
38271
38274
|
} else
|
|
38272
38275
|
this.warningScreen.setPaymentError(
|
|
38273
|
-
|
|
38276
|
+
E["payment-failed"]
|
|
38274
38277
|
);
|
|
38275
38278
|
this.warningScreen.hideReportIssue();
|
|
38276
38279
|
}).finally(() => {
|
|
@@ -38348,7 +38351,7 @@ class Lu {
|
|
|
38348
38351
|
), t = this.container.querySelector(
|
|
38349
38352
|
"#confirming-txn-status-end-text"
|
|
38350
38353
|
), i = this.container.querySelector("#please-wait-text"), s = this.container.querySelector("#minutes-text");
|
|
38351
|
-
e && (e.innerHTML =
|
|
38354
|
+
e && (e.innerHTML = E["confirming-txn-status"]), t && (t.innerHTML = E["few-minutes"]), i && (i.innerHTML = E["please-wait-for"]), s && (s.innerHTML = E.minutes), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
38352
38355
|
const a = 3e4;
|
|
38353
38356
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
38354
38357
|
this.verifyStablecoins(
|
|
@@ -38524,9 +38527,10 @@ class Eu {
|
|
|
38524
38527
|
d(this, "isMaxRetriesReached");
|
|
38525
38528
|
d(this, "token");
|
|
38526
38529
|
d(this, "localCurrency");
|
|
38530
|
+
d(this, "errorText");
|
|
38527
38531
|
this.token = g, this.amount = i, this.totalAmount = b, this.currency = s, this.customer = a, this.rdtCode = p, this.url = m, this.reference = c, this.callBackUrl = o, this.metadata = l, this.retryingPayment = f, this.container = e, this.restartTransactionProcess = t, this.isMaxRetriesReached = !1, this.localCurrency = S, this.paymentResponseHeaders = {}, this.paymentResponse = {}, this.contents = this.container.querySelector(
|
|
38528
38532
|
"#payment-content-view"
|
|
38529
|
-
), this._currentStep = 1, this.onSuccess = C || (() => null);
|
|
38533
|
+
), this._currentStep = 1, this.onSuccess = C || (() => null), this.errorText = "";
|
|
38530
38534
|
}
|
|
38531
38535
|
get currentStep() {
|
|
38532
38536
|
return this._currentStep;
|
|
@@ -38535,7 +38539,7 @@ class Eu {
|
|
|
38535
38539
|
this._currentStep = e, this.renderStablecoinsContent();
|
|
38536
38540
|
}
|
|
38537
38541
|
showLoader() {
|
|
38538
|
-
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
38542
|
+
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(E["verify-payment"]);
|
|
38539
38543
|
}
|
|
38540
38544
|
setPaymentError(e) {
|
|
38541
38545
|
const t = this.container.querySelector("#payment-warning-text");
|
|
@@ -38581,6 +38585,7 @@ class Eu {
|
|
|
38581
38585
|
}
|
|
38582
38586
|
}
|
|
38583
38587
|
renderStablecoinsContent(e) {
|
|
38588
|
+
var t;
|
|
38584
38589
|
if (this.contents)
|
|
38585
38590
|
switch (this.currentStep) {
|
|
38586
38591
|
case 1:
|
|
@@ -38605,7 +38610,10 @@ class Eu {
|
|
|
38605
38610
|
retryingPayment: this.retryingPayment,
|
|
38606
38611
|
token: this.token,
|
|
38607
38612
|
totalAmount: this.totalAmount,
|
|
38608
|
-
localCurrency: this.localCurrency
|
|
38613
|
+
localCurrency: this.localCurrency,
|
|
38614
|
+
onStepChange: (i) => {
|
|
38615
|
+
this.currentStep = i;
|
|
38616
|
+
}
|
|
38609
38617
|
}), this.stableCoinsForm.renderComponent();
|
|
38610
38618
|
break;
|
|
38611
38619
|
case 2:
|
|
@@ -38617,22 +38625,28 @@ class Eu {
|
|
|
38617
38625
|
}), this.successScreen.renderComponent();
|
|
38618
38626
|
break;
|
|
38619
38627
|
case 3:
|
|
38620
|
-
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
38628
|
+
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
38629
|
+
E["verify-payment"]
|
|
38630
|
+
);
|
|
38621
38631
|
break;
|
|
38622
38632
|
case 4:
|
|
38623
38633
|
this.warningScreen = new nn({
|
|
38624
38634
|
container: this.contents,
|
|
38625
38635
|
onAction: this.isMaxRetriesReached ? this.goBackToMerchant.bind(this) : this.restartTransactionProcess.bind(this),
|
|
38626
38636
|
onReportIssue: () => this._currentStep = 7
|
|
38627
|
-
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.
|
|
38637
|
+
}), this.contents.innerHTML = this.warningScreen.render(), this.warningScreen.setPaymentError(
|
|
38638
|
+
((t = this.paymentResponse) == null ? void 0 : t.providerMessage) || E["payment-failed"],
|
|
38639
|
+
this.errorText,
|
|
38640
|
+
this.isMaxRetriesReached ? E["merchant-back"] : E["try-again"]
|
|
38641
|
+
), this.warningScreen.attachListener();
|
|
38628
38642
|
break;
|
|
38629
38643
|
case 5:
|
|
38630
38644
|
this.transactionIssuesScreen = new pt({
|
|
38631
38645
|
container: this.contents,
|
|
38632
38646
|
onAction: () => {
|
|
38633
|
-
var
|
|
38647
|
+
var i;
|
|
38634
38648
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
38635
|
-
((
|
|
38649
|
+
((i = this.paymentResponse) == null ? void 0 : i.providerMessage) || E["payment-failed"]
|
|
38636
38650
|
);
|
|
38637
38651
|
},
|
|
38638
38652
|
url: this.url,
|
|
@@ -38648,12 +38662,12 @@ class Eu {
|
|
|
38648
38662
|
this.stablecoinsConfirmationProgress = new Lu({
|
|
38649
38663
|
container: this.contents,
|
|
38650
38664
|
callBackUrl: this.callBackUrl,
|
|
38651
|
-
setPaymentResponses: (
|
|
38652
|
-
this.paymentResponse =
|
|
38665
|
+
setPaymentResponses: (i, s) => {
|
|
38666
|
+
this.paymentResponse = i, this.paymentResponseHeaders = s;
|
|
38653
38667
|
},
|
|
38654
38668
|
token: this.token,
|
|
38655
|
-
onAction: (
|
|
38656
|
-
this.currentStep =
|
|
38669
|
+
onAction: (i) => {
|
|
38670
|
+
this.currentStep = i;
|
|
38657
38671
|
},
|
|
38658
38672
|
ref: this.reference,
|
|
38659
38673
|
onSuccess: () => {
|
|
@@ -38670,8 +38684,8 @@ class Eu {
|
|
|
38670
38684
|
case 7:
|
|
38671
38685
|
this.stablecoinConfirmationEnd = new _u({
|
|
38672
38686
|
container: this.contents,
|
|
38673
|
-
onAction: (
|
|
38674
|
-
this.currentStep =
|
|
38687
|
+
onAction: (i) => {
|
|
38688
|
+
this.currentStep = i;
|
|
38675
38689
|
},
|
|
38676
38690
|
ref: this.reference,
|
|
38677
38691
|
onSuccess: this.onSuccess.bind(this),
|
|
@@ -38827,7 +38841,7 @@ class Iu {
|
|
|
38827
38841
|
this._currentStep = e, this.renderOpayContent();
|
|
38828
38842
|
}
|
|
38829
38843
|
showLoader() {
|
|
38830
|
-
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
38844
|
+
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(E["verify-payment"]);
|
|
38831
38845
|
}
|
|
38832
38846
|
goBackToMerchant() {
|
|
38833
38847
|
Ie(
|
|
@@ -38889,7 +38903,7 @@ class Iu {
|
|
|
38889
38903
|
}
|
|
38890
38904
|
if (a.status === "failed") {
|
|
38891
38905
|
this.currentStep = 4, a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
38892
|
-
|
|
38906
|
+
E["payment-failed"]
|
|
38893
38907
|
), _.track("start_payment", {
|
|
38894
38908
|
payment_method: "OPAY",
|
|
38895
38909
|
verification_status: "Failed"
|
|
@@ -38905,8 +38919,8 @@ class Iu {
|
|
|
38905
38919
|
}).catch(async (a) => {
|
|
38906
38920
|
if (a.code === "payment_max_retry_attempts")
|
|
38907
38921
|
this.isMaxRetriesReached = !0, this.verifyPaymentProcess(), this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
38908
|
-
|
|
38909
|
-
|
|
38922
|
+
E["maximum-retries"],
|
|
38923
|
+
E["maximum-retries-desc"],
|
|
38910
38924
|
z["merchant-back"]
|
|
38911
38925
|
);
|
|
38912
38926
|
else if (a.message) {
|
|
@@ -39015,7 +39029,7 @@ class Iu {
|
|
|
39015
39029
|
break;
|
|
39016
39030
|
case 3:
|
|
39017
39031
|
this.pageLoader = new ke(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(
|
|
39018
|
-
|
|
39032
|
+
E["verify-payment"]
|
|
39019
39033
|
);
|
|
39020
39034
|
break;
|
|
39021
39035
|
case 4:
|
|
@@ -39038,7 +39052,7 @@ class Iu {
|
|
|
39038
39052
|
this.errorText = o;
|
|
39039
39053
|
}
|
|
39040
39054
|
this.currentStep = 4, this.warningScreen.setPaymentError(
|
|
39041
|
-
this.errorText ||
|
|
39055
|
+
this.errorText || E["payment-failed"]
|
|
39042
39056
|
);
|
|
39043
39057
|
},
|
|
39044
39058
|
url: this.url,
|