@payfurl/react-plugin 1.0.0
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/CxPayThreeDsProvider-qI6LA8iK-Bpdve37Y.js +12 -0
- package/dist/DefaultThreeDsProvider-BKnpkX8X-DjgfDV-_.js +224 -0
- package/dist/EcentricThreeDsProvider-Dor61dsV-wSxgfkFR.js +86 -0
- package/dist/EpnaThreeDsProvider-6j4cBf2g-DKKUHzvH.js +12 -0
- package/dist/FlashBancThreeDsProvider-B1IMjfpm-Tzb2NaCS.js +12 -0
- package/dist/GPaymentsThreeDsProvider-PKB94NB4-DpHbV578.js +100 -0
- package/dist/MetricsGlobalThreeDsProvider-CkIGiDkd-DoLM32Cq.js +146 -0
- package/dist/NmiThreeDsProvider-CcMEqhmQ-DXmogp9D.js +12 -0
- package/dist/NuveiThreeDsProvider-CwXxM_h7-D7sowzvz.js +176 -0
- package/dist/PayGLocalThreeDsProvider-sIfhhTia-C-90nFC1.js +127 -0
- package/dist/PayWayAppleButton-BhhFv3LB-BWA8af0L.js +141 -0
- package/dist/PayabliThreeDsProvider-Dbril8Rp-DjxP1Zjs.js +12 -0
- package/dist/SkyBankThreeDsProvider-C07fNAvi-CDQRSmTJ.js +12 -0
- package/dist/ThreeDsPostAuthResponse.type-CaV_50Qh-CaV_50Qh.js +26 -0
- package/dist/cxpay-CEQ4-BTN-D8-vI4wh.js +7 -0
- package/dist/default-C_HQSLX4-BWCZmTvd.js +7 -0
- package/dist/ecentric-BNc1h8Eo-IrqJ8q3L.js +7 -0
- package/dist/epna-B9Y2q1w--DVGb9J09.js +7 -0
- package/dist/flashbanc-C0Ty8vp7-DQKcslty.js +7 -0
- package/dist/forter-CfW26Mkn-CmVDxLR0.js +46 -0
- package/dist/fraudProvider.type-ewIWghbD-ewIWghbD.js +7 -0
- package/dist/gpayments-rnHqXJDK-D68BA53b.js +7 -0
- package/dist/index-CQ8WmrJ_.js +13299 -0
- package/dist/metrics_global-B6yYoxRR-C3pcjfUz.js +7 -0
- package/dist/nmi-2JLTZ129-DIP4ydh7.js +7 -0
- package/dist/nuvei-Bh2t9NPs-DiT3vmdx.js +7 -0
- package/dist/payabli-NfqCrBOu-D0t1MIbi.js +7 -0
- package/dist/payfurl-react.es.js +4 -0
- package/dist/payfurl-react.umd.js +303 -0
- package/dist/payglocal-D3sg1uGV-D8upA6BT.js +7 -0
- package/dist/payway_rest-B7rIKWt2-1A5dJ_Ns.js +7 -0
- package/dist/plugins/react/src/components/PayfurlDropin.d.ts +15 -0
- package/dist/plugins/react/src/index.d.ts +6 -0
- package/dist/skybank-CrMnPsZ3-BoCAKL4P.js +7 -0
- package/dist/src/click2pay/ClickToPayOptions.type.d.ts +28 -0
- package/dist/src/sdk/checkout/checkoutProvider.type.d.ts +66 -0
- package/dist/src/sdk/fraud/fraudProvider.type.d.ts +3 -0
- package/dist/src/sdk/types/DropInOptions.type.d.ts +72 -0
- package/dist/src/sdk/types/NetworkTokenOptions.type.d.ts +6 -0
- package/dist/src/sdk/types/UpiOptions.type.d.ts +9 -0
- package/package.json +49 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { n as h, P as u, y as p, j as m, M as g, N as D, W as S, z as y, a as l } from "./index-CQ8WmrJ_.js";
|
|
2
|
+
import { DefaultThreeDsProvider as v, THREE_DS_METHOD_INVOCATION_COMPLETE as P, THREE_DS_CHALLENGE_COMPLETE as T } from "./DefaultThreeDsProvider-BKnpkX8X-DjgfDV-_.js";
|
|
3
|
+
var f = Object.defineProperty, N = (o, e, r) => e in o ? f(o, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[e] = r, c = (o, e, r) => N(o, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
const I = { class: "mask" }, C = /* @__PURE__ */ g({
|
|
5
|
+
__name: "nuvei",
|
|
6
|
+
props: {
|
|
7
|
+
threeDSServerTransID: {},
|
|
8
|
+
sessionToken: {},
|
|
9
|
+
env: {},
|
|
10
|
+
merchantId: {},
|
|
11
|
+
merchantSiteId: {},
|
|
12
|
+
cardNumber: {},
|
|
13
|
+
cardHolderName: {},
|
|
14
|
+
expirationMonth: {},
|
|
15
|
+
expirationYear: {},
|
|
16
|
+
CVV: {},
|
|
17
|
+
firstName: {},
|
|
18
|
+
lastName: {},
|
|
19
|
+
email: {},
|
|
20
|
+
country: {}
|
|
21
|
+
},
|
|
22
|
+
setup(o) {
|
|
23
|
+
const { hideSpinner: e, showSpinner: r } = h(), s = o;
|
|
24
|
+
D(() => {
|
|
25
|
+
r();
|
|
26
|
+
const t = document.createElement("script");
|
|
27
|
+
t.type = "text/javascript", t.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", t.onload = () => {
|
|
28
|
+
const a = new MutationObserver(function() {
|
|
29
|
+
document.getElementsByClassName("sfcModal-dialog")[0] && (e(), a.disconnect());
|
|
30
|
+
}), i = { childList: !0 }, d = document.querySelector("body");
|
|
31
|
+
a.observe(d, i), n();
|
|
32
|
+
}, document.head.appendChild(t);
|
|
33
|
+
});
|
|
34
|
+
function n() {
|
|
35
|
+
var t = SafeCharge({
|
|
36
|
+
env: s.env,
|
|
37
|
+
// Nuvei API environment - 'int' (integration) or 'prod' (production - default if omitted)
|
|
38
|
+
merchantId: s.merchantId,
|
|
39
|
+
//as assigned by Nuvei
|
|
40
|
+
merchantSiteId: s.merchantSiteId
|
|
41
|
+
// your Merchant Site ID provided by Nuvei
|
|
42
|
+
});
|
|
43
|
+
t.fields({
|
|
44
|
+
fonts: [
|
|
45
|
+
{
|
|
46
|
+
cssUrl: "https://fonts.googleapis.com/css?family=Source+Code+Pro"
|
|
47
|
+
}
|
|
48
|
+
// include your custom fonts
|
|
49
|
+
],
|
|
50
|
+
locale: "en"
|
|
51
|
+
// You can set your users preferred locale. If not provided, we try to auto-detect.
|
|
52
|
+
}), t.authenticate3d({
|
|
53
|
+
sessionToken: s.sessionToken,
|
|
54
|
+
// received from openOrder API
|
|
55
|
+
paymentOption: {
|
|
56
|
+
card: {
|
|
57
|
+
cardNumber: s.cardNumber,
|
|
58
|
+
cardHolderName: s.cardHolderName,
|
|
59
|
+
expirationMonth: s.expirationMonth,
|
|
60
|
+
expirationYear: s.expirationYear,
|
|
61
|
+
CVV: s.CVV
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
billingAddress: {
|
|
65
|
+
firstName: s.firstName,
|
|
66
|
+
lastName: s.lastName,
|
|
67
|
+
email: s.email,
|
|
68
|
+
country: s.country
|
|
69
|
+
}
|
|
70
|
+
}, function(a) {
|
|
71
|
+
window.postMessage({ status: "3ds_challenge_complete", cres: a }, "*");
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return (t, a) => (S(), y("div", I, a[0] || (a[0] = [
|
|
75
|
+
l("div", { class: "wrapper" }, [
|
|
76
|
+
l("div", { class: "container" })
|
|
77
|
+
], -1)
|
|
78
|
+
])));
|
|
79
|
+
}
|
|
80
|
+
}), _ = /* @__PURE__ */ m(C, [["__scopeId", "data-v-6293d147"]]), { hideSpinner: E } = h();
|
|
81
|
+
class A extends v {
|
|
82
|
+
constructor() {
|
|
83
|
+
super(...arguments), c(this, "_paResPayload", null), c(this, "onSuccess", (e, r) => {
|
|
84
|
+
var s, n;
|
|
85
|
+
this.closeChallenge(), E();
|
|
86
|
+
const t = JSON.parse(r);
|
|
87
|
+
t.authenticationValue ? (s = this.threeDsProcessor) == null || s.onSuccess(t) : (this.log(`[${this.getType()}][_onSuccess] 3D Secure failed`, t), (n = this.threeDsProcessor) == null || n.onError({ error: "3D Secure failed" }));
|
|
88
|
+
}), c(this, "onDoAuthSuccess", (e, r) => {
|
|
89
|
+
var s, n, t;
|
|
90
|
+
const a = JSON.parse(r);
|
|
91
|
+
if (this.log(`[${this.getType()}][onDoAuthSuccess]`, a), !a.transStatus || !a.authenticationValue) {
|
|
92
|
+
this.onError(e, "No transStatus specified");
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
switch (a.transStatus) {
|
|
96
|
+
case "C":
|
|
97
|
+
this.doNuveiChallenge(a.authenticationValue, (s = this.threeDsProcessor) == null ? void 0 : s.getAddressInfo(), (n = this.threeDsProcessor) == null ? void 0 : n.getPaymentInfo());
|
|
98
|
+
break;
|
|
99
|
+
default:
|
|
100
|
+
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + a.transStatus), (t = this.threeDsProcessor) == null || t.onSuccess({
|
|
101
|
+
threeDSServerTransID: a.threeDSServerTransID,
|
|
102
|
+
threeDSRequestorTransID: "",
|
|
103
|
+
acsRenderingType: a.acsRenderingType,
|
|
104
|
+
acsTransID: a.acsTransID,
|
|
105
|
+
authenticationType: a.authenticationType,
|
|
106
|
+
authenticationValue: a.authenticationValue,
|
|
107
|
+
challengeCancel: "",
|
|
108
|
+
dsTransID: a.dsTransID,
|
|
109
|
+
eci: a.eci,
|
|
110
|
+
interactionCounter: "",
|
|
111
|
+
messageCategory: "",
|
|
112
|
+
messageExtension: a.messageExtension,
|
|
113
|
+
messageType: a.messageType,
|
|
114
|
+
messageVersion: a.messageVersion,
|
|
115
|
+
transStatus: a.transStatus,
|
|
116
|
+
transStatusReason: a.transStatusReason
|
|
117
|
+
});
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
getType() {
|
|
123
|
+
return "Nuvei";
|
|
124
|
+
}
|
|
125
|
+
onPreAuth() {
|
|
126
|
+
var e, r;
|
|
127
|
+
this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId() ? (r = this.threeDsProcessor) == null || r.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s) => {
|
|
128
|
+
var n;
|
|
129
|
+
(n = this.threeDsProcessor) == null || n.setPaymentInfo(s), super.onPreAuth();
|
|
130
|
+
}, () => {
|
|
131
|
+
u(this.container, "Unable to get card information");
|
|
132
|
+
}) : super.onPreAuth();
|
|
133
|
+
}
|
|
134
|
+
onPostAuth() {
|
|
135
|
+
var e;
|
|
136
|
+
this.log(`[${this.getType()}][onAuth] Do Post Authentication for transId`, this.threeDSServerTransID, this._paResPayload), (e = this.threeDsProcessor) == null || e.onPostAuth({
|
|
137
|
+
threeDSServerTransID: this.threeDSServerTransID,
|
|
138
|
+
authenticationValue: this._paResPayload.cavv,
|
|
139
|
+
eci: this._paResPayload.eci,
|
|
140
|
+
dsTransID: this._paResPayload.dsTransID,
|
|
141
|
+
threeDsVersion: this._paResPayload.threeDVersion,
|
|
142
|
+
xid: this._paResPayload.xid
|
|
143
|
+
}, this.onSuccess, this.onError);
|
|
144
|
+
}
|
|
145
|
+
doNuveiChallenge(e, r, s) {
|
|
146
|
+
var n;
|
|
147
|
+
const t = JSON.parse(e);
|
|
148
|
+
(t === null || !t.merchantId || !t.merchantSiteId) && ((n = this.threeDsProcessor) == null || n.onError({ error: "3D Secure failed" })), r && (t.firstName = r.firstName, t.lastName = r.lastName, t.email = r.email, t.country = r.country), s && (t.cardNumber = s.cardNumber, t.cardHolderName = s.cardholder, t.expirationMonth = s.expiryDate.substring(2, 4), t.expirationYear = s.expiryDate.substring(0, 2), t.CVV = s.ccv);
|
|
149
|
+
const { destroy: a } = p({
|
|
150
|
+
el: document.body,
|
|
151
|
+
component: _,
|
|
152
|
+
props: t,
|
|
153
|
+
on: {
|
|
154
|
+
close: () => {
|
|
155
|
+
var i;
|
|
156
|
+
a(), this.threeDSDestroy = () => {
|
|
157
|
+
}, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
this.threeDSDestroy = a;
|
|
162
|
+
}
|
|
163
|
+
messageHandler(e) {
|
|
164
|
+
var r, s, n;
|
|
165
|
+
if ((r = e == null ? void 0 : e.data) != null && r.status) {
|
|
166
|
+
if (e.data.status === P) {
|
|
167
|
+
this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), e.stopPropagation(), this.onAuth(!0, "");
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
e.data.status === T && (this.log(`[${this.getType()}][messageHandler] 3Ds Challenge complete`, e.data), e.stopPropagation(), this.closeChallenge(), e.data.cres && ((s = e.data.cres) == null ? void 0 : s.result) === "APPROVED" && ((n = e.data.cres) == null ? void 0 : n.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")));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
export {
|
|
175
|
+
A as NuveiThreeDsProvider
|
|
176
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { DefaultThreeDsProvider as y } from "./DefaultThreeDsProvider-BKnpkX8X-DjgfDV-_.js";
|
|
2
|
+
import { t as u, P as c, y as f, j as C, M as w, d as E, N as p, e as m, W as I, z as L, a as g, u as S } from "./index-CQ8WmrJ_.js";
|
|
3
|
+
const h = u(!1);
|
|
4
|
+
function k(r, ...e) {
|
|
5
|
+
h.value && console.log(r, e);
|
|
6
|
+
}
|
|
7
|
+
function D(r) {
|
|
8
|
+
var e, t;
|
|
9
|
+
(e = r == null ? void 0 : r.data) != null && e.status && r.data.status === S && (h.value = !!((t = r == null ? void 0 : r.data) != null && t.debug));
|
|
10
|
+
}
|
|
11
|
+
function R() {
|
|
12
|
+
return p(() => {
|
|
13
|
+
window.addEventListener("message", D);
|
|
14
|
+
}), m(() => {
|
|
15
|
+
window.removeEventListener("message", D);
|
|
16
|
+
}), {
|
|
17
|
+
debug: h,
|
|
18
|
+
logMessage: k
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const b = { class: "modal-mask" }, A = { class: "modal-wrapper" }, M = ["src"], U = /* @__PURE__ */ w({
|
|
22
|
+
__name: "PayGLocalThreeDsChallenge",
|
|
23
|
+
props: {
|
|
24
|
+
url: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["close"],
|
|
27
|
+
setup(r, { emit: e }) {
|
|
28
|
+
const { logMessage: t } = R(), a = r, s = e, o = u(a.url);
|
|
29
|
+
u(null), E(() => a.url, (l) => {
|
|
30
|
+
o.value = l;
|
|
31
|
+
}), p(() => {
|
|
32
|
+
window.addEventListener("message", n);
|
|
33
|
+
}), m(() => {
|
|
34
|
+
window.removeEventListener("message", n);
|
|
35
|
+
});
|
|
36
|
+
function n(l) {
|
|
37
|
+
var i;
|
|
38
|
+
if (t("PayGLocalThreeDsChallenge: Message received", l.data), !((i = l == null ? void 0 : l.data) != null && i["payglocal-token"])) return;
|
|
39
|
+
const d = l.data["payglocal-token"];
|
|
40
|
+
t("Token received", d);
|
|
41
|
+
const v = d.split(".")[1], P = window.atob(v), T = JSON.parse(P);
|
|
42
|
+
s("close", T);
|
|
43
|
+
}
|
|
44
|
+
return (l, i) => (I(), L("div", b, [
|
|
45
|
+
g("div", A, [
|
|
46
|
+
g("iframe", {
|
|
47
|
+
src: o.value,
|
|
48
|
+
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
49
|
+
}, null, 8, M)
|
|
50
|
+
])
|
|
51
|
+
]));
|
|
52
|
+
}
|
|
53
|
+
}), x = /* @__PURE__ */ C(U, [["__scopeId", "data-v-6f042298"]]);
|
|
54
|
+
class G extends y {
|
|
55
|
+
getType() {
|
|
56
|
+
return "PayGLocal";
|
|
57
|
+
}
|
|
58
|
+
onPreAuth() {
|
|
59
|
+
var e, t, a;
|
|
60
|
+
if (this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) != null && e.getTokenId()) {
|
|
61
|
+
(t = this.threeDsProcessor) == null || t.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s, o) => {
|
|
62
|
+
var n;
|
|
63
|
+
this.log(`[${this.getType()}]: getCardDetails`, s, o), (n = this.threeDsProcessor) == null || n.setPaymentInfo(s), this.initChallenge(o.RedirectUrl);
|
|
64
|
+
}, () => {
|
|
65
|
+
c(this.container, "Unable to get card information");
|
|
66
|
+
});
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
(a = this.threeDsProcessor) == null || a.tokeniseCard(this.threeDsProcessor.getProviderId(), (s) => {
|
|
70
|
+
this.log(`[${this.getType()}]: tokeniseCard`, s), this.initChallenge(s.gatewayTokenData.RedirectUrl);
|
|
71
|
+
}, (s) => {
|
|
72
|
+
c(this.container, s);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
onAuth(e, t) {
|
|
76
|
+
}
|
|
77
|
+
onPostAuth() {
|
|
78
|
+
}
|
|
79
|
+
initChallenge(e) {
|
|
80
|
+
if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
|
|
81
|
+
c(this.container, "3D Secure URL is missing");
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const { destroy: t } = f({
|
|
85
|
+
el: document.body,
|
|
86
|
+
component: x,
|
|
87
|
+
props: {
|
|
88
|
+
url: e
|
|
89
|
+
},
|
|
90
|
+
on: {
|
|
91
|
+
close: (a) => {
|
|
92
|
+
var s, o, n;
|
|
93
|
+
if (this.closeChallenge(), this.log(`[${this.getType()}]: Challenge Results`, a), a.status === "AUTHORIZED") {
|
|
94
|
+
(s = this.threeDsProcessor) == null || s.onSuccess({
|
|
95
|
+
acsRenderingType: {},
|
|
96
|
+
acsTransID: "",
|
|
97
|
+
authenticationType: "",
|
|
98
|
+
authenticationValue: "",
|
|
99
|
+
challengeCancel: "",
|
|
100
|
+
dsTransID: "",
|
|
101
|
+
eci: "",
|
|
102
|
+
interactionCounter: "",
|
|
103
|
+
messageCategory: "",
|
|
104
|
+
messageExtension: [],
|
|
105
|
+
messageType: "",
|
|
106
|
+
messageVersion: "",
|
|
107
|
+
threeDSRequestorTransID: "",
|
|
108
|
+
threeDSServerTransID: "",
|
|
109
|
+
transStatusReason: "",
|
|
110
|
+
transStatus: "Y"
|
|
111
|
+
});
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (a.status === "CUSTOMER_CANCELLED") {
|
|
115
|
+
(o = this.threeDsProcessor) == null || o.onError({ error: "Challenge cancelled" });
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
(n = this.threeDsProcessor) == null || n.onError({ error: "3D Secure failed" });
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
this.threeDSDestroy = t;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
G as PayGLocalThreeDsProvider
|
|
127
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { D as b, O as g, w as A } from "./index-CQ8WmrJ_.js";
|
|
2
|
+
var v = Object.defineProperty, C = (a, t, i) => t in a ? v(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i, s = (a, t, i) => C(a, typeof t != "symbol" ? t + "" : t, i);
|
|
3
|
+
const h = {
|
|
4
|
+
CHECKOUT: "CHECKOUT",
|
|
5
|
+
CHARGE: "CHARGE"
|
|
6
|
+
}, y = (a) => ({
|
|
7
|
+
[h.CHECKOUT]: {
|
|
8
|
+
url: a + "/payment_method/checkout",
|
|
9
|
+
method: "POST"
|
|
10
|
+
},
|
|
11
|
+
[h.CHARGE]: {
|
|
12
|
+
url: a + "/charge/checkout",
|
|
13
|
+
method: "POST"
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
class k {
|
|
17
|
+
constructor(t, i, o, r, n, e) {
|
|
18
|
+
s(this, "log"), s(this, "container"), s(this, "button", null), s(this, "providerId"), s(this, "apiUrl"), s(this, "amount"), s(this, "currency"), s(this, "clientParameters"), s(this, "billingAddress", null), s(this, "customer", null), s(this, "order", null), s(this, "buttonId", "apple-pay-payway-button"), s(this, "onLoad", () => {
|
|
19
|
+
}), s(this, "onSuccess"), s(this, "onFailure"), s(this, "httpInvoker", null), this.log = t, this.apiUrl = e.apiUrl, this.container = i || document.body, 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;
|
|
20
|
+
const c = new b(e.environment, g(e.publicKey));
|
|
21
|
+
this.httpInvoker = new A(e.publicKey, e.version, c), this.init();
|
|
22
|
+
}
|
|
23
|
+
draw() {
|
|
24
|
+
const t = () => {
|
|
25
|
+
this.onLoad = () => {
|
|
26
|
+
};
|
|
27
|
+
const i = {
|
|
28
|
+
container: this.buttonId,
|
|
29
|
+
publishableApiKey: this.clientParameters.PublishableApiKey,
|
|
30
|
+
principalAmount: this.amount,
|
|
31
|
+
currency: String(this.currency).toLowerCase(),
|
|
32
|
+
buttonMode: "callback"
|
|
33
|
+
};
|
|
34
|
+
this.log("[createPaymentRequestButton]", i), window.payway.createPaymentRequestButton(i, (o, r) => {
|
|
35
|
+
var n;
|
|
36
|
+
if (this.log("[createPaymentRequestButton]", o, r), o) {
|
|
37
|
+
(n = this.onFailure) == null || n.call(this, o);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
this.checkout(r.singleUseTokenId);
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
window.payway ? t() : this.onLoad = t;
|
|
44
|
+
}
|
|
45
|
+
show() {
|
|
46
|
+
this.button && (this.button.style.display = "block");
|
|
47
|
+
}
|
|
48
|
+
hide() {
|
|
49
|
+
this.button && (this.button.style.display = "none");
|
|
50
|
+
}
|
|
51
|
+
init() {
|
|
52
|
+
const t = document.createElement("div");
|
|
53
|
+
t.id = this.buttonId, this.container.appendChild(t), this.button = t, this.initScript();
|
|
54
|
+
}
|
|
55
|
+
initScript() {
|
|
56
|
+
const t = document.createElement("script");
|
|
57
|
+
t.src = "https://api.payway.com.au/rest/v1/payway.js", t.onload = () => {
|
|
58
|
+
this.onLoad && this.onLoad();
|
|
59
|
+
}, document.head.appendChild(t);
|
|
60
|
+
}
|
|
61
|
+
checkout(t) {
|
|
62
|
+
var i, o, r, n, e, c;
|
|
63
|
+
const m = {
|
|
64
|
+
providerId: this.providerId,
|
|
65
|
+
amount: this.amount,
|
|
66
|
+
currency: this.currency,
|
|
67
|
+
reference: (i = this.order) == null ? void 0 : i.orderNumber,
|
|
68
|
+
options: {
|
|
69
|
+
ProviderToken: t
|
|
70
|
+
},
|
|
71
|
+
customer: {
|
|
72
|
+
firstName: (o = this.customer) == null ? void 0 : o.firstName,
|
|
73
|
+
lastName: (r = this.customer) == null ? void 0 : r.lastName,
|
|
74
|
+
email: (n = this.customer) == null ? void 0 : n.email,
|
|
75
|
+
phone: (e = this.customer) == null ? void 0 : e.phoneNumber,
|
|
76
|
+
billingAddress: this.billingAddress && {
|
|
77
|
+
name: `${this.billingAddress.firstName} ${this.billingAddress.lastName}`,
|
|
78
|
+
addressLine1: this.billingAddress.streetAddress,
|
|
79
|
+
addressLine2: this.billingAddress.streetAddress2,
|
|
80
|
+
suburb: this.billingAddress.city,
|
|
81
|
+
countryCode: this.billingAddress.country,
|
|
82
|
+
postcode: this.billingAddress.postalCode,
|
|
83
|
+
state: this.billingAddress.state
|
|
84
|
+
} || void 0
|
|
85
|
+
},
|
|
86
|
+
items: this.order && this.order.orderItems.map((l) => ({
|
|
87
|
+
name: l.name,
|
|
88
|
+
reference: l.sku,
|
|
89
|
+
quantity: Number(l.quantity),
|
|
90
|
+
amount: Number(l.unitPrice)
|
|
91
|
+
})) || []
|
|
92
|
+
};
|
|
93
|
+
this.log("[PayWayAppleButton][checkout]", m), (c = this.httpInvoker) == null || c.invoke(y(this.apiUrl)[h.CHECKOUT].url, y(this.apiUrl)[h.CHECKOUT].method, JSON.stringify(m), (l, u) => {
|
|
94
|
+
this.log("[PayWayAppleButton][checkout]: successCheckoutHandler", l, u);
|
|
95
|
+
const d = JSON.parse(u), p = JSON.parse(window.atob(d.checkoutData));
|
|
96
|
+
this.log("[PayWayAppleButton][checkout]: decodedData", p), this.charge(p.checkoutId);
|
|
97
|
+
}, (l, u) => {
|
|
98
|
+
var d;
|
|
99
|
+
this.log("[PayWayAppleButton][checkout]: failureCheckoutHandler", l, u);
|
|
100
|
+
const p = JSON.parse(u);
|
|
101
|
+
(d = this.onFailure) == null || d.call(this, { error: p.message });
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
charge(t) {
|
|
105
|
+
var i;
|
|
106
|
+
this.log("[PayWayAppleButton][charge]", { checkoutId: t }), (i = this.httpInvoker) == null || i.invoke(y(this.apiUrl)[h.CHARGE].url, y(this.apiUrl)[h.CHARGE].method, JSON.stringify({ checkoutId: t }), (o, r) => {
|
|
107
|
+
var n;
|
|
108
|
+
this.log("[PayWayAppleButton][charge]: successChargeHandler", o, r);
|
|
109
|
+
const e = JSON.parse(r);
|
|
110
|
+
(n = this.onSuccess) == null || n.call(this, {
|
|
111
|
+
transactionId: e == null ? void 0 : e.chargeId
|
|
112
|
+
});
|
|
113
|
+
}, (o, r) => {
|
|
114
|
+
var n;
|
|
115
|
+
this.log("[PayWayAppleButton][charge]: failureChargeHandler", o, r);
|
|
116
|
+
const e = JSON.parse(r);
|
|
117
|
+
(n = this.onFailure) == null || n.call(this, { error: e.message });
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
redraw() {
|
|
121
|
+
this.button && (this.button.innerHTML = "", this.draw());
|
|
122
|
+
}
|
|
123
|
+
setAmount(t) {
|
|
124
|
+
this.log("[PayWayAppleButton][setAmount]", t), this.amount = t, this.redraw();
|
|
125
|
+
}
|
|
126
|
+
setCurrency(t) {
|
|
127
|
+
this.log("[PayWayAppleButton][setCurrency]", t), this.currency = t, this.redraw();
|
|
128
|
+
}
|
|
129
|
+
setCustomerInfo(t) {
|
|
130
|
+
this.log("[PayWayAppleButton][setCustomerInfo]", t), this.customer = { ...t };
|
|
131
|
+
}
|
|
132
|
+
setBillingAddress(t) {
|
|
133
|
+
this.log("[PayWayAppleButton][setBillingAddress]", t), this.billingAddress = { ...t };
|
|
134
|
+
}
|
|
135
|
+
setOrderInfo(t) {
|
|
136
|
+
this.log("[PayWayAppleButton][setOrderInfo]", t), this.order = { ...t };
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
export {
|
|
140
|
+
k as PayWayAppleButton
|
|
141
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-CkIGiDkd-DoLM32Cq.js";
|
|
2
|
+
class t extends e {
|
|
3
|
+
getType() {
|
|
4
|
+
return "Payabli";
|
|
5
|
+
}
|
|
6
|
+
getDomain() {
|
|
7
|
+
return "centavo.transactiongateway.com";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
t as PayabliThreeDsProvider
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MetricsGlobalThreeDsProvider as e } from "./MetricsGlobalThreeDsProvider-CkIGiDkd-DoLM32Cq.js";
|
|
2
|
+
class s extends e {
|
|
3
|
+
getType() {
|
|
4
|
+
return "SkyBank";
|
|
5
|
+
}
|
|
6
|
+
getDomain() {
|
|
7
|
+
return "secure.skybankgateway.com";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
s as SkyBankThreeDsProvider
|
|
12
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function e() {
|
|
2
|
+
return {
|
|
3
|
+
acsRenderingType: {
|
|
4
|
+
acsInterface: "",
|
|
5
|
+
acsUiTemplate: ""
|
|
6
|
+
},
|
|
7
|
+
acsTransID: "",
|
|
8
|
+
authenticationType: "",
|
|
9
|
+
authenticationValue: "",
|
|
10
|
+
challengeCancel: "",
|
|
11
|
+
dsTransID: "",
|
|
12
|
+
eci: "",
|
|
13
|
+
interactionCounter: "",
|
|
14
|
+
messageCategory: "",
|
|
15
|
+
messageExtension: [],
|
|
16
|
+
messageType: "",
|
|
17
|
+
messageVersion: "",
|
|
18
|
+
threeDSRequestorTransID: "",
|
|
19
|
+
threeDSServerTransID: "",
|
|
20
|
+
transStatus: "Y",
|
|
21
|
+
transStatusReason: ""
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
e as getEmptySuccessThreeDsPostAuthResponse
|
|
26
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
let b = "";
|
|
2
|
+
const X = (d, l, I, W, c, Z, m, K, u) => JSON.stringify({
|
|
3
|
+
siteId: u.SiteId,
|
|
4
|
+
providerId: d,
|
|
5
|
+
amount: l,
|
|
6
|
+
currency: I,
|
|
7
|
+
paymentInformation: W,
|
|
8
|
+
paypalInformation: c,
|
|
9
|
+
customerInfo: {
|
|
10
|
+
firstName: Z.firstName,
|
|
11
|
+
lastName: Z.lastName,
|
|
12
|
+
email: Z.email,
|
|
13
|
+
phone: Z.phoneNumber
|
|
14
|
+
},
|
|
15
|
+
address: {
|
|
16
|
+
line1: m.streetAddress,
|
|
17
|
+
line2: m.streetAddress2,
|
|
18
|
+
city: m.city,
|
|
19
|
+
country: m.country,
|
|
20
|
+
postalCode: m.postalCode,
|
|
21
|
+
state: m.state
|
|
22
|
+
},
|
|
23
|
+
order: {
|
|
24
|
+
items: K.orderItems.map((i) => ({
|
|
25
|
+
productCode: i.sku,
|
|
26
|
+
quantity: Number(i.quantity),
|
|
27
|
+
amount: Number(i.unitPrice)
|
|
28
|
+
}))
|
|
29
|
+
},
|
|
30
|
+
connectionInformation: {
|
|
31
|
+
userAgent: navigator.userAgent,
|
|
32
|
+
cookie: b
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
function V() {
|
|
36
|
+
document.addEventListener("ftr:tokenReady", function(l) {
|
|
37
|
+
b = l.detail;
|
|
38
|
+
});
|
|
39
|
+
const d = document.createElement("script");
|
|
40
|
+
return d.type = "text/javascript", d.id = "2e6515aa0b8e", d.innerHTML = window.atob("ICAgIChmdW5jdGlvbiAoKSB7CiAgICAgICAgdmFyIG1lcmNoYW50Q29uZmlnID0gewogICAgICAgICAgICBjc3A6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ZG93LmZ0cl9fY29uZmlnLnMsc2l0ZUlkLHdpbmRvdy5mdHJfX2NvbmZpZy5tLmNzcCksdSh4LGZ1bmN0aW9uKGUpe3RyeXt2YXIgcj1lLmdldEFsbFJlc3BvbnNlSGVhZGVycygpLnRvTG93ZXJDYXNlKCk7aWYoci5pbmRleE9mKEwudG9Mb3dlckNhc2UoKSk+PTApe3ZhciBvPWUuZ2V0UmVzcG9uc2VIZWFkZXIoTCk7d2luZG93LmZ0cl9fYWx0ZDI9dChhdG9iKG8pLC1TLTEpfWlmKHIuaW5kZXhPZihBLnRvTG93ZXJDYXNlKCkpPDApcmV0dXJuO3ZhciBpPWUuZ2V0UmVzcG9uc2VIZWFkZXIoQSksYz10KGF0b2IoaSksLVMtMSk7aWYoYyl7dmFyIGE9Yy5zcGxpdCgiOiIpO2lmKGEmJjI9PT1hLmxlbmd0aCl7Zm9yKHZhciB1PWFbMF0sZD1hWzFdLGY9IiIscz0wLHY9MDtzPDIwOysrcylmKz1zJTM+MCYmdjwxMj9zaXRlSWQuY2hhckF0KHYrKyk6Qi5pZC5jaGFyQXQocyk7dmFyIGg9ZC5zcGxpdCgiLCIpO2lmKGgubGVuZ3RoPjEpe3ZhciB3PWhbMF0sbD1oWzFdO1U9dSsiLyIrdysiLiIrZisiLiIrbH19fW4oKX1jYXRjaCh0KXt9fSxmdW5jdGlvbih0LG4pe2UmJmUodCxuKX0scil9fSxRKFIudURGKSxzZXRUaW1lb3V0KHMsRSxSLnVERil9Y2F0Y2godCl7aShSLm1MZCl9fWNhdGNoKHQpe319KSgpOwo="), document.getElementsByTagName("body")[0].appendChild(d), {
|
|
41
|
+
getFraudCheckData: X
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
V as default
|
|
46
|
+
};
|