@payfurl/client 4.8.5 → 4.8.7
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/ApplePayButton.interface-BvRk9kiK.js +0 -0
- package/dist/sdk/ApplePayButtonOptions.type-BvRk9kiK.js +0 -0
- package/dist/sdk/CloseIcon-_3X2kvPG.js +3371 -0
- package/dist/sdk/CxPayThreeDsProvider-DAAmw4ya.js +12 -0
- package/dist/sdk/DefaultThreeDsProvider-JPe2W_JG.js +221 -0
- package/dist/sdk/EcentricThreeDsProvider-Ddy0Fn5h.js +68 -0
- package/dist/sdk/EpnaThreeDsProvider-Ng4Pmq0D.js +12 -0
- package/dist/sdk/FlashBancThreeDsProvider-DFZG4u44.js +12 -0
- package/dist/sdk/GPaymentsThreeDsProvider-BIku3bZP.js +91 -0
- package/dist/sdk/MetricsGlobalThreeDsProvider-BMeP5IWW.js +118 -0
- package/dist/sdk/NmiThreeDsProvider-CzRH7vrp.js +12 -0
- package/dist/sdk/NuveiThreeDsProvider-DMO_bgOI.js +151 -0
- package/dist/sdk/PayGLocalThreeDsProvider-DDqJz4iC.js +112 -0
- package/dist/sdk/PayWayAppleButton-DVoTz5Nn.js +160 -0
- package/dist/sdk/PayabliThreeDsProvider-BWStZH6E.js +12 -0
- package/dist/sdk/SkyBankThreeDsProvider-U6pzbMJY.js +12 -0
- package/dist/sdk/ThreeDsAuthResponse.type-BvRk9kiK.js +0 -0
- package/dist/sdk/ThreeDsInitResponse.type-BvRk9kiK.js +0 -0
- package/dist/sdk/ThreeDsPostAuthResponse.type-BFN9wqum.js +26 -0
- package/dist/sdk/ThreeDsProvider.interface-BvRk9kiK.js +0 -0
- package/dist/sdk/alerts-D474JL4D.js +42 -0
- package/dist/sdk/cxpay-BnpH4Q1F.js +7 -0
- package/dist/sdk/default-B8ZcE4ja.js +7 -0
- package/dist/sdk/ecentric-DwR-gEaW.js +7 -0
- package/dist/sdk/epna-BtQr8Mlq.js +7 -0
- package/dist/sdk/flashbanc-BNEJGUff.js +7 -0
- package/dist/sdk/forter-D0-GGAlC.js +41 -0
- package/dist/sdk/fraudCheck.type-BvRk9kiK.js +0 -0
- package/dist/sdk/fraudProvider.type-Bzd9orn2.js +7 -0
- package/dist/sdk/fraudStatus.type-BvRk9kiK.js +0 -0
- package/dist/sdk/gpayments-QZCq0_0y.js +7 -0
- package/dist/sdk/metrics_global--mOHedmQ.js +7 -0
- package/dist/sdk/nmi-BtKpUtad.js +7 -0
- package/dist/sdk/nuvei-BOfZN_Em.js +7 -0
- package/dist/sdk/payabli-BfZ7IhDq.js +7 -0
- package/dist/sdk/payfurl.es.js +6977 -3
- package/dist/sdk/payfurl.umd.js +17 -29
- package/dist/sdk/payglocal-CpEbJSpn.js +7 -0
- package/dist/sdk/payway_rest-CIjvQwcK.js +7 -0
- package/dist/sdk/skybank-DWPrfoAb.js +7 -0
- package/dist/sdk/strings-JNmtxeev.js +119 -0
- package/dist/sdk/style.css +2 -1
- package/package.json +3 -3
- package/dist/sdk/CxPayThreeDsProvider-BljTEbxB.js +0 -12
- package/dist/sdk/DefaultThreeDsProvider-DbKbN6Le.js +0 -243
- package/dist/sdk/EcentricThreeDsProvider-DjBTwEnR.js +0 -89
- package/dist/sdk/EpnaThreeDsProvider-KyUTPiU6.js +0 -12
- package/dist/sdk/FlashBancThreeDsProvider-DLWmBAJq.js +0 -12
- package/dist/sdk/GPaymentsThreeDsProvider-Bq63V0gC.js +0 -105
- package/dist/sdk/MetricsGlobalThreeDsProvider-Ctsa_ZKe.js +0 -152
- package/dist/sdk/NmiThreeDsProvider-Cc9uoPqm.js +0 -12
- package/dist/sdk/NuveiThreeDsProvider-BdJW8InS.js +0 -181
- package/dist/sdk/PayGLocalThreeDsProvider-CiKRmfOe.js +0 -127
- package/dist/sdk/PayWayAppleButton-D6R2TDKl.js +0 -179
- package/dist/sdk/PayabliThreeDsProvider-DEvztVTU.js +0 -12
- package/dist/sdk/SkyBankThreeDsProvider-R4NN8r-j.js +0 -12
- package/dist/sdk/ThreeDsPostAuthResponse.type-CaV_50Qh.js +0 -26
- package/dist/sdk/cxpay-C-GgzidJ.js +0 -7
- package/dist/sdk/default-BoeX8PJ8.js +0 -7
- package/dist/sdk/ecentric-CyZDsJgo.js +0 -7
- package/dist/sdk/epna-D57kaC8G.js +0 -7
- package/dist/sdk/flashbanc-orqI9uWg.js +0 -7
- package/dist/sdk/forter-CfW26Mkn.js +0 -46
- package/dist/sdk/fraudProvider.type-ewIWghbD.js +0 -7
- package/dist/sdk/fraudStatus.type-Bto5o7lY.js +0 -13771
- package/dist/sdk/gpayments-ZSCifuNl.js +0 -7
- package/dist/sdk/metrics_global-CQH6PsUd.js +0 -7
- package/dist/sdk/nmi-BZF7ZLQM.js +0 -7
- package/dist/sdk/nuvei-C3bePsCN.js +0 -7
- package/dist/sdk/payabli-DP-dvidH.js +0 -7
- package/dist/sdk/payglocal-3JSRI28a.js +0 -7
- package/dist/sdk/payway_rest-rG6pY8D4.js +0 -7
- package/dist/sdk/skybank-xXIyqCCk.js +0 -7
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { St as e, _t as t, mt as n, n as r, q as i, st as a, wt as o, xt as s } from "./CloseIcon-_3X2kvPG.js";
|
|
2
|
+
import { t as c } from "./alerts-D474JL4D.js";
|
|
3
|
+
import { t as l } from "./DefaultThreeDsProvider-JPe2W_JG.js";
|
|
4
|
+
//#region src/sdk/3ds/nuvei.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var u = { class: "mask" }, d = /*#__PURE__*/ i(/* @__PURE__ */ s({
|
|
6
|
+
__name: "nuvei",
|
|
7
|
+
props: {
|
|
8
|
+
threeDSServerTransID: {},
|
|
9
|
+
sessionToken: {},
|
|
10
|
+
env: {},
|
|
11
|
+
merchantId: {},
|
|
12
|
+
merchantSiteId: {},
|
|
13
|
+
cardNumber: {},
|
|
14
|
+
cardHolderName: {},
|
|
15
|
+
expirationMonth: {},
|
|
16
|
+
expirationYear: {},
|
|
17
|
+
CVV: {},
|
|
18
|
+
firstName: {},
|
|
19
|
+
lastName: {},
|
|
20
|
+
email: {},
|
|
21
|
+
country: {}
|
|
22
|
+
},
|
|
23
|
+
setup(i) {
|
|
24
|
+
let { hideSpinner: a, showSpinner: s } = r(), c = i;
|
|
25
|
+
e(() => {
|
|
26
|
+
s();
|
|
27
|
+
let e = document.createElement("script");
|
|
28
|
+
e.type = "text/javascript", e.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", e.onload = () => {
|
|
29
|
+
let e = new MutationObserver(function() {
|
|
30
|
+
document.getElementsByClassName("sfcModal-dialog")[0] && (a(), e.disconnect());
|
|
31
|
+
}), t = { childList: !0 }, n = document.querySelector("body");
|
|
32
|
+
e.observe(n, t), l();
|
|
33
|
+
}, document.head.appendChild(e);
|
|
34
|
+
});
|
|
35
|
+
function l() {
|
|
36
|
+
var e = SafeCharge({
|
|
37
|
+
env: c.env,
|
|
38
|
+
merchantId: c.merchantId,
|
|
39
|
+
merchantSiteId: c.merchantSiteId
|
|
40
|
+
});
|
|
41
|
+
e.fields({
|
|
42
|
+
fonts: [{ cssUrl: "https://fonts.googleapis.com/css?family=Source+Code+Pro" }],
|
|
43
|
+
locale: "en"
|
|
44
|
+
}), e.authenticate3d({
|
|
45
|
+
sessionToken: c.sessionToken,
|
|
46
|
+
paymentOption: { card: {
|
|
47
|
+
cardNumber: c.cardNumber,
|
|
48
|
+
cardHolderName: c.cardHolderName,
|
|
49
|
+
expirationMonth: c.expirationMonth,
|
|
50
|
+
expirationYear: c.expirationYear,
|
|
51
|
+
CVV: c.CVV
|
|
52
|
+
} },
|
|
53
|
+
billingAddress: {
|
|
54
|
+
firstName: c.firstName,
|
|
55
|
+
lastName: c.lastName,
|
|
56
|
+
email: c.email,
|
|
57
|
+
country: c.country
|
|
58
|
+
}
|
|
59
|
+
}, function(e) {
|
|
60
|
+
window.postMessage({
|
|
61
|
+
status: "3ds_challenge_complete",
|
|
62
|
+
cres: e
|
|
63
|
+
}, "*");
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return (e, r) => (o(), t("div", u, [...r[0] ||= [n("div", { class: "wrapper" }, [n("div", { class: "container" })], -1)]]));
|
|
67
|
+
}
|
|
68
|
+
}), [["__scopeId", "data-v-3b52be97"]]), { hideSpinner: f } = r(), p = class extends l {
|
|
69
|
+
_paResPayload = null;
|
|
70
|
+
getType() {
|
|
71
|
+
return "Nuvei";
|
|
72
|
+
}
|
|
73
|
+
onPreAuth() {
|
|
74
|
+
this.log(`[${this.getType()}]: onPreAuth`), this.threeDsProcessor?.getTokenId() ? this.threeDsProcessor?.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (e) => {
|
|
75
|
+
this.threeDsProcessor?.setPaymentInfo(e), super.onPreAuth();
|
|
76
|
+
}, () => {
|
|
77
|
+
c(this.container, "Unable to get card information");
|
|
78
|
+
}) : super.onPreAuth();
|
|
79
|
+
}
|
|
80
|
+
onPostAuth() {
|
|
81
|
+
this.log(`[${this.getType()}][onAuth] Do Post Authentication for transId`, this.threeDSServerTransID, this._paResPayload), this.threeDsProcessor?.onPostAuth({
|
|
82
|
+
threeDSServerTransID: this.threeDSServerTransID,
|
|
83
|
+
authenticationValue: this._paResPayload.cavv,
|
|
84
|
+
eci: this._paResPayload.eci,
|
|
85
|
+
dsTransID: this._paResPayload.dsTransID,
|
|
86
|
+
threeDsVersion: this._paResPayload.threeDVersion,
|
|
87
|
+
xid: this._paResPayload.xid
|
|
88
|
+
}, this.onSuccess, this.onError);
|
|
89
|
+
}
|
|
90
|
+
doNuveiChallenge(e, t, n) {
|
|
91
|
+
let r = JSON.parse(e);
|
|
92
|
+
(r === null || !r.merchantId || !r.merchantSiteId) && this.threeDsProcessor?.onError({ error: "3D Secure failed" }), t && (r.firstName = t.firstName, r.lastName = t.lastName, r.email = t.email, r.country = t.country), n && (r.cardNumber = n.cardNumber, r.cardHolderName = n.cardholder || "", r.expirationMonth = n.expiryDate.substring(2, 4), r.expirationYear = n.expiryDate.substring(0, 2), r.CVV = n.ccv);
|
|
93
|
+
let { destroy: i } = a({
|
|
94
|
+
el: document.body,
|
|
95
|
+
component: d,
|
|
96
|
+
props: r,
|
|
97
|
+
on: { close: () => {
|
|
98
|
+
i(), this.threeDSDestroy = () => {}, this.threeDsProcessor?.onError({ error: "Challenge cancelled" });
|
|
99
|
+
} }
|
|
100
|
+
});
|
|
101
|
+
this.threeDSDestroy = i;
|
|
102
|
+
}
|
|
103
|
+
onSuccess = (e, t) => {
|
|
104
|
+
this.closeChallenge(), f();
|
|
105
|
+
let n = JSON.parse(t);
|
|
106
|
+
n.authenticationValue ? this.threeDsProcessor?.onSuccess(n) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, n), this.threeDsProcessor?.onError({ error: "3D Secure failed" }));
|
|
107
|
+
};
|
|
108
|
+
onDoAuthSuccess = (e, t) => {
|
|
109
|
+
let n = JSON.parse(t);
|
|
110
|
+
if (this.log(`[${this.getType()}][onDoAuthSuccess]`, n), !n.transStatus || !n.authenticationValue) {
|
|
111
|
+
this.onError(e, "No transStatus specified");
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
switch (n.transStatus) {
|
|
115
|
+
case "C":
|
|
116
|
+
this.doNuveiChallenge(n.authenticationValue, this.threeDsProcessor?.getAddressInfo(), this.threeDsProcessor?.getPaymentInfo());
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + n.transStatus), this.threeDsProcessor?.onSuccess({
|
|
120
|
+
threeDSServerTransID: n.threeDSServerTransID,
|
|
121
|
+
threeDSRequestorTransID: "",
|
|
122
|
+
acsRenderingType: n.acsRenderingType,
|
|
123
|
+
acsTransID: n.acsTransID,
|
|
124
|
+
authenticationType: n.authenticationType,
|
|
125
|
+
authenticationValue: n.authenticationValue,
|
|
126
|
+
challengeCancel: "",
|
|
127
|
+
dsTransID: n.dsTransID,
|
|
128
|
+
eci: n.eci,
|
|
129
|
+
interactionCounter: "",
|
|
130
|
+
messageCategory: "",
|
|
131
|
+
messageExtension: n.messageExtension,
|
|
132
|
+
messageType: n.messageType,
|
|
133
|
+
messageVersion: n.messageVersion,
|
|
134
|
+
transStatus: n.transStatus,
|
|
135
|
+
transStatusReason: n.transStatusReason
|
|
136
|
+
});
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
messageHandler(e) {
|
|
141
|
+
if (e?.data?.status) {
|
|
142
|
+
if (e.data.status === "3ds_method_invocation_complete") {
|
|
143
|
+
this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), e.stopPropagation(), this.onAuth(!0, "");
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
e.data.status === "3ds_challenge_complete" && (this.log(`[${this.getType()}][messageHandler] 3Ds Challenge complete`, e.data), e.stopPropagation(), this.closeChallenge(), e.data.cres && e.data.cres?.result === "APPROVED" && e.data.cres?.errCode === "0" ? (this._paResPayload = e.data.cres, this.onPostAuth()) : (this.log(`[${this.getType()}][messageHandler] Failed 3DS Challenge`, e.data), this.onError(400, "Failed 3DS Challenge")));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
export { p as NuveiThreeDsProvider };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Ct as e, Mt as t, St as n, _t as r, it as i, kt as a, mt as o, pt as s, q as c, st as l, wt as u, xt as d } from "./CloseIcon-_3X2kvPG.js";
|
|
2
|
+
import { t as f } from "./alerts-D474JL4D.js";
|
|
3
|
+
import { t as p } from "./DefaultThreeDsProvider-JPe2W_JG.js";
|
|
4
|
+
//#region src/iframe/setup/log.ts
|
|
5
|
+
var m = t(!1);
|
|
6
|
+
function h(e, ...t) {
|
|
7
|
+
m.value && console.log(e, t);
|
|
8
|
+
}
|
|
9
|
+
function g(e) {
|
|
10
|
+
e?.data?.status && e.data.status === "init-card-form" && (m.value = !!e?.data?.debug);
|
|
11
|
+
}
|
|
12
|
+
function _() {
|
|
13
|
+
return n(() => {
|
|
14
|
+
window.addEventListener("message", g);
|
|
15
|
+
}), e(() => {
|
|
16
|
+
window.removeEventListener("message", g);
|
|
17
|
+
}), {
|
|
18
|
+
debug: m,
|
|
19
|
+
logMessage: h
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/sdk/3ds/PayGLocalThreeDsChallenge.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
+
var v = { class: "modal-mask" }, y = { class: "modal-wrapper" }, b = ["src"], x = /*#__PURE__*/ c(/* @__PURE__ */ d({
|
|
25
|
+
__name: "PayGLocalThreeDsChallenge",
|
|
26
|
+
props: { url: {} },
|
|
27
|
+
emits: ["close"],
|
|
28
|
+
setup(c, { emit: l }) {
|
|
29
|
+
let { logMessage: d } = _(), f = c, p = l, m = t(f.url), h = s(() => i(m.value) ? m.value : "");
|
|
30
|
+
t(null), a(() => f.url, (e) => {
|
|
31
|
+
m.value = e;
|
|
32
|
+
}), n(() => {
|
|
33
|
+
window.addEventListener("message", g);
|
|
34
|
+
}), e(() => {
|
|
35
|
+
window.removeEventListener("message", g);
|
|
36
|
+
});
|
|
37
|
+
function g(e) {
|
|
38
|
+
if (d("PayGLocalThreeDsChallenge: Message received", e.data), !e?.data?.["payglocal-token"]) return;
|
|
39
|
+
let t = e.data["payglocal-token"];
|
|
40
|
+
d("Token received", t);
|
|
41
|
+
let n = t.split(".")[1], r = window.atob(n), i = JSON.parse(r);
|
|
42
|
+
p("close", i);
|
|
43
|
+
}
|
|
44
|
+
return (e, t) => (u(), r("div", v, [o("div", y, [o("iframe", {
|
|
45
|
+
src: h.value,
|
|
46
|
+
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
47
|
+
}, null, 8, b)])]));
|
|
48
|
+
}
|
|
49
|
+
}), [["__scopeId", "data-v-0699f67d"]]), S = class extends p {
|
|
50
|
+
getType() {
|
|
51
|
+
return "PayGLocal";
|
|
52
|
+
}
|
|
53
|
+
onPreAuth() {
|
|
54
|
+
if (this.log(`[${this.getType()}]: onPreAuth`), this.threeDsProcessor?.getTokenId()) {
|
|
55
|
+
this.threeDsProcessor?.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (e, t) => {
|
|
56
|
+
this.log(`[${this.getType()}]: getCardDetails`, e, t), this.threeDsProcessor?.setPaymentInfo(e), this.initChallenge(t.RedirectUrl);
|
|
57
|
+
}, () => {
|
|
58
|
+
f(this.container, "Unable to get card information");
|
|
59
|
+
});
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
this.threeDsProcessor?.tokeniseCard(this.threeDsProcessor.getProviderId(), (e) => {
|
|
63
|
+
this.log(`[${this.getType()}]: tokeniseCard`, e), this.initChallenge(e.gatewayTokenData.RedirectUrl);
|
|
64
|
+
}, (e) => {
|
|
65
|
+
f(this.container, e);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
onAuth(e, t) {}
|
|
69
|
+
onPostAuth() {}
|
|
70
|
+
initChallenge(e) {
|
|
71
|
+
if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
|
|
72
|
+
f(this.container, "3D Secure URL is missing");
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
let { destroy: t } = l({
|
|
76
|
+
el: document.body,
|
|
77
|
+
component: x,
|
|
78
|
+
props: { url: e },
|
|
79
|
+
on: { close: (e) => {
|
|
80
|
+
if (this.closeChallenge(), this.log(`[${this.getType()}]: Challenge Results`, e), e.status === "AUTHORIZED") {
|
|
81
|
+
this.threeDsProcessor?.onSuccess({
|
|
82
|
+
acsRenderingType: {},
|
|
83
|
+
acsTransID: "",
|
|
84
|
+
authenticationType: "",
|
|
85
|
+
authenticationValue: "",
|
|
86
|
+
challengeCancel: "",
|
|
87
|
+
dsTransID: "",
|
|
88
|
+
eci: "",
|
|
89
|
+
interactionCounter: "",
|
|
90
|
+
messageCategory: "",
|
|
91
|
+
messageExtension: [],
|
|
92
|
+
messageType: "",
|
|
93
|
+
messageVersion: "",
|
|
94
|
+
threeDSRequestorTransID: "",
|
|
95
|
+
threeDSServerTransID: "",
|
|
96
|
+
transStatusReason: "",
|
|
97
|
+
transStatus: "Y"
|
|
98
|
+
});
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (e.status === "CUSTOMER_CANCELLED") {
|
|
102
|
+
this.threeDsProcessor?.onError({ error: "Challenge cancelled" });
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
this.threeDsProcessor?.onError({ error: "3D Secure failed" });
|
|
106
|
+
} }
|
|
107
|
+
});
|
|
108
|
+
this.threeDSDestroy = t;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
export { S as PayGLocalThreeDsProvider };
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { o as e, r as t, s as n } from "./strings-JNmtxeev.js";
|
|
2
|
+
//#region src/sdk/processors/applepay/PayWayAppleButton.ts
|
|
3
|
+
var r = {
|
|
4
|
+
CHECKOUT: "CHECKOUT",
|
|
5
|
+
CHARGE: "CHARGE"
|
|
6
|
+
}, i = (e) => ({
|
|
7
|
+
[r.CHECKOUT]: {
|
|
8
|
+
url: e + "/payment_method/checkout",
|
|
9
|
+
method: "POST"
|
|
10
|
+
},
|
|
11
|
+
[r.CHARGE]: {
|
|
12
|
+
url: e + "/charge/checkout",
|
|
13
|
+
method: "POST"
|
|
14
|
+
}
|
|
15
|
+
}), a = class {
|
|
16
|
+
log;
|
|
17
|
+
container;
|
|
18
|
+
button = null;
|
|
19
|
+
validator = null;
|
|
20
|
+
validationError = null;
|
|
21
|
+
providerId;
|
|
22
|
+
apiUrl;
|
|
23
|
+
amount;
|
|
24
|
+
currency;
|
|
25
|
+
clientParameters;
|
|
26
|
+
billingAddress = null;
|
|
27
|
+
customer = null;
|
|
28
|
+
order = null;
|
|
29
|
+
buttonId = "apple-pay-payway-button";
|
|
30
|
+
validatorId = "apple-pay-payway-button-validator";
|
|
31
|
+
onLoad = () => {};
|
|
32
|
+
onSuccess;
|
|
33
|
+
onFailure;
|
|
34
|
+
userOnValidate;
|
|
35
|
+
httpInvoker = null;
|
|
36
|
+
constructor(r, i, a, o, s, c) {
|
|
37
|
+
this.log = r, this.apiUrl = c.apiUrl, this.container = i || document.body, this.clientParameters = c.clientParameters, this.providerId = c.providerId, this.amount = Number(o), this.currency = s, this.providerId = a, this.onSuccess = c.onSuccess || null, this.onFailure = c.onFailure || null, this.userOnValidate = c.onValidate;
|
|
38
|
+
let l = new e(c.environment, t(c.publicKey));
|
|
39
|
+
this.httpInvoker = new n(c.publicKey, c.version, l), this.init(), setInterval(() => {
|
|
40
|
+
if (this.validator) {
|
|
41
|
+
if (this.userOnValidate?.() === !1) {
|
|
42
|
+
this.validator.style.display = "block";
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.validator.style.display = "none", this.validationError.style.display = "none";
|
|
46
|
+
}
|
|
47
|
+
}, 1e3);
|
|
48
|
+
}
|
|
49
|
+
draw() {
|
|
50
|
+
let e = () => {
|
|
51
|
+
this.onLoad = () => {};
|
|
52
|
+
let e = {
|
|
53
|
+
container: this.buttonId,
|
|
54
|
+
publishableApiKey: this.clientParameters.PublishableApiKey,
|
|
55
|
+
principalAmount: this.amount,
|
|
56
|
+
currency: String(this.currency).toLowerCase(),
|
|
57
|
+
buttonMode: "callback"
|
|
58
|
+
};
|
|
59
|
+
this.log("[createPaymentRequestButton]", e), window.payway.createPaymentRequestButton(e, (e, t) => {
|
|
60
|
+
if (this.log("[createPaymentRequestButton]", e, t), e) {
|
|
61
|
+
this.onFailure?.(e);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
this.checkout(t.singleUseTokenId);
|
|
65
|
+
}), this.addValidator();
|
|
66
|
+
};
|
|
67
|
+
window.payway ? e() : this.onLoad = e;
|
|
68
|
+
}
|
|
69
|
+
show() {
|
|
70
|
+
this.button && (this.button.style.display = "block");
|
|
71
|
+
}
|
|
72
|
+
hide() {
|
|
73
|
+
this.button && (this.button.style.display = "none");
|
|
74
|
+
}
|
|
75
|
+
init() {
|
|
76
|
+
let e = document.createElement("div");
|
|
77
|
+
e.id = this.buttonId, e.style.position = "relative", this.container.appendChild(e), this.button = e, this.initScript();
|
|
78
|
+
}
|
|
79
|
+
addValidator() {
|
|
80
|
+
if (document.getElementById(this.validatorId)) return;
|
|
81
|
+
let e = document.createElement("div");
|
|
82
|
+
e.id = this.validatorId, e.style.width = "100%", e.style.height = "100%", e.style.position = "absolute", e.style.top = "0", e.style.left = "0", e.style.display = "none", this.button?.appendChild(e), this.validator = e;
|
|
83
|
+
}
|
|
84
|
+
initScript() {
|
|
85
|
+
let e = document.createElement("script");
|
|
86
|
+
e.src = "https://api.payway.com.au/rest/v1/payway.js", e.onload = () => {
|
|
87
|
+
this.onLoad && this.onLoad();
|
|
88
|
+
}, document.head.appendChild(e);
|
|
89
|
+
}
|
|
90
|
+
checkout(e) {
|
|
91
|
+
let t = {
|
|
92
|
+
providerId: this.providerId,
|
|
93
|
+
amount: this.amount,
|
|
94
|
+
currency: this.currency,
|
|
95
|
+
reference: this.order?.orderNumber,
|
|
96
|
+
options: { ProviderToken: e },
|
|
97
|
+
customer: {
|
|
98
|
+
firstName: this.customer?.firstName,
|
|
99
|
+
lastName: this.customer?.lastName,
|
|
100
|
+
email: this.customer?.email,
|
|
101
|
+
phone: this.customer?.phoneNumber,
|
|
102
|
+
billingAddress: this.billingAddress && {
|
|
103
|
+
name: `${this.billingAddress.firstName} ${this.billingAddress.lastName}`,
|
|
104
|
+
addressLine1: this.billingAddress.streetAddress,
|
|
105
|
+
addressLine2: this.billingAddress.streetAddress2,
|
|
106
|
+
suburb: this.billingAddress.city,
|
|
107
|
+
countryCode: this.billingAddress.country,
|
|
108
|
+
postcode: this.billingAddress.postalCode,
|
|
109
|
+
state: this.billingAddress.state
|
|
110
|
+
} || void 0
|
|
111
|
+
},
|
|
112
|
+
items: this.order && this.order.orderItems.map((e) => ({
|
|
113
|
+
name: e.name,
|
|
114
|
+
reference: e.sku,
|
|
115
|
+
quantity: Number(e.quantity),
|
|
116
|
+
amount: Number(e.unitPrice)
|
|
117
|
+
})) || []
|
|
118
|
+
};
|
|
119
|
+
this.log("[PayWayAppleButton][checkout]", t), this.httpInvoker?.invoke(i(this.apiUrl)[r.CHECKOUT].url, i(this.apiUrl)[r.CHECKOUT].method, JSON.stringify(t), (e, t) => {
|
|
120
|
+
this.log("[PayWayAppleButton][checkout]: successCheckoutHandler", e, t);
|
|
121
|
+
let n = JSON.parse(t), r = JSON.parse(window.atob(n.checkoutData));
|
|
122
|
+
this.log("[PayWayAppleButton][checkout]: decodedData", r), this.charge(r.checkoutId);
|
|
123
|
+
}, (e, t) => {
|
|
124
|
+
this.log("[PayWayAppleButton][checkout]: failureCheckoutHandler", e, t);
|
|
125
|
+
let n = JSON.parse(t);
|
|
126
|
+
this.onFailure?.({ error: n.message });
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
charge(e) {
|
|
130
|
+
this.log("[PayWayAppleButton][charge]", { checkoutId: e }), this.httpInvoker?.invoke(i(this.apiUrl)[r.CHARGE].url, i(this.apiUrl)[r.CHARGE].method, JSON.stringify({ checkoutId: e }), (e, t) => {
|
|
131
|
+
this.log("[PayWayAppleButton][charge]: successChargeHandler", e, t);
|
|
132
|
+
let n = JSON.parse(t);
|
|
133
|
+
this.onSuccess?.({ transactionId: n?.chargeId });
|
|
134
|
+
}, (e, t) => {
|
|
135
|
+
this.log("[PayWayAppleButton][charge]: failureChargeHandler", e, t);
|
|
136
|
+
let n = JSON.parse(t);
|
|
137
|
+
this.onFailure?.({ error: n.message });
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
redraw() {
|
|
141
|
+
this.button && (this.button.innerHTML = "", this.draw());
|
|
142
|
+
}
|
|
143
|
+
setAmount(e) {
|
|
144
|
+
this.log("[PayWayAppleButton][setAmount]", e), this.amount = e, this.redraw();
|
|
145
|
+
}
|
|
146
|
+
setCurrency(e) {
|
|
147
|
+
this.log("[PayWayAppleButton][setCurrency]", e), this.currency = e, this.redraw();
|
|
148
|
+
}
|
|
149
|
+
setCustomerInfo(e) {
|
|
150
|
+
this.log("[PayWayAppleButton][setCustomerInfo]", e), this.customer = { ...e };
|
|
151
|
+
}
|
|
152
|
+
setBillingAddress(e) {
|
|
153
|
+
this.log("[PayWayAppleButton][setBillingAddress]", e), this.billingAddress = { ...e };
|
|
154
|
+
}
|
|
155
|
+
setOrderInfo(e) {
|
|
156
|
+
this.log("[PayWayAppleButton][setOrderInfo]", e), this.order = { ...e };
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
export { a as PayWayAppleButton };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as e } from "./MetricsGlobalThreeDsProvider-BMeP5IWW.js";
|
|
2
|
+
//#region src/sdk/3ds/PayabliThreeDsProvider.ts
|
|
3
|
+
var t = class extends e {
|
|
4
|
+
getType() {
|
|
5
|
+
return "Payabli";
|
|
6
|
+
}
|
|
7
|
+
getDomain() {
|
|
8
|
+
return "centavo.transactiongateway.com";
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as PayabliThreeDsProvider };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as e } from "./MetricsGlobalThreeDsProvider-BMeP5IWW.js";
|
|
2
|
+
//#region src/sdk/3ds/SkyBankThreeDsProvider.ts
|
|
3
|
+
var t = class extends e {
|
|
4
|
+
getType() {
|
|
5
|
+
return "SkyBank";
|
|
6
|
+
}
|
|
7
|
+
getDomain() {
|
|
8
|
+
return "secure.skybankgateway.com";
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as SkyBankThreeDsProvider };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/sdk/3ds/ThreeDsPostAuthResponse.type.ts
|
|
2
|
+
function e() {
|
|
3
|
+
return {
|
|
4
|
+
acsRenderingType: {
|
|
5
|
+
acsInterface: "",
|
|
6
|
+
acsUiTemplate: ""
|
|
7
|
+
},
|
|
8
|
+
acsTransID: "",
|
|
9
|
+
authenticationType: "",
|
|
10
|
+
authenticationValue: "",
|
|
11
|
+
challengeCancel: "",
|
|
12
|
+
dsTransID: "",
|
|
13
|
+
eci: "",
|
|
14
|
+
interactionCounter: "",
|
|
15
|
+
messageCategory: "",
|
|
16
|
+
messageExtension: [],
|
|
17
|
+
messageType: "",
|
|
18
|
+
messageVersion: "",
|
|
19
|
+
threeDSRequestorTransID: "",
|
|
20
|
+
threeDSServerTransID: "",
|
|
21
|
+
transStatus: "Y",
|
|
22
|
+
transStatusReason: ""
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { e as getEmptySuccessThreeDsPostAuthResponse };
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { It as e, Mt as t, _t as n, ft as r, gt as i, mt as a, q as o, st as s, wt as c, xt as l } from "./CloseIcon-_3X2kvPG.js";
|
|
2
|
+
//#region src/sdk/components/Error.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var u = { class: "message" }, d = /*#__PURE__*/ o(/* @__PURE__ */ l({
|
|
4
|
+
__name: "Error",
|
|
5
|
+
props: { error: {} },
|
|
6
|
+
setup(r) {
|
|
7
|
+
let i = t(r.error);
|
|
8
|
+
return (t, r) => (c(), n("div", u, e(i.value), 1));
|
|
9
|
+
}
|
|
10
|
+
}), [["__scopeId", "data-v-ae4be0f9"]]), f = { class: "message" }, p = { key: 0 }, m = /*#__PURE__*/ o(/* @__PURE__ */ l({
|
|
11
|
+
__name: "Success",
|
|
12
|
+
props: {
|
|
13
|
+
message: {},
|
|
14
|
+
token: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["close"],
|
|
17
|
+
setup(t, { emit: o }) {
|
|
18
|
+
let s = t;
|
|
19
|
+
return (t, o) => (c(), n(r, null, [a("div", f, e(s.message), 1), s.token ? (c(), n("div", p, "TokenId = " + e(s.token), 1)) : i("", !0)], 64));
|
|
20
|
+
}
|
|
21
|
+
}), [["__scopeId", "data-v-6a4e1608"]]);
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/sdk/utils/alerts.ts
|
|
24
|
+
function h(e, t) {
|
|
25
|
+
e && s({
|
|
26
|
+
el: e,
|
|
27
|
+
component: d,
|
|
28
|
+
props: { error: t }
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function g(e, t, n) {
|
|
32
|
+
e && s({
|
|
33
|
+
el: e,
|
|
34
|
+
component: m,
|
|
35
|
+
props: {
|
|
36
|
+
message: t,
|
|
37
|
+
...n || {}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { g as n, h as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/sdk/fraud/forter.ts
|
|
2
|
+
var e = "", t = (t, n, r, i, a, o, s, c, l) => JSON.stringify({
|
|
3
|
+
siteId: l.SiteId,
|
|
4
|
+
providerId: t,
|
|
5
|
+
amount: n,
|
|
6
|
+
currency: r,
|
|
7
|
+
paymentInformation: i,
|
|
8
|
+
paypalInformation: a,
|
|
9
|
+
customerInfo: {
|
|
10
|
+
firstName: o.firstName,
|
|
11
|
+
lastName: o.lastName,
|
|
12
|
+
email: o.email,
|
|
13
|
+
phone: o.phoneNumber
|
|
14
|
+
},
|
|
15
|
+
address: {
|
|
16
|
+
line1: s.streetAddress,
|
|
17
|
+
line2: s.streetAddress2,
|
|
18
|
+
city: s.city,
|
|
19
|
+
country: s.country,
|
|
20
|
+
postalCode: s.postalCode,
|
|
21
|
+
state: s.state
|
|
22
|
+
},
|
|
23
|
+
order: { items: c.orderItems.map((e) => ({
|
|
24
|
+
productCode: e.sku,
|
|
25
|
+
quantity: Number(e.quantity),
|
|
26
|
+
amount: Number(e.unitPrice)
|
|
27
|
+
})) },
|
|
28
|
+
connectionInformation: {
|
|
29
|
+
userAgent: navigator.userAgent,
|
|
30
|
+
cookie: e
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
function n() {
|
|
34
|
+
document.addEventListener("ftr:tokenReady", function(t) {
|
|
35
|
+
e = t.detail;
|
|
36
|
+
});
|
|
37
|
+
let n = document.createElement("script");
|
|
38
|
+
return n.type = "text/javascript", n.id = "2e6515aa0b8e", n.innerHTML = window.atob("ICAgIChmdW5jdGlvbiAoKSB7CiAgICAgICAgdmFyIG1lcmNoYW50Q29uZmlnID0gewogICAgICAgICAgICBjc3A6IGZhbHNlCiAgICAgICAgfTsKICAgICAgICAKICAgICAgICB2YXIgc2l0ZUlkID0gIjJlNjUxNWFhMGI4ZSI7CmZ1bmN0aW9uIHQodCxuKXtmb3IodmFyIGU9dC5zcGxpdCgiIikscj0wO3I8ZS5sZW5ndGg7KytyKWVbcl09U3RyaW5nLmZyb21DaGFyQ29kZShlW3JdLmNoYXJDb2RlQXQoMCkrbik7cmV0dXJuIGUuam9pbigiIil9ZnVuY3Rpb24gbihuKXtyZXR1cm4gdChuLC1TKS5yZXBsYWNlKC8lU04lL2csc2l0ZUlkKX1mdW5jdGlvbiBlKCl7dmFyIHQ9Im5vIisib3AiKyJmbiIsbj0iZyIrImEiLGU9Im4iKyJhbWUiO3JldHVybiB3aW5kb3dbbl0mJndpbmRvd1tuXVtlXT09PXR9ZnVuY3Rpb24gcigpe3JldHVybiEoIW5hdmlnYXRvci5icmF2ZXx8ImZ1bmN0aW9uIiE9dHlwZW9mIG5hdmlnYXRvci5icmF2ZS5pc0JyYXZlKX1mdW5jdGlvbiBvKCl7cmV0dXJuIGRvY3VtZW50LmN1cnJlbnRTY3JpcHQmJmRvY3VtZW50LmN1cnJlbnRTY3JpcHQuc3JjfWZ1bmN0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PWhbMF0sbD1oWzFdO1U9dSsiLyIrdysiLiIrZisiLiIrbH19fW4oKX1jYXRjaCh0KXt9fSxmdW5jdGlvbih0LG4pe2UmJmUodCxuKX0scil9fSxRKFIudURGKSxzZXRUaW1lb3V0KHMsRSxSLnVERil9Y2F0Y2godCl7aShSLm1MZCl9fWNhdGNoKHQpe319KSgpOwo="), document.getElementsByTagName("body")[0].appendChild(n), { getFraudCheckData: t };
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { n as default };
|
|
File without changes
|
|
File without changes
|