@payfurl/react-plugin 1.3.0 → 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/ApplePayButtonOptions.type-BvRk9kiK-BzeTPT7u.js +9 -0
- package/dist/{DefaultThreeDsProvider-aIZr-d29-34xFFHE7.js → DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js} +22 -46
- package/dist/MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js +143 -0
- package/dist/{PayWayAppleButton-DESHrVB--dAz40mnI.js → PayWayAppleButton-C-XfcgNS-rgWe-QJM.js} +3 -13
- package/dist/components/PayfurlDropin.d.ts +17 -0
- package/dist/cxpay-VbaQA3_P-DlS7yCqQ.js +15 -0
- package/dist/default-Diji0SXY-ghmIvhgy.js +7 -0
- package/dist/ecentric-BlNDCZo_-Bd8Q_3ZG.js +82 -0
- package/dist/epna-CxmJ_mqR-D4gbP4NT.js +15 -0
- package/dist/flashbanc-BAxvqtBB-DVXrWV0Z.js +15 -0
- package/dist/{forterDeviceIntelScript-DdHZ7KLR-Bj5SDir_.js → forter-DXQjpKVH-DaJPhK3m.js} +55 -2
- package/dist/forter-R2alfHeE-C5KHGNgt.js +33 -0
- package/dist/{GPaymentsThreeDsProvider-COuZ_3w6-LSN7UEC9.js → gpayments-B5KWQV4S-QV7caEyB.js} +21 -29
- package/dist/{index-BuqGcTyx.js → index-CL6hUU-f.js} +4757 -5274
- 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-Ch7qQ6Av-DbPjmA5v.js +15 -0
- package/dist/nuvei-DRmlfpTL-ByeKEnae.js +165 -0
- package/dist/payabli-CiBJ1-vC-BthvUlRk.js +15 -0
- package/dist/payfurl-react.es.js +1 -1
- package/dist/payfurl-react.umd.js +19 -18
- package/dist/payglocal-uAPlijwL-CvGatUVh.js +109 -0
- package/dist/{payway_rest-m9k6k7M0-DRpVLFXx.js → payway_rest-CjgIP42z-7zwBGwnD.js} +1 -1
- package/dist/skybank-D7uRF17E-BXng_6yf.js +15 -0
- package/package.json +4 -3
- package/dist/CxPayThreeDsProvider-lD7RyyaH-CZzCobVO.js +0 -12
- package/dist/EcentricThreeDsProvider-B7Hq90Yp-BLFmnpX_.js +0 -78
- package/dist/EpnaThreeDsProvider-BAO2GROY-DrXyG7m7.js +0 -12
- package/dist/FlashBancThreeDsProvider-CIZpoTAj-mm8iTQlK.js +0 -12
- package/dist/MetricsGlobalThreeDsProvider-D3x5hiTk-Otm4rjjf.js +0 -149
- package/dist/NmiThreeDsProvider-fLTB46dM-CF2ixVZj.js +0 -12
- package/dist/NuveiThreeDsProvider-BpWi_OJA-DpNk-jUR.js +0 -164
- package/dist/PayGLocalThreeDsProvider-DvA8Ng4u-CaEbpX2R.js +0 -117
- package/dist/PayabliThreeDsProvider-B34Ah8DW-B9F4JRAO.js +0 -12
- package/dist/SkyBankThreeDsProvider-0S5UKz-C-BkciCrGp.js +0 -12
- package/dist/ThreeDsPostAuthResponse.type-BFN9wqum-CaV_50Qh.js +0 -26
- package/dist/cxpay-2tlxyzUF-CXU4oVZi.js +0 -7
- package/dist/default-Sih0fC9J-l6oXyAYh.js +0 -7
- package/dist/ecentric-CN_DxZw6-CDBzRGVY.js +0 -7
- package/dist/epna-CuWMBne4-Co8ZvTur.js +0 -7
- package/dist/flashbanc-YdmE24o7-CYnxMwr_.js +0 -7
- package/dist/forter-CcQiwntl-Cc86pyZN.js +0 -61
- package/dist/fraudProvider.type-Bzd9orn2-D-DU7Fmr.js +0 -7
- package/dist/fraudStatus.type-BvRk9kiK-zQpibcxa.js +0 -24
- package/dist/gpayments-DVhgcMCp-D1cODCJ9.js +0 -7
- package/dist/metrics_global-DshQOuaW-T-FOilvV.js +0 -7
- package/dist/nmi-Qo4scfgJ-DVhwpAno.js +0 -7
- package/dist/nuvei-BFllJ45f-B-JXn8ur.js +0 -7
- package/dist/payabli-eGPashQz-Bx0aWlgU.js +0 -7
- package/dist/payglocal-WvM5v5cn-CsqWoNS0.js +0 -7
- 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/skybank-174OmYCW-CxTyN679.js +0 -7
- 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 -80
- 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,117 +0,0 @@
|
|
|
1
|
-
import { h as l, N as P, K as f, X as w, U as E, J as m, F as I, i as p, j as D, R as L, a as R, b as d, D as S, Y as b } from "./index-BuqGcTyx.js";
|
|
2
|
-
import { t as k } from "./DefaultThreeDsProvider-aIZr-d29-34xFFHE7.js";
|
|
3
|
-
var h = m(!1);
|
|
4
|
-
function U(e, ...t) {
|
|
5
|
-
h.value && console.log(e, t);
|
|
6
|
-
}
|
|
7
|
-
function u(e) {
|
|
8
|
-
var t, r;
|
|
9
|
-
(t = e == null ? void 0 : e.data) != null && t.status && e.data.status === "init-card-form" && (h.value = !!((r = e == null ? void 0 : e.data) != null && r.debug));
|
|
10
|
-
}
|
|
11
|
-
function A() {
|
|
12
|
-
return p(() => {
|
|
13
|
-
window.addEventListener("message", u);
|
|
14
|
-
}), D(() => {
|
|
15
|
-
window.removeEventListener("message", u);
|
|
16
|
-
}), {
|
|
17
|
-
debug: h,
|
|
18
|
-
logMessage: U
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
var _ = { class: "modal-mask" }, $ = { class: "modal-wrapper" }, x = ["src"], G = /* @__PURE__ */ w(/* @__PURE__ */ E({
|
|
22
|
-
__name: "PayGLocalThreeDsChallenge",
|
|
23
|
-
props: { url: {} },
|
|
24
|
-
emits: ["close"],
|
|
25
|
-
setup(e, { emit: t }) {
|
|
26
|
-
let { logMessage: r } = A(), s = e, n = t, a = m(s.url), v = S(() => b(a.value) ? a.value : "");
|
|
27
|
-
I(() => s.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 (r("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
|
-
r("Token received", i);
|
|
39
|
-
let y = i.split(".")[1], T = window.atob(y), C = JSON.parse(T);
|
|
40
|
-
n("close", C);
|
|
41
|
-
}
|
|
42
|
-
return (o, i) => (L(), R("div", _, [d("div", $, [d("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"]]), F = class extends k {
|
|
48
|
-
getType() {
|
|
49
|
-
return "PayGLocal";
|
|
50
|
-
}
|
|
51
|
-
onPreAuth() {
|
|
52
|
-
var e, t, r;
|
|
53
|
-
if (this.log(`[${this.getType()}]: onPreAuth`), (e = this.threeDsProcessor) == null ? void 0 : e.getTokenId()) {
|
|
54
|
-
(t = this.threeDsProcessor) == null || t.getCardDetails(this.threeDsProcessor.getProviderId(), this.threeDsProcessor.getTokenId(), (s, n) => {
|
|
55
|
-
var a;
|
|
56
|
-
this.log(`[${this.getType()}]: getCardDetails`, s, n), (a = this.threeDsProcessor) == null || a.setPaymentInfo(s), this.initChallenge(n.RedirectUrl);
|
|
57
|
-
}, () => {
|
|
58
|
-
l(this.container, "Unable to get card information");
|
|
59
|
-
});
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
(r = this.threeDsProcessor) == null || r.tokeniseCard(this.threeDsProcessor.getProviderId(), (s) => {
|
|
63
|
-
this.log(`[${this.getType()}]: tokeniseCard`, s), this.initChallenge(s.gatewayTokenData.RedirectUrl);
|
|
64
|
-
}, (s) => {
|
|
65
|
-
l(this.container, s);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
onAuth(e, t) {
|
|
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: t } = P({
|
|
79
|
-
el: document.body,
|
|
80
|
-
component: G,
|
|
81
|
-
props: { url: e },
|
|
82
|
-
on: { close: (r) => {
|
|
83
|
-
var s, n, a;
|
|
84
|
-
if (this.closeChallenge(), this.log(`[${this.getType()}]: Challenge Results`, r), r.status === "AUTHORIZED") {
|
|
85
|
-
(s = this.threeDsProcessor) == null || s.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 (r.status === "CUSTOMER_CANCELLED") {
|
|
106
|
-
(n = this.threeDsProcessor) == null || n.onError({ error: "Challenge cancelled" });
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
(a = this.threeDsProcessor) == null || a.onError({ error: f });
|
|
110
|
-
} }
|
|
111
|
-
});
|
|
112
|
-
this.threeDSDestroy = t;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
F as PayGLocalThreeDsProvider
|
|
117
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { t as a } from "./MetricsGlobalThreeDsProvider-D3x5hiTk-Otm4rjjf.js";
|
|
2
|
-
var t = class extends a {
|
|
3
|
-
getType() {
|
|
4
|
-
return "Payabli";
|
|
5
|
-
}
|
|
6
|
-
getDomain() {
|
|
7
|
-
return "centavo.transactiongateway.com";
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
t as PayabliThreeDsProvider
|
|
12
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { FORTER_DEVICE_INTEL_SCRIPT_B64 as p } from "./forterDeviceIntelScript-DdHZ7KLR-Bj5SDir_.js";
|
|
2
|
-
var s = "", c = "2e6515aa0b8e", y = "v1.2", m = "checkoutTools__script", f = `https://sdk.checkouttools.com/${y}/managedOrders.js`, g = (e, d, n, r, a, o, t, u, l) => JSON.stringify({
|
|
3
|
-
siteId: l.SiteId,
|
|
4
|
-
providerId: e,
|
|
5
|
-
amount: d,
|
|
6
|
-
currency: n,
|
|
7
|
-
paymentInformation: r,
|
|
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: t.streetAddress,
|
|
17
|
-
line2: t.streetAddress2,
|
|
18
|
-
city: t.city,
|
|
19
|
-
country: t.country,
|
|
20
|
-
postalCode: t.postalCode,
|
|
21
|
-
state: t.state
|
|
22
|
-
},
|
|
23
|
-
order: { items: u.orderItems.map((i) => ({
|
|
24
|
-
productCode: i.sku,
|
|
25
|
-
quantity: Number(i.quantity),
|
|
26
|
-
amount: Number(i.unitPrice)
|
|
27
|
-
})) },
|
|
28
|
-
connectionInformation: {
|
|
29
|
-
userAgent: navigator.userAgent,
|
|
30
|
-
cookie: s,
|
|
31
|
-
checkoutTime: Date.now()
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
function I(e, d, n) {
|
|
35
|
-
var a;
|
|
36
|
-
let r = (a = window.checkoutTools) == null ? void 0 : a.managedOrders;
|
|
37
|
-
if (!r || typeof r.manageOrder != "function") {
|
|
38
|
-
n(/* @__PURE__ */ Error("Forter managedOrders script is not loaded"));
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
r.manageOrder(e, { challengeContainer: d ?? null }, n);
|
|
42
|
-
}
|
|
43
|
-
function h() {
|
|
44
|
-
if (document.addEventListener("ftr:tokenReady", function(e) {
|
|
45
|
-
s = e.detail;
|
|
46
|
-
}), !document.getElementById(c)) {
|
|
47
|
-
let e = document.createElement("script");
|
|
48
|
-
e.type = "text/javascript", e.id = c, e.innerHTML = window.atob(p), document.getElementsByTagName("body")[0].appendChild(e);
|
|
49
|
-
}
|
|
50
|
-
if (!document.getElementById(m)) {
|
|
51
|
-
let e = document.createElement("script");
|
|
52
|
-
e.type = "text/javascript", e.id = m, e.setAttribute("data-site-id", c), e.src = f, document.getElementsByTagName("body")[0].appendChild(e);
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
getFraudCheckData: g,
|
|
56
|
-
manageOrder: I
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
h as default
|
|
61
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2
|
-
__proto__: null
|
|
3
|
-
}, Symbol.toStringTag, { value: "Module" })), t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
-
__proto__: null
|
|
5
|
-
}, Symbol.toStringTag, { value: "Module" })), o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
|
-
__proto__: null
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })), r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
-
__proto__: null
|
|
9
|
-
}, Symbol.toStringTag, { value: "Module" })), l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
-
__proto__: null
|
|
11
|
-
}, Symbol.toStringTag, { value: "Module" })), n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12
|
-
__proto__: null
|
|
13
|
-
}, Symbol.toStringTag, { value: "Module" })), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
-
__proto__: null
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
16
|
-
export {
|
|
17
|
-
e as A,
|
|
18
|
-
o as T,
|
|
19
|
-
t as a,
|
|
20
|
-
r as b,
|
|
21
|
-
l as c,
|
|
22
|
-
_ as d,
|
|
23
|
-
n as f
|
|
24
|
-
};
|
|
@@ -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,80 +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
|
-
merchantIdentifier: string;
|
|
44
|
-
domainName: string;
|
|
45
|
-
displayName: string;
|
|
46
|
-
clientParameters: {
|
|
47
|
-
[key: string]: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export type DropInOptionsType = {
|
|
51
|
-
paypalButtonStyle: string;
|
|
52
|
-
paypalEnablePayIn4: string;
|
|
53
|
-
cardProviderId: string;
|
|
54
|
-
paypalProviderId: string;
|
|
55
|
-
payToProviderId: string;
|
|
56
|
-
threeDsProviderId: string;
|
|
57
|
-
threeDSEmail: string;
|
|
58
|
-
payToMaximumAmount: number;
|
|
59
|
-
payToDescription: string;
|
|
60
|
-
upiOptions: UpiOptionsType;
|
|
61
|
-
googlePayOptions: DropInGooglePayOptionsType;
|
|
62
|
-
applePayOptions: DropInApplePayOptionsType;
|
|
63
|
-
clickToPayEnabled?: boolean;
|
|
64
|
-
clickToPayOptions?: ClickToPayOptionsType;
|
|
65
|
-
cardFormStyle?: string;
|
|
66
|
-
tokenAuthenticationEnabled?: boolean;
|
|
67
|
-
createNetworkToken?: boolean;
|
|
68
|
-
networkTokenOptions?: NetworkTokenOptionsType;
|
|
69
|
-
vault?: boolean;
|
|
70
|
-
allowedPaymentTypes?: PaymentType[];
|
|
71
|
-
metadata?: {
|
|
72
|
-
[key: string]: string;
|
|
73
|
-
};
|
|
74
|
-
verifyCard?: boolean;
|
|
75
|
-
};
|
|
76
|
-
export type DropInPayToOptionsType = {
|
|
77
|
-
providerId: string;
|
|
78
|
-
maximumAmount: number;
|
|
79
|
-
description: string;
|
|
80
|
-
};
|
|
@@ -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
|
-
};
|