@finyxpay/ui 0.1.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/api/client.d.ts +36 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/country.d.ts +2 -0
- package/dist/api/country.d.ts.map +1 -0
- package/dist/api/resolveApiBase.d.ts +3 -0
- package/dist/api/resolveApiBase.d.ts.map +1 -0
- package/dist/api/resolveElementType.d.ts +6 -0
- package/dist/api/resolveElementType.d.ts.map +1 -0
- package/dist/api/status.d.ts +4 -0
- package/dist/api/status.d.ts.map +1 -0
- package/dist/api/walletSupport.d.ts +7 -0
- package/dist/api/walletSupport.d.ts.map +1 -0
- package/dist/components/core/Checkout.d.ts +16 -0
- package/dist/components/core/Checkout.d.ts.map +1 -0
- package/dist/components/core/PaymentMethodList.d.ts +9 -0
- package/dist/components/core/PaymentMethodList.d.ts.map +1 -0
- package/dist/components/core/PaymentResult.d.ts +5 -0
- package/dist/components/core/PaymentResult.d.ts.map +1 -0
- package/dist/components/core/methodElements.d.ts +42 -0
- package/dist/components/core/methodElements.d.ts.map +1 -0
- package/dist/components/core/payUi.d.ts +32 -0
- package/dist/components/core/payUi.d.ts.map +1 -0
- package/dist/components/shared/ThreeDSModal.d.ts +22 -0
- package/dist/components/shared/ThreeDSModal.d.ts.map +1 -0
- package/dist/components/shared/icons.d.ts +3 -0
- package/dist/components/shared/icons.d.ts.map +1 -0
- package/dist/components/shared/timer.d.ts +2 -0
- package/dist/components/shared/timer.d.ts.map +1 -0
- package/dist/components/shared/ui.d.ts +9 -0
- package/dist/components/shared/ui.d.ts.map +1 -0
- package/dist/core/BaseElement.d.ts +27 -0
- package/dist/core/BaseElement.d.ts.map +1 -0
- package/dist/core/Finyx.d.ts +18 -0
- package/dist/core/Finyx.d.ts.map +1 -0
- package/dist/core/dom.d.ts +7 -0
- package/dist/core/dom.d.ts.map +1 -0
- package/dist/core/instantiate.d.ts +4 -0
- package/dist/core/instantiate.d.ts.map +1 -0
- package/dist/core/theme.d.ts +3 -0
- package/dist/core/theme.d.ts.map +1 -0
- package/dist/finyx.css +1 -0
- package/dist/finyx.umd.cjs +142 -0
- package/dist/finyx.umd.cjs.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9841 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/adyen.d.ts +16 -0
- package/dist/providers/adyen.d.ts.map +1 -0
- package/dist/providers/airwallex.d.ts +27 -0
- package/dist/providers/airwallex.d.ts.map +1 -0
- package/dist/types.d.ts +174 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PaymentData } from '../types';
|
|
2
|
+
import { FinyxClient } from '../api/client';
|
|
3
|
+
export declare function mountAdyenFields(opts: {
|
|
4
|
+
container: HTMLElement;
|
|
5
|
+
client: FinyxClient;
|
|
6
|
+
paymentId: string;
|
|
7
|
+
methodType: string;
|
|
8
|
+
paymentData: PaymentData;
|
|
9
|
+
amount: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
showWordmark: boolean;
|
|
12
|
+
onSuccess: () => void;
|
|
13
|
+
onError: (message: string) => void;
|
|
14
|
+
}): Promise<() => void>;
|
|
15
|
+
export declare function isAdyenProvider(provider: string | undefined): boolean;
|
|
16
|
+
//# sourceMappingURL=adyen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adyen.d.ts","sourceRoot":"","sources":["../../src/providers/adyen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAyB,WAAW,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAmB5C,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAkGtB;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAErE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare function ensureAirwallex(apiBase: string): Promise<void>;
|
|
2
|
+
export declare function mountAirwallexCard(opts: {
|
|
3
|
+
container: HTMLElement;
|
|
4
|
+
apiBase: string;
|
|
5
|
+
intentId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
autoCapture?: boolean;
|
|
10
|
+
allowedBrands?: string[];
|
|
11
|
+
onSuccess: () => void;
|
|
12
|
+
onError: (message: string) => void;
|
|
13
|
+
}): Promise<() => void>;
|
|
14
|
+
export declare function mountAirwallexWallet(opts: {
|
|
15
|
+
container: HTMLElement;
|
|
16
|
+
apiBase: string;
|
|
17
|
+
wallet: 'applepay' | 'googlepay';
|
|
18
|
+
intentId: string;
|
|
19
|
+
clientSecret: string;
|
|
20
|
+
currency: string;
|
|
21
|
+
amount: number;
|
|
22
|
+
autoCapture?: boolean;
|
|
23
|
+
allowedBrands?: string[];
|
|
24
|
+
onSuccess: () => void;
|
|
25
|
+
onError: (message: string) => void;
|
|
26
|
+
}): Promise<() => void>;
|
|
27
|
+
//# sourceMappingURL=airwallex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"airwallex.d.ts","sourceRoot":"","sources":["../../src/providers/airwallex.ts"],"names":[],"mappings":"AA0BA,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAS9D;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC7C,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAsEtB;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,UAAU,GAAG,WAAW,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CA8CtB"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export type AppearanceTheme = 'default' | 'minimal' | 'night';
|
|
2
|
+
export interface Appearance {
|
|
3
|
+
theme?: AppearanceTheme;
|
|
4
|
+
showWordmark?: boolean;
|
|
5
|
+
variables?: {
|
|
6
|
+
colorPrimary?: string;
|
|
7
|
+
colorBackground?: string;
|
|
8
|
+
colorText?: string;
|
|
9
|
+
colorMuted?: string;
|
|
10
|
+
colorDanger?: string;
|
|
11
|
+
borderRadius?: string;
|
|
12
|
+
fontFamily?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface InitOptions {
|
|
16
|
+
apiKey: string;
|
|
17
|
+
apiBase?: string;
|
|
18
|
+
locale?: string;
|
|
19
|
+
appearance?: Appearance;
|
|
20
|
+
}
|
|
21
|
+
export type PaymentMethod = {
|
|
22
|
+
type: string;
|
|
23
|
+
name: string;
|
|
24
|
+
brands?: string[];
|
|
25
|
+
};
|
|
26
|
+
export type CheckoutItem = {
|
|
27
|
+
productID: string;
|
|
28
|
+
productName: string;
|
|
29
|
+
quantity: number;
|
|
30
|
+
price: number;
|
|
31
|
+
};
|
|
32
|
+
export type PayOptions = {
|
|
33
|
+
amount: number;
|
|
34
|
+
currency: string;
|
|
35
|
+
orderId: string;
|
|
36
|
+
items: CheckoutItem[];
|
|
37
|
+
returnUrl: string;
|
|
38
|
+
autoCapture?: boolean;
|
|
39
|
+
paymentMethod?: PaymentMethod;
|
|
40
|
+
metadata?: Record<string, string>;
|
|
41
|
+
};
|
|
42
|
+
export type CheckoutElementOptions = PayOptions;
|
|
43
|
+
export type CardElementOptions = PayOptions;
|
|
44
|
+
export type QrElementOptions = PayOptions;
|
|
45
|
+
export type WalletElementOptions = PayOptions;
|
|
46
|
+
export type AlipayElementOptions = PayOptions;
|
|
47
|
+
export type RedirectElementOptions = PayOptions & {
|
|
48
|
+
url?: string;
|
|
49
|
+
};
|
|
50
|
+
export type PaymentMethodListOptions = {
|
|
51
|
+
amount?: number;
|
|
52
|
+
currency?: string;
|
|
53
|
+
};
|
|
54
|
+
export type PaymentResultOptions = {
|
|
55
|
+
status?: 'success' | 'failed' | 'pending';
|
|
56
|
+
message?: string;
|
|
57
|
+
paymentId?: string;
|
|
58
|
+
orderId?: string;
|
|
59
|
+
};
|
|
60
|
+
export type ElementType = 'checkout' | 'payment-method-list' | 'card' | 'qr' | 'wallet' | 'alipay' | 'redirect' | 'payment-result' | 'paynow' | 'wechatpay' | 'applepay' | 'googlepay' | 'alipaycn' | 'alipayhk';
|
|
61
|
+
export type ElementOptionsMap = {
|
|
62
|
+
checkout: CheckoutElementOptions;
|
|
63
|
+
'payment-method-list': PaymentMethodListOptions;
|
|
64
|
+
card: CardElementOptions;
|
|
65
|
+
qr: QrElementOptions;
|
|
66
|
+
wallet: WalletElementOptions;
|
|
67
|
+
alipay: AlipayElementOptions;
|
|
68
|
+
redirect: RedirectElementOptions;
|
|
69
|
+
'payment-result': PaymentResultOptions;
|
|
70
|
+
paynow: QrElementOptions;
|
|
71
|
+
wechatpay: QrElementOptions;
|
|
72
|
+
applepay: WalletElementOptions;
|
|
73
|
+
googlepay: WalletElementOptions;
|
|
74
|
+
alipaycn: AlipayElementOptions;
|
|
75
|
+
alipayhk: AlipayElementOptions;
|
|
76
|
+
};
|
|
77
|
+
export type PaymentResult = {
|
|
78
|
+
paymentId: string;
|
|
79
|
+
orderId?: string;
|
|
80
|
+
resultCode?: string;
|
|
81
|
+
status: 'success' | 'failed';
|
|
82
|
+
message?: string;
|
|
83
|
+
};
|
|
84
|
+
export interface ElementEventMap {
|
|
85
|
+
ready: void;
|
|
86
|
+
select: PaymentMethod;
|
|
87
|
+
change: Record<string, unknown>;
|
|
88
|
+
success: PaymentResult;
|
|
89
|
+
error: {
|
|
90
|
+
message: string;
|
|
91
|
+
code?: string;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export type ElementEventType = keyof ElementEventMap;
|
|
95
|
+
export type ElementEventHandler<T extends ElementEventType> = (data: ElementEventMap[T]) => void;
|
|
96
|
+
export interface FinyxElement<T extends ElementType = ElementType> {
|
|
97
|
+
readonly type: T;
|
|
98
|
+
mount(container: string | HTMLElement): this;
|
|
99
|
+
unmount(): this;
|
|
100
|
+
destroy(): void;
|
|
101
|
+
update(options: Partial<ElementOptionsMap[T]>): this;
|
|
102
|
+
on<E extends ElementEventType>(event: E, handler: ElementEventHandler<E>): this;
|
|
103
|
+
off<E extends ElementEventType>(event: E, handler: ElementEventHandler<E>): this;
|
|
104
|
+
}
|
|
105
|
+
export type AdyenAction = {
|
|
106
|
+
type?: string;
|
|
107
|
+
paymentMethodType?: string;
|
|
108
|
+
qrCodeData?: string;
|
|
109
|
+
url?: string;
|
|
110
|
+
paymentData?: string;
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
export type PaymentIntentNextAction = {
|
|
114
|
+
type?: string;
|
|
115
|
+
qrcode?: string;
|
|
116
|
+
url?: string;
|
|
117
|
+
};
|
|
118
|
+
export type PaymentIntent = {
|
|
119
|
+
id?: string;
|
|
120
|
+
status?: string;
|
|
121
|
+
client_secret?: string;
|
|
122
|
+
currency?: string;
|
|
123
|
+
merchant_order_id?: string;
|
|
124
|
+
next_action?: PaymentIntentNextAction | null;
|
|
125
|
+
};
|
|
126
|
+
export type PaymentData = {
|
|
127
|
+
client_secret?: string;
|
|
128
|
+
clientKey?: string;
|
|
129
|
+
environment?: string;
|
|
130
|
+
locale?: string;
|
|
131
|
+
action?: AdyenAction;
|
|
132
|
+
resultCode?: string;
|
|
133
|
+
pspReference?: string;
|
|
134
|
+
next_action?: PaymentIntentNextAction | null;
|
|
135
|
+
id?: string;
|
|
136
|
+
status?: string;
|
|
137
|
+
merchant_order_id?: string;
|
|
138
|
+
};
|
|
139
|
+
export type CheckoutPaymentResponse = {
|
|
140
|
+
provider?: string;
|
|
141
|
+
paymentIntent?: PaymentIntent;
|
|
142
|
+
paymentData?: PaymentData;
|
|
143
|
+
payment: {
|
|
144
|
+
id: string;
|
|
145
|
+
transactionStatus?: string;
|
|
146
|
+
platform?: string;
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export type ConfirmPaymentRequest = {
|
|
151
|
+
paymentMethod?: Record<string, unknown>;
|
|
152
|
+
browserInfo?: Record<string, unknown>;
|
|
153
|
+
paymentData?: string;
|
|
154
|
+
details?: Record<string, unknown>;
|
|
155
|
+
};
|
|
156
|
+
export type PaymentInfoResponse = {
|
|
157
|
+
payment: {
|
|
158
|
+
id: string;
|
|
159
|
+
platform?: string;
|
|
160
|
+
transactionStatus?: string;
|
|
161
|
+
};
|
|
162
|
+
paymentIntent?: {
|
|
163
|
+
id?: string;
|
|
164
|
+
status?: string;
|
|
165
|
+
};
|
|
166
|
+
paymentData?: PaymentData;
|
|
167
|
+
paymentAttempt?: {
|
|
168
|
+
status?: string;
|
|
169
|
+
failure_details?: {
|
|
170
|
+
message?: string;
|
|
171
|
+
} | null;
|
|
172
|
+
} | null;
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE9D,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE;QACV,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM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EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,aAAa,CAAC,EAAE;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,cAAc,CAAC,EAAE;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,eAAe,CAAC,EAAE;YAChB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,GAAG,IAAI,CAAC;KACV,GAAG,IAAI,CAAC;CACV,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@finyxpay/ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Finyx vanilla JS checkout UI — init, createElement, mount to the DOM",
|
|
5
|
+
"author": "Finyx",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/finyx.umd.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"**/*.css"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/finyx.umd.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./styles.css": "./dist/finyx.css"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@adyen/adyen-web": "^6.44.0",
|
|
30
|
+
"@airwallex/components-sdk": "^1.35.1",
|
|
31
|
+
"qr": "^0.5.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
35
|
+
"@types/node": "^20.19.0",
|
|
36
|
+
"jsdom": "^26.1.0",
|
|
37
|
+
"tailwindcss": "^4.1.13",
|
|
38
|
+
"typescript": "^5.8.3",
|
|
39
|
+
"vite": "^7.1.3",
|
|
40
|
+
"vite-plugin-dts": "^4.5.4",
|
|
41
|
+
"vitest": "^3.2.4"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"dev": "vite build --watch",
|
|
45
|
+
"build": "vite build && vite build --config vite.umd.config.ts",
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"test:watch": "vitest",
|
|
48
|
+
"typecheck": "tsc --noEmit"
|
|
49
|
+
}
|
|
50
|
+
}
|