@payfurl/react-plugin 1.3.2 → 1.4.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/{DefaultThreeDsProvider-ChnRLzKI-DO_0wVUN.js → DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js} +16 -33
- package/dist/MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js +143 -0
- package/dist/{PayWayAppleButton-7Gi89Gij-aVF9l1aY.js → PayWayAppleButton-C-XfcgNS-rgWe-QJM.js} +3 -13
- package/dist/components/PayfurlDropin.d.ts +17 -0
- package/dist/{cxpay-CGIndAf1-BblBk3-x.js → cxpay-VbaQA3_P-DlS7yCqQ.js} +1 -1
- package/dist/{default-CgpOZU3K-CKDCWPRX.js → default-Diji0SXY-ghmIvhgy.js} +1 -1
- package/dist/{ecentric-F3nn_MwX-B9dBXDe_.js → ecentric-BlNDCZo_-Bd8Q_3ZG.js} +32 -31
- package/dist/{epna-uXpYJKOA-B_n5GhIL.js → epna-CxmJ_mqR-D4gbP4NT.js} +1 -1
- package/dist/{flashbanc-9XKA8Wrl-CbS2P90X.js → flashbanc-BAxvqtBB-DVXrWV0Z.js} +1 -1
- package/dist/forter-DXQjpKVH-DaJPhK3m.js +57 -0
- package/dist/forter-R2alfHeE-C5KHGNgt.js +33 -0
- package/dist/{gpayments-DsXj9xbu-BOBji_fr.js → gpayments-B5KWQV4S-QV7caEyB.js} +12 -23
- package/dist/index-CL6hUU-f.js +11224 -0
- package/dist/index.d.ts +3 -6
- package/dist/managedOrders-ojoMZ0Ab-B94-Nsp-.js +44 -0
- package/dist/metrics_global-HMMDzPlb-CXHJ1NHy.js +7 -0
- package/dist/{nmi-BzHX8wqW-Bq6oBsVL.js → nmi-Ch7qQ6Av-DbPjmA5v.js} +1 -1
- package/dist/nuvei-DRmlfpTL-ByeKEnae.js +165 -0
- package/dist/{payabli-C4YuB7Sr-BzB8PV73.js → payabli-CiBJ1-vC-BthvUlRk.js} +1 -1
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +19 -19
- package/dist/payglocal-uAPlijwL-CvGatUVh.js +109 -0
- package/dist/{payway_rest-ZMjPv2si-Dd1VuLdw.js → payway_rest-CjgIP42z-7zwBGwnD.js} +1 -1
- package/dist/{skybank-C6ZmVyX6-DWxUPtI7.js → skybank-D7uRF17E-BXng_6yf.js} +1 -1
- package/package.json +4 -3
- package/dist/MetricsGlobalThreeDsProvider-DW-gsG6q-BYJaEFfc.js +0 -148
- package/dist/forter-Bm2GJ2Hs-BABaUju5.js +0 -60
- package/dist/index-CACzT3Rb.js +0 -11783
- package/dist/metrics_global-L-Rm7bcl-DYSYHN2y.js +0 -7
- package/dist/nuvei-CS-nW8SB-v_HhomTx.js +0 -167
- package/dist/payglocal-Cy6Qd8ve-NfcHP9iv.js +0 -120
- package/dist/plugins/payfurl/react/src/components/PayfurlDropin.d.ts +0 -16
- package/dist/plugins/payfurl/react/src/index.d.ts +0 -6
- package/dist/src/click2pay/ClickToPayOptions.type.d.ts +0 -30
- package/dist/src/sdk/checkout/checkoutProvider.type.d.ts +0 -66
- package/dist/src/sdk/fraud/fraudProvider.type.d.ts +0 -3
- package/dist/src/sdk/types/DropInOptions.type.d.ts +0 -88
- package/dist/src/sdk/types/GooglePayButtonOptions.type.d.ts +0 -10
- package/dist/src/sdk/types/NetworkTokenOptions.type.d.ts +0 -6
- package/dist/src/sdk/types/PaymentType.type.d.ts +0 -15
- package/dist/src/sdk/types/UpiOptions.type.d.ts +0 -12
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
var p = Object.defineProperty;
|
|
2
|
-
var m = (n, s, a) => s in n ? p(n, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[s] = a;
|
|
3
|
-
var h = (n, s, a) => m(n, typeof s != "symbol" ? s + "" : s, a);
|
|
4
|
-
import { h as g, J as c, F as D, $ as d, Q as S, K as y, s as P, V as f, a as T, Y as l } from "./index-CACzT3Rb.js";
|
|
5
|
-
import { O as v } from "./DefaultThreeDsProvider-ChnRLzKI-DO_0wVUN.js";
|
|
6
|
-
var I = { class: "mask" }, N = /* @__PURE__ */ S(/* @__PURE__ */ y({
|
|
7
|
-
__name: "nuvei",
|
|
8
|
-
props: {
|
|
9
|
-
threeDSServerTransID: {},
|
|
10
|
-
sessionToken: {},
|
|
11
|
-
env: {},
|
|
12
|
-
merchantId: {},
|
|
13
|
-
merchantSiteId: {},
|
|
14
|
-
cardNumber: {},
|
|
15
|
-
cardHolderName: {},
|
|
16
|
-
expirationMonth: {},
|
|
17
|
-
expirationYear: {},
|
|
18
|
-
CVV: {},
|
|
19
|
-
firstName: {},
|
|
20
|
-
lastName: {},
|
|
21
|
-
email: {},
|
|
22
|
-
country: {}
|
|
23
|
-
},
|
|
24
|
-
setup(n) {
|
|
25
|
-
let { hideSpinner: s, showSpinner: a } = d(), e = n;
|
|
26
|
-
P(() => {
|
|
27
|
-
a();
|
|
28
|
-
let r = document.createElement("script");
|
|
29
|
-
r.type = "text/javascript", r.src = "https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js", r.onload = () => {
|
|
30
|
-
let o = new MutationObserver(function() {
|
|
31
|
-
document.getElementsByClassName("sfcModal-dialog")[0] && (s(), o.disconnect());
|
|
32
|
-
}), i = { childList: !0 }, u = document.querySelector("body");
|
|
33
|
-
o.observe(u, i), t();
|
|
34
|
-
}, document.head.appendChild(r);
|
|
35
|
-
});
|
|
36
|
-
function t() {
|
|
37
|
-
var r = SafeCharge({
|
|
38
|
-
env: e.env,
|
|
39
|
-
merchantId: e.merchantId,
|
|
40
|
-
merchantSiteId: e.merchantSiteId
|
|
41
|
-
});
|
|
42
|
-
r.fields({
|
|
43
|
-
fonts: [{ cssUrl: "https://fonts.googleapis.com/css?family=Source+Code+Pro" }],
|
|
44
|
-
locale: "en"
|
|
45
|
-
}), r.authenticate3d({
|
|
46
|
-
sessionToken: e.sessionToken,
|
|
47
|
-
paymentOption: { card: {
|
|
48
|
-
cardNumber: e.cardNumber,
|
|
49
|
-
cardHolderName: e.cardHolderName,
|
|
50
|
-
expirationMonth: e.expirationMonth,
|
|
51
|
-
expirationYear: e.expirationYear,
|
|
52
|
-
CVV: e.CVV
|
|
53
|
-
} },
|
|
54
|
-
billingAddress: {
|
|
55
|
-
firstName: e.firstName,
|
|
56
|
-
lastName: e.lastName,
|
|
57
|
-
email: e.email,
|
|
58
|
-
country: e.country
|
|
59
|
-
}
|
|
60
|
-
}, function(o) {
|
|
61
|
-
window.postMessage({
|
|
62
|
-
status: "3ds_challenge_complete",
|
|
63
|
-
cres: o
|
|
64
|
-
}, "*");
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return (r, o) => (f(), T("div", I, [...o[0] || (o[0] = [l("div", { class: "wrapper" }, [l("div", { class: "container" })], -1)])]));
|
|
68
|
-
}
|
|
69
|
-
}), [["__scopeId", "data-v-3b52be97"]]), { hideSpinner: C } = d(), V = class extends v {
|
|
70
|
-
constructor() {
|
|
71
|
-
super(...arguments);
|
|
72
|
-
h(this, "_paResPayload", null);
|
|
73
|
-
h(this, "onSuccess", (s, a) => {
|
|
74
|
-
var t, r;
|
|
75
|
-
this.closeChallenge(), C();
|
|
76
|
-
let e = JSON.parse(a);
|
|
77
|
-
e.authenticationValue ? (t = this.threeDsProcessor) == null || t.onSuccess(e) : (this.log(`[${this.getType()}][_onSuccess] ${c}`, e), (r = this.threeDsProcessor) == null || r.onError({ error: c }));
|
|
78
|
-
});
|
|
79
|
-
h(this, "onDoAuthSuccess", (s, a) => {
|
|
80
|
-
var t, r, o;
|
|
81
|
-
let e = JSON.parse(a);
|
|
82
|
-
if (this.log(`[${this.getType()}][onDoAuthSuccess]`, e), !e.transStatus || !e.authenticationValue) {
|
|
83
|
-
this.onError(s, "No transStatus specified");
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
switch (e.transStatus) {
|
|
87
|
-
case "C":
|
|
88
|
-
this.doNuveiChallenge(e.authenticationValue, (t = this.threeDsProcessor) == null ? void 0 : t.getAddressInfo(), (r = this.threeDsProcessor) == null ? void 0 : r.getPaymentInfo());
|
|
89
|
-
break;
|
|
90
|
-
default:
|
|
91
|
-
this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ` + e.transStatus), (o = this.threeDsProcessor) == null || o.onSuccess({
|
|
92
|
-
threeDSServerTransID: e.threeDSServerTransID,
|
|
93
|
-
threeDSRequestorTransID: "",
|
|
94
|
-
acsRenderingType: e.acsRenderingType,
|
|
95
|
-
acsTransID: e.acsTransID,
|
|
96
|
-
authenticationType: e.authenticationType,
|
|
97
|
-
authenticationValue: e.authenticationValue,
|
|
98
|
-
challengeCancel: "",
|
|
99
|
-
dsTransID: e.dsTransID,
|
|
100
|
-
eci: e.eci,
|
|
101
|
-
interactionCounter: "",
|
|
102
|
-
messageCategory: "",
|
|
103
|
-
messageExtension: e.messageExtension,
|
|
104
|
-
messageType: e.messageType,
|
|
105
|
-
messageVersion: e.messageVersion,
|
|
106
|
-
transStatus: e.transStatus,
|
|
107
|
-
transStatusReason: e.transStatusReason
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
getType() {
|
|
113
|
-
return "Nuvei";
|
|
114
|
-
}
|
|
115
|
-
onPreAuth() {
|
|
116
|
-
var s, a;
|
|
117
|
-
this.log(`[${this.getType()}]: onPreAuth`), (s = this.threeDsProcessor) != null && s.getTokenId() ? (a = this.threeDsProcessor) == null || a.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (e) => {
|
|
118
|
-
var t;
|
|
119
|
-
(t = this.threeDsProcessor) == null || t.setPaymentInfo(e), super.onPreAuth();
|
|
120
|
-
}, () => {
|
|
121
|
-
g(this.container, "Unable to get card information");
|
|
122
|
-
}) : super.onPreAuth();
|
|
123
|
-
}
|
|
124
|
-
onPostAuth() {
|
|
125
|
-
var s;
|
|
126
|
-
this.log(`[${this.getType()}][onAuth] Do Post Authentication for transId`, this.threeDSServerTransID, this._paResPayload), (s = this.threeDsProcessor) == null || s.onPostAuth({
|
|
127
|
-
threeDSServerTransID: this.threeDSServerTransID,
|
|
128
|
-
authenticationValue: this._paResPayload.cavv,
|
|
129
|
-
eci: this._paResPayload.eci,
|
|
130
|
-
dsTransID: this._paResPayload.dsTransID,
|
|
131
|
-
threeDsVersion: this._paResPayload.threeDVersion,
|
|
132
|
-
xid: this._paResPayload.xid
|
|
133
|
-
}, this.onSuccess, this.onError);
|
|
134
|
-
}
|
|
135
|
-
doNuveiChallenge(s, a, e) {
|
|
136
|
-
var o;
|
|
137
|
-
let t = JSON.parse(s);
|
|
138
|
-
(t === null || !t.merchantId || !t.merchantSiteId) && ((o = this.threeDsProcessor) == null || o.onError({ error: c })), a && (t.firstName = a.firstName, t.lastName = a.lastName, t.email = a.email, t.country = a.country), e && (t.cardNumber = e.cardNumber, t.cardHolderName = e.cardholder || "", t.expirationMonth = e.expiryDate.substring(2, 4), t.expirationYear = e.expiryDate.substring(0, 2), t.CVV = e.ccv), this.setChallengeFrameVisible(!0);
|
|
139
|
-
let { destroy: r } = D({
|
|
140
|
-
el: document.body,
|
|
141
|
-
component: N,
|
|
142
|
-
props: t,
|
|
143
|
-
on: { close: () => {
|
|
144
|
-
var i;
|
|
145
|
-
r(), this.setChallengeFrameVisible(!1), this.threeDSDestroy = () => {
|
|
146
|
-
}, (i = this.threeDsProcessor) == null || i.onError({ error: "Challenge cancelled" });
|
|
147
|
-
} }
|
|
148
|
-
});
|
|
149
|
-
this.threeDSDestroy = r;
|
|
150
|
-
}
|
|
151
|
-
messageHandler(s) {
|
|
152
|
-
var a, e, t;
|
|
153
|
-
if ((a = s == null ? void 0 : s.data) != null && a.status) {
|
|
154
|
-
if (s.data.status === "3ds_method_invocation_complete") {
|
|
155
|
-
this.log(`[${this.getType()}][messageHandler] 3Ds Method invocation complete`), s.stopPropagation(), this.onAuth(!0, "");
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
s.data.status === "3ds_challenge_complete" && (this.log(`[${this.getType()}][messageHandler] 3Ds Challenge complete`, s.data), s.stopPropagation(), this.closeChallenge(), s.data.cres && ((e = s.data.cres) == null ? void 0 : e.result) === "APPROVED" && ((t = s.data.cres) == null ? void 0 : t.errCode) === "0" ? (this._paResPayload = s.data.cres, this.onPostAuth()) : (this.log(`[${this.getType()}][messageHandler] Failed 3DS Challenge`, s.data), this.onError(400, "Failed 3DS Challenge")));
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
function A(n, s, a) {
|
|
163
|
-
return new V(n, s, a);
|
|
164
|
-
}
|
|
165
|
-
export {
|
|
166
|
-
A as default
|
|
167
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { h as l, F as T, J as P, Q as w, K as I, e as m, I as E, s as p, f as D, V as S, a as L, Y as u, D as k, Z as R } from "./index-CACzT3Rb.js";
|
|
2
|
-
import { O as b } from "./DefaultThreeDsProvider-ChnRLzKI-DO_0wVUN.js";
|
|
3
|
-
var h = m(!1);
|
|
4
|
-
function A(e, ...s) {
|
|
5
|
-
h.value && console.log(e, s);
|
|
6
|
-
}
|
|
7
|
-
function d(e) {
|
|
8
|
-
var s, t;
|
|
9
|
-
(s = e == null ? void 0 : e.data) != null && s.status && e.data.status === "init-card-form" && (h.value = !!((t = e == null ? void 0 : e.data) != null && t.debug));
|
|
10
|
-
}
|
|
11
|
-
function U() {
|
|
12
|
-
return p(() => {
|
|
13
|
-
window.addEventListener("message", d);
|
|
14
|
-
}), D(() => {
|
|
15
|
-
window.removeEventListener("message", d);
|
|
16
|
-
}), {
|
|
17
|
-
debug: h,
|
|
18
|
-
logMessage: A
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
var _ = { class: "modal-mask" }, $ = { class: "modal-wrapper" }, x = ["src"], V = /* @__PURE__ */ w(/* @__PURE__ */ I({
|
|
22
|
-
__name: "PayGLocalThreeDsChallenge",
|
|
23
|
-
props: { url: {} },
|
|
24
|
-
emits: ["close"],
|
|
25
|
-
setup(e, { emit: s }) {
|
|
26
|
-
let { logMessage: t } = U(), r = e, n = s, a = m(r.url), v = k(() => R(a.value) ? a.value : "");
|
|
27
|
-
E(() => r.url, (o) => {
|
|
28
|
-
a.value = o;
|
|
29
|
-
}), p(() => {
|
|
30
|
-
window.addEventListener("message", c);
|
|
31
|
-
}), D(() => {
|
|
32
|
-
window.removeEventListener("message", c);
|
|
33
|
-
});
|
|
34
|
-
function c(o) {
|
|
35
|
-
var g;
|
|
36
|
-
if (t("PayGLocalThreeDsChallenge: Message received", o.data), !((g = o == null ? void 0 : o.data) != null && g["payglocal-token"])) return;
|
|
37
|
-
let i = o.data["payglocal-token"];
|
|
38
|
-
t("Token received", i);
|
|
39
|
-
let f = i.split(".")[1], y = window.atob(f), C = JSON.parse(y);
|
|
40
|
-
n("close", C);
|
|
41
|
-
}
|
|
42
|
-
return (o, i) => (S(), L("div", _, [u("div", $, [u("iframe", {
|
|
43
|
-
src: v.value,
|
|
44
|
-
sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
|
|
45
|
-
}, null, 8, x)])]));
|
|
46
|
-
}
|
|
47
|
-
}), [["__scopeId", "data-v-0699f67d"]]), M = class extends b {
|
|
48
|
-
getType() {
|
|
49
|
-
return "PayGLocal";
|
|
50
|
-
}
|
|
51
|
-
onPreAuth() {
|
|
52
|
-
var e, s, t;
|
|
53
|
-
if (this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) == null ? void 0 : e.getTokenId()) {
|
|
54
|
-
(s = this.threeDsProcessor) == null || s.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (r, n) => {
|
|
55
|
-
var a;
|
|
56
|
-
this.log(`[${this.getType()}]: getCardDetails`, r, n), (a = this.threeDsProcessor) == null || a.setPaymentInfo(r), this.initChallenge(n.RedirectUrl);
|
|
57
|
-
}, () => {
|
|
58
|
-
l(this.container, "Unable to get card information");
|
|
59
|
-
});
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
(t = this.threeDsProcessor) == null || t.tokeniseCard(this.threeDsProcessor.getProviderId(), (r) => {
|
|
63
|
-
this.log(`[${this.getType()}]: tokeniseCard`, r), this.initChallenge(r.gatewayTokenData.RedirectUrl);
|
|
64
|
-
}, (r) => {
|
|
65
|
-
l(this.container, r);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
onAuth(e, s) {
|
|
69
|
-
}
|
|
70
|
-
onPostAuth() {
|
|
71
|
-
}
|
|
72
|
-
initChallenge(e) {
|
|
73
|
-
if (this.log(`[${this.getType()}]: initChallenge`, e), !e) {
|
|
74
|
-
l(this.container, "3D Secure URL is missing");
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
this.setChallengeFrameVisible(!0);
|
|
78
|
-
let { destroy: s } = T({
|
|
79
|
-
el: document.body,
|
|
80
|
-
component: V,
|
|
81
|
-
props: { url: e },
|
|
82
|
-
on: { close: (t) => {
|
|
83
|
-
var r, n, a;
|
|
84
|
-
if (this.closeChallenge(), this.log(`[${this.getType()}]: Challenge Results`, t), t.status === "AUTHORIZED") {
|
|
85
|
-
(r = this.threeDsProcessor) == null || r.onSuccess({
|
|
86
|
-
acsRenderingType: {},
|
|
87
|
-
acsTransID: "",
|
|
88
|
-
authenticationType: "",
|
|
89
|
-
authenticationValue: "",
|
|
90
|
-
challengeCancel: "",
|
|
91
|
-
dsTransID: "",
|
|
92
|
-
eci: "",
|
|
93
|
-
interactionCounter: "",
|
|
94
|
-
messageCategory: "",
|
|
95
|
-
messageExtension: [],
|
|
96
|
-
messageType: "",
|
|
97
|
-
messageVersion: "",
|
|
98
|
-
threeDSRequestorTransID: "",
|
|
99
|
-
threeDSServerTransID: "",
|
|
100
|
-
transStatusReason: "",
|
|
101
|
-
transStatus: "Y"
|
|
102
|
-
});
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (t.status === "CUSTOMER_CANCELLED") {
|
|
106
|
-
(n = this.threeDsProcessor) == null || n.onError({ error: "Challenge cancelled" });
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
(a = this.threeDsProcessor) == null || a.onError({ error: P });
|
|
110
|
-
} }
|
|
111
|
-
});
|
|
112
|
-
this.threeDSDestroy = s;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
function G(e, s, t) {
|
|
116
|
-
return new M(e, s, t);
|
|
117
|
-
}
|
|
118
|
-
export {
|
|
119
|
-
G as default
|
|
120
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface PayfurlDropinProps {
|
|
2
|
-
environment: string;
|
|
3
|
-
publicKey: string;
|
|
4
|
-
debug?: boolean;
|
|
5
|
-
amount: number;
|
|
6
|
-
currency: string;
|
|
7
|
-
successMessage?: string;
|
|
8
|
-
options?: object;
|
|
9
|
-
onSuccess: (message: string) => void;
|
|
10
|
-
onFailure: (message: string) => void;
|
|
11
|
-
onLoaded: () => void;
|
|
12
|
-
onValidationStatusChange: (status: boolean, message: string) => void;
|
|
13
|
-
onValidate?: () => boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const PayfurlDropin: (props: PayfurlDropinProps) => import("react").JSX.Element;
|
|
16
|
-
export default PayfurlDropin;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import PayfurlDropin from "./components/PayfurlDropin.tsx";
|
|
2
|
-
import type { DropInOptionsType, DropInGooglePayOptionsType, DropInApplePayOptionsType } from "../../../../src/sdk/types/DropInOptions.type.ts";
|
|
3
|
-
import type { UpiOptionsType } from "../../../../src/sdk/types/UpiOptions.type.ts";
|
|
4
|
-
import type { ClickToPayOptionsType } from "../../../../src/click2pay/ClickToPayOptions.type.ts";
|
|
5
|
-
import type { NetworkTokenOptionsType } from "../../../../src/sdk/types/NetworkTokenOptions.type.ts";
|
|
6
|
-
export { PayfurlDropin, DropInOptionsType, UpiOptionsType, DropInGooglePayOptionsType, DropInApplePayOptionsType, ClickToPayOptionsType, NetworkTokenOptionsType };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { NetworkTokenOptionsType } from "@/sdk/types/NetworkTokenOptions.type";
|
|
2
|
-
export type ClickToPayOptionsType = {
|
|
3
|
-
dpaId: string;
|
|
4
|
-
dpaName?: string;
|
|
5
|
-
useFpan?: boolean;
|
|
6
|
-
cardBrands?: CardBrandType[];
|
|
7
|
-
dpaBillingPreference?: DpaBillingPreferenceType;
|
|
8
|
-
confirmPayment?: boolean;
|
|
9
|
-
locale?: string;
|
|
10
|
-
savedCardsOptions?: SavedCardsOptionsType;
|
|
11
|
-
saveCard?: boolean;
|
|
12
|
-
tokenAuthenticationEnabled?: boolean;
|
|
13
|
-
networkTokenOptions?: NetworkTokenOptionsType;
|
|
14
|
-
};
|
|
15
|
-
export type SavedCardsOptionsType = {
|
|
16
|
-
align: "left" | "center";
|
|
17
|
-
};
|
|
18
|
-
export declare enum CardBrandType {
|
|
19
|
-
mastercard = "mastercard",
|
|
20
|
-
maestro = "maestro",
|
|
21
|
-
visa = "visa",
|
|
22
|
-
amex = "amex",
|
|
23
|
-
discover = "discover"
|
|
24
|
-
}
|
|
25
|
-
export declare const allCardBrands: CardBrandType[];
|
|
26
|
-
export declare enum DpaBillingPreferenceType {
|
|
27
|
-
NONE = "NONE",
|
|
28
|
-
FULL = "FULL",
|
|
29
|
-
POSTAL_COUNTRY = "POSTAL_COUNTRY"
|
|
30
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export declare enum CheckoutProviderType {
|
|
2
|
-
AZUPAY = "azupay",
|
|
3
|
-
SHIFT = "shift",
|
|
4
|
-
PAYGLOCAL = "payglocal",
|
|
5
|
-
PESAPAL = "pesapal",
|
|
6
|
-
ADDI = "addi",
|
|
7
|
-
AFFIRM = "affirm",
|
|
8
|
-
AFTERPAY = "afterpay",
|
|
9
|
-
ALMA = "alma",
|
|
10
|
-
APLAZAME = "aplazame",
|
|
11
|
-
APLAZO = "aplazo",
|
|
12
|
-
ATOME = "atome",
|
|
13
|
-
BILLEASE = "billease",
|
|
14
|
-
CASHEW = "cashew",
|
|
15
|
-
CASHPRESSO = "cashpresso",
|
|
16
|
-
CLEARPAY = "clearpay",
|
|
17
|
-
CLEO = "cleo",
|
|
18
|
-
DANA = "dana",
|
|
19
|
-
EASYPAISA = "easypaisa",
|
|
20
|
-
FINVERO = "finvero",
|
|
21
|
-
FUPAY = "fupay",
|
|
22
|
-
GCASG = "gcasg",
|
|
23
|
-
GRABPAY = "grabpay",
|
|
24
|
-
HUMM = "humm",
|
|
25
|
-
KAKAOPAY = "kakaopay",
|
|
26
|
-
KLARNA = "klarna",
|
|
27
|
-
KUESKIPAY = "kueskipay",
|
|
28
|
-
LARA = "lara",
|
|
29
|
-
LATITUDEPAY = "latitudepay",
|
|
30
|
-
LAYBUY = "laybuy",
|
|
31
|
-
LIMEPAY = "limepay",
|
|
32
|
-
PACE = "pace",
|
|
33
|
-
PAGALEVE = "pagaleve",
|
|
34
|
-
PARIBAS = "paribas",
|
|
35
|
-
PAYWITHFOUR = "paywithfour",
|
|
36
|
-
PAYJUSTNOW = "payjustnow",
|
|
37
|
-
PAYTM = "paytm",
|
|
38
|
-
PAYBRIGHT = "paybright",
|
|
39
|
-
PAYFLEX = "payflex",
|
|
40
|
-
PAYRIGHT = "payright",
|
|
41
|
-
POSTPAY = "postpay",
|
|
42
|
-
RATEPAY = "ratepay",
|
|
43
|
-
RIVERTY = "riverty",
|
|
44
|
-
SCALAPAY = "scalapay",
|
|
45
|
-
SEZZLE = "sezzle",
|
|
46
|
-
SHOPBACK = "shopback",
|
|
47
|
-
SMARTPAY = "smartpay",
|
|
48
|
-
SOFINCO = "sofinco",
|
|
49
|
-
SPLITIT = "splitit",
|
|
50
|
-
TABBY = "tabby",
|
|
51
|
-
TAMARA = "tamara",
|
|
52
|
-
TENDOPAY = "tendopay",
|
|
53
|
-
TOUCHNGO = "touchngo",
|
|
54
|
-
TRIPLEA = "triplea",
|
|
55
|
-
TRUEMONEY = "truemoney",
|
|
56
|
-
TWISTO = "twisto",
|
|
57
|
-
UPLIFT = "uplift",
|
|
58
|
-
VALU = "valu",
|
|
59
|
-
ZEST = "zest",
|
|
60
|
-
ZIP = "zip",
|
|
61
|
-
ZOODPAY = "zoodpay",
|
|
62
|
-
BKASH = "bkash",
|
|
63
|
-
ERATY = "eraty",
|
|
64
|
-
PAYBYACCOUNT = "pay_by_account",
|
|
65
|
-
UPI = "upi"
|
|
66
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { CheckoutProviderType } from "../checkout/checkoutProvider.type";
|
|
2
|
-
import { FraudProviderType } from "../fraud/fraudProvider.type";
|
|
3
|
-
import { UpiOptionsType } from "./UpiOptions.type";
|
|
4
|
-
import { ClickToPayOptionsType } from "@/click2pay/ClickToPayOptions.type";
|
|
5
|
-
import { NetworkTokenOptionsType } from "./NetworkTokenOptions.type";
|
|
6
|
-
import { PaymentType } from "@/sdk/types/PaymentType.type";
|
|
7
|
-
import { GooglePayButtonOptionsType } from "@/sdk/types/GooglePayButtonOptions.type";
|
|
8
|
-
export type DropInCheckoutProviderType = {
|
|
9
|
-
providerType: CheckoutProviderType;
|
|
10
|
-
providerId: string;
|
|
11
|
-
options: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
clientParameters: {
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type DropInFraudProviderType = {
|
|
19
|
-
providerType: FraudProviderType;
|
|
20
|
-
providerId: string;
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
stopPaymentOnFailure: boolean;
|
|
23
|
-
options: {
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export type DropInThreeDsProviderType = {
|
|
28
|
-
providerType: string;
|
|
29
|
-
providerId: string;
|
|
30
|
-
};
|
|
31
|
-
export type DropInGooglePayOptionsType = {
|
|
32
|
-
providerId: string;
|
|
33
|
-
gateway: string;
|
|
34
|
-
googlePayGatewayMerchantId: string;
|
|
35
|
-
googlePayMerchantId: string;
|
|
36
|
-
googlePayMerchantName: string;
|
|
37
|
-
buttonOptions?: GooglePayButtonOptionsType;
|
|
38
|
-
};
|
|
39
|
-
export type DropInApplePayOptionsType = {
|
|
40
|
-
providerId: string;
|
|
41
|
-
providerType: string;
|
|
42
|
-
lineItemLabel: string;
|
|
43
|
-
/** @deprecated Derived server-side from the authenticated account. Ignored; removed next major. */
|
|
44
|
-
merchantIdentifier?: string;
|
|
45
|
-
/** @deprecated Ignored -- the SDK now sends window.location.hostname. Removed next major. */
|
|
46
|
-
domainName?: string;
|
|
47
|
-
/** @deprecated Derived server-side from the authenticated account. Ignored; removed next major. */
|
|
48
|
-
displayName?: string;
|
|
49
|
-
clientParameters: {
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
};
|
|
52
|
-
countryCode?: string;
|
|
53
|
-
merchantCapabilities?: ApplePayJS.ApplePayMerchantCapability[];
|
|
54
|
-
supportedNetworks?: string[];
|
|
55
|
-
supportedCountries?: string[];
|
|
56
|
-
applePayVersion?: number;
|
|
57
|
-
};
|
|
58
|
-
export type DropInOptionsType = {
|
|
59
|
-
paypalButtonStyle: string;
|
|
60
|
-
paypalEnablePayIn4: string;
|
|
61
|
-
cardProviderId: string;
|
|
62
|
-
paypalProviderId: string;
|
|
63
|
-
payToProviderId: string;
|
|
64
|
-
threeDsProviderId: string;
|
|
65
|
-
threeDSEmail: string;
|
|
66
|
-
payToMaximumAmount: number;
|
|
67
|
-
payToDescription: string;
|
|
68
|
-
upiOptions: UpiOptionsType;
|
|
69
|
-
googlePayOptions: DropInGooglePayOptionsType;
|
|
70
|
-
applePayOptions: DropInApplePayOptionsType;
|
|
71
|
-
clickToPayEnabled?: boolean;
|
|
72
|
-
clickToPayOptions?: ClickToPayOptionsType;
|
|
73
|
-
cardFormStyle?: string;
|
|
74
|
-
tokenAuthenticationEnabled?: boolean;
|
|
75
|
-
createNetworkToken?: boolean;
|
|
76
|
-
networkTokenOptions?: NetworkTokenOptionsType;
|
|
77
|
-
vault?: boolean;
|
|
78
|
-
allowedPaymentTypes?: PaymentType[];
|
|
79
|
-
metadata?: {
|
|
80
|
-
[key: string]: string;
|
|
81
|
-
};
|
|
82
|
-
verifyCard?: boolean;
|
|
83
|
-
};
|
|
84
|
-
export type DropInPayToOptionsType = {
|
|
85
|
-
providerId: string;
|
|
86
|
-
maximumAmount: number;
|
|
87
|
-
description: string;
|
|
88
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type GooglePayButtonType = "book" | "buy" | "checkout" | "donate" | "order" | "pay" | "plain" | "subscribe";
|
|
2
|
-
export type GooglePayButtonColor = "default" | "black" | "white";
|
|
3
|
-
export type GooglePayButtonSizeMode = "static" | "fill";
|
|
4
|
-
export type GooglePayButtonOptionsType = {
|
|
5
|
-
buttonColor?: GooglePayButtonColor;
|
|
6
|
-
buttonType?: GooglePayButtonType;
|
|
7
|
-
buttonRadius?: number;
|
|
8
|
-
buttonSizeMode?: GooglePayButtonSizeMode;
|
|
9
|
-
buttonLocale?: string;
|
|
10
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare enum PaymentType {
|
|
2
|
-
card = "card",
|
|
3
|
-
paypal = "paypal",
|
|
4
|
-
applepay = "applepay",
|
|
5
|
-
googlepay = "googlepay",
|
|
6
|
-
upi = "upi",
|
|
7
|
-
payto = "payto",
|
|
8
|
-
payid = "payid",
|
|
9
|
-
shift = "shift",
|
|
10
|
-
pesapal = "pesapal",
|
|
11
|
-
paybyaccount = "paybyaccount",
|
|
12
|
-
payglocal = "payglocal",
|
|
13
|
-
zip = "zip",
|
|
14
|
-
dlocal = "dlocal"
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type UpiOptionsType = {
|
|
2
|
-
documentId: string;
|
|
3
|
-
name: string;
|
|
4
|
-
email: string;
|
|
5
|
-
subscriptionFrequencyUnit: string;
|
|
6
|
-
subscriptionFrequency: number;
|
|
7
|
-
subscriptionStartAt: string;
|
|
8
|
-
subscriptionEndAt: string;
|
|
9
|
-
metadata?: {
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
};
|
|
12
|
-
};
|