@flopay/vue 1.20.15 → 2.0.1
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/README.md +56 -57
- package/dist/card-setup-entry.cjs +184 -569
- package/dist/card-setup-entry.d.ts +2 -2
- package/dist/card-setup-entry.mjs +3 -7
- package/dist/chunk-2VPPDVV7.mjs +218 -0
- package/dist/chunk-OCVTEXQA.mjs +20 -0
- package/dist/flopay-runtime-checkout.d.ts +11 -0
- package/dist/hosted-runtime-components.d.ts +587 -0
- package/dist/index.cjs +298 -5402
- package/dist/index.d.ts +3 -21
- package/dist/index.mjs +250 -3728
- package/dist/payment-method-setup-entry.cjs +194 -1852
- package/dist/payment-method-setup-entry.d.ts +2 -2
- package/dist/payment-method-setup-entry.mjs +4 -4
- package/dist/runtime-context.d.ts +11 -0
- package/package.json +3 -5
- package/dist/automatic-payment-button.d.ts +0 -296
- package/dist/buyer-identity-fallback.d.ts +0 -82
- package/dist/chunk-2USKULEH.mjs +0 -530
- package/dist/chunk-HH25IC76.mjs +0 -98
- package/dist/chunk-IJKGJSHH.mjs +0 -333
- package/dist/chunk-RAGPQWRA.mjs +0 -923
- package/dist/context.d.ts +0 -56
- package/dist/direct-paypal-button.d.ts +0 -325
- package/dist/flopay-card-setup.d.ts +0 -158
- package/dist/flopay-checkout.d.ts +0 -517
- package/dist/flopay-payment-method-setup-main.d.ts +0 -152
- package/dist/hooks.d.ts +0 -22
- package/dist/hosted-setup.d.ts +0 -116
- package/dist/payment-method-setup-paypal-D6FEQQJY.mjs +0 -151
- package/dist/payment-method-setup-paypal.d.ts +0 -108
- package/dist/processing-overlay.d.ts +0 -82
- package/dist/provider.d.ts +0 -76
- package/dist/saved-payment.d.ts +0 -44
- package/dist/split-card-form.d.ts +0 -777
- package/dist/stripe-elements-SI2PI6EO.mjs +0 -6
- package/dist/stripe-elements.d.ts +0 -280
- package/dist/stripe-paypal-continuation.d.ts +0 -28
- package/dist/vault-card-fields.d.ts +0 -129
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
import type { CheckoutRuntimeAutomaticPayment, CheckoutRuntimeEvent } from '@flopay/js';
|
|
2
|
+
import type { FloPayError, PaymentMethodLayoutRules } from '@flopay/shared';
|
|
3
|
+
import type { PropType } from 'vue';
|
|
4
|
+
import type { FloPayRuntimeCardSetupProps } from './flopay-runtime-card-setup.js';
|
|
5
|
+
import type { FloPayRuntimeCheckoutProps as RuntimeCheckoutCoreProps } from './flopay-runtime-checkout.js';
|
|
6
|
+
/** The payment methods a checkout can hide, by method (never by processor). */
|
|
7
|
+
export type HiddenPaymentMethod = 'card' | 'paypal' | 'apple_pay' | 'google_pay' | 'apms';
|
|
8
|
+
type MerchantListener = (payload: unknown) => void;
|
|
9
|
+
/** The props of {@link FloPayCheckout}, the same as @flopay/react's. */
|
|
10
|
+
export interface FloPayCheckoutProps extends Omit<RuntimeCheckoutCoreProps, 'publishableKey' | 'runtimeUrl' | 'extraMountOptions'> {
|
|
11
|
+
publishableKey?: string;
|
|
12
|
+
runtimeUrl?: string;
|
|
13
|
+
hiddenPaymentMethods?: HiddenPaymentMethod[];
|
|
14
|
+
showPayPal?: boolean;
|
|
15
|
+
theme?: string | Record<string, unknown>;
|
|
16
|
+
showCardBrandIcons?: boolean;
|
|
17
|
+
showCardFieldLabels?: boolean;
|
|
18
|
+
cardFieldLabels?: Record<string, string>;
|
|
19
|
+
cardFieldPlaceholders?: Record<string, string>;
|
|
20
|
+
enabledPaymentMethods?: string[];
|
|
21
|
+
initialPayPalOrderId?: string;
|
|
22
|
+
}
|
|
23
|
+
export type FloPayRuntimeCheckoutProps = FloPayCheckoutProps;
|
|
24
|
+
export type SplitCardFormProps = FloPayCheckoutProps;
|
|
25
|
+
export type DirectPayPalButtonProps = Omit<FloPayCheckoutProps, 'hiddenPaymentMethods' | 'showPayPal'>;
|
|
26
|
+
export type VaultCardFieldsProps = Omit<FloPayCheckoutProps, 'hiddenPaymentMethods' | 'showPayPal'>;
|
|
27
|
+
export interface FloPayAutomaticPaymentButtonProps extends Omit<FloPayCheckoutProps, 'automaticPayment'> {
|
|
28
|
+
mode?: CheckoutRuntimeAutomaticPayment['mode'];
|
|
29
|
+
getSession?: CheckoutRuntimeAutomaticPayment['getSession'];
|
|
30
|
+
}
|
|
31
|
+
/** The runtime's `complete` payload for a saved payment, as given (the `success` emit). */
|
|
32
|
+
export interface FloPayAutomaticPaymentSuccessEvent {
|
|
33
|
+
sessionId: string;
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export type FloPayCardSetupProps = FloPayRuntimeCardSetupProps;
|
|
37
|
+
export type FloPayPaymentMethodSetupProps = FloPayRuntimeCardSetupProps;
|
|
38
|
+
export interface FloPayProviderProps {
|
|
39
|
+
publishableKey?: string;
|
|
40
|
+
runtimeUrl?: string;
|
|
41
|
+
flopay?: null;
|
|
42
|
+
}
|
|
43
|
+
/** The all-in-one checkout, mounted from the hosted runtime. */
|
|
44
|
+
export declare const FloPayCheckout: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
45
|
+
publishableKey: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
runtimeUrl: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
sessionId: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
nonce: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
createSession: {
|
|
62
|
+
type: PropType<Record<string, unknown>>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
appearance: {
|
|
66
|
+
type: PropType<Record<string, unknown>>;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
strings: {
|
|
70
|
+
type: PropType<Record<string, string>>;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
paymentMethodLayout: {
|
|
74
|
+
type: PropType<PaymentMethodLayoutRules>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
layout: {
|
|
78
|
+
type: PropType<'default' | 'buttons'>;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
81
|
+
automaticPayment: {
|
|
82
|
+
type: PropType<CheckoutRuntimeAutomaticPayment>;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
runtimeTimeoutMs: {
|
|
86
|
+
type: NumberConstructor;
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
89
|
+
hiddenPaymentMethods: {
|
|
90
|
+
type: PropType<HiddenPaymentMethod[]>;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
showPayPal: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
97
|
+
theme: {
|
|
98
|
+
type: PropType<string | Record<string, unknown>>;
|
|
99
|
+
default: undefined;
|
|
100
|
+
};
|
|
101
|
+
showCardBrandIcons: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: undefined;
|
|
104
|
+
};
|
|
105
|
+
showCardFieldLabels: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: undefined;
|
|
108
|
+
};
|
|
109
|
+
cardFieldLabels: {
|
|
110
|
+
type: PropType<Record<string, string>>;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
113
|
+
cardFieldPlaceholders: {
|
|
114
|
+
type: PropType<Record<string, string>>;
|
|
115
|
+
default: undefined;
|
|
116
|
+
};
|
|
117
|
+
enabledPaymentMethods: {
|
|
118
|
+
type: PropType<string[]>;
|
|
119
|
+
default: undefined;
|
|
120
|
+
};
|
|
121
|
+
initialPayPalOrderId: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: undefined;
|
|
124
|
+
};
|
|
125
|
+
onComplete: {
|
|
126
|
+
type: PropType<MerchantListener>;
|
|
127
|
+
default: undefined;
|
|
128
|
+
};
|
|
129
|
+
onDecline: {
|
|
130
|
+
type: PropType<MerchantListener>;
|
|
131
|
+
default: undefined;
|
|
132
|
+
};
|
|
133
|
+
onCancel: {
|
|
134
|
+
type: PropType<MerchantListener>;
|
|
135
|
+
default: undefined;
|
|
136
|
+
};
|
|
137
|
+
onInstrument: {
|
|
138
|
+
type: PropType<MerchantListener>;
|
|
139
|
+
default: undefined;
|
|
140
|
+
};
|
|
141
|
+
onCardFieldsReady: {
|
|
142
|
+
type: PropType<MerchantListener>;
|
|
143
|
+
default: undefined;
|
|
144
|
+
};
|
|
145
|
+
onCardFieldsFailed: {
|
|
146
|
+
type: PropType<MerchantListener>;
|
|
147
|
+
default: undefined;
|
|
148
|
+
};
|
|
149
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
152
|
+
event: (_event: CheckoutRuntimeEvent) => true;
|
|
153
|
+
error: (_error: FloPayError) => true;
|
|
154
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
155
|
+
publishableKey: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
default: undefined;
|
|
158
|
+
};
|
|
159
|
+
runtimeUrl: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
163
|
+
sessionId: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: undefined;
|
|
166
|
+
};
|
|
167
|
+
nonce: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: undefined;
|
|
170
|
+
};
|
|
171
|
+
createSession: {
|
|
172
|
+
type: PropType<Record<string, unknown>>;
|
|
173
|
+
default: undefined;
|
|
174
|
+
};
|
|
175
|
+
appearance: {
|
|
176
|
+
type: PropType<Record<string, unknown>>;
|
|
177
|
+
default: undefined;
|
|
178
|
+
};
|
|
179
|
+
strings: {
|
|
180
|
+
type: PropType<Record<string, string>>;
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
183
|
+
paymentMethodLayout: {
|
|
184
|
+
type: PropType<PaymentMethodLayoutRules>;
|
|
185
|
+
default: undefined;
|
|
186
|
+
};
|
|
187
|
+
layout: {
|
|
188
|
+
type: PropType<'default' | 'buttons'>;
|
|
189
|
+
default: undefined;
|
|
190
|
+
};
|
|
191
|
+
automaticPayment: {
|
|
192
|
+
type: PropType<CheckoutRuntimeAutomaticPayment>;
|
|
193
|
+
default: undefined;
|
|
194
|
+
};
|
|
195
|
+
runtimeTimeoutMs: {
|
|
196
|
+
type: NumberConstructor;
|
|
197
|
+
default: undefined;
|
|
198
|
+
};
|
|
199
|
+
hiddenPaymentMethods: {
|
|
200
|
+
type: PropType<HiddenPaymentMethod[]>;
|
|
201
|
+
default: undefined;
|
|
202
|
+
};
|
|
203
|
+
showPayPal: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
theme: {
|
|
208
|
+
type: PropType<string | Record<string, unknown>>;
|
|
209
|
+
default: undefined;
|
|
210
|
+
};
|
|
211
|
+
showCardBrandIcons: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: undefined;
|
|
214
|
+
};
|
|
215
|
+
showCardFieldLabels: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: undefined;
|
|
218
|
+
};
|
|
219
|
+
cardFieldLabels: {
|
|
220
|
+
type: PropType<Record<string, string>>;
|
|
221
|
+
default: undefined;
|
|
222
|
+
};
|
|
223
|
+
cardFieldPlaceholders: {
|
|
224
|
+
type: PropType<Record<string, string>>;
|
|
225
|
+
default: undefined;
|
|
226
|
+
};
|
|
227
|
+
enabledPaymentMethods: {
|
|
228
|
+
type: PropType<string[]>;
|
|
229
|
+
default: undefined;
|
|
230
|
+
};
|
|
231
|
+
initialPayPalOrderId: {
|
|
232
|
+
type: StringConstructor;
|
|
233
|
+
default: undefined;
|
|
234
|
+
};
|
|
235
|
+
onComplete: {
|
|
236
|
+
type: PropType<MerchantListener>;
|
|
237
|
+
default: undefined;
|
|
238
|
+
};
|
|
239
|
+
onDecline: {
|
|
240
|
+
type: PropType<MerchantListener>;
|
|
241
|
+
default: undefined;
|
|
242
|
+
};
|
|
243
|
+
onCancel: {
|
|
244
|
+
type: PropType<MerchantListener>;
|
|
245
|
+
default: undefined;
|
|
246
|
+
};
|
|
247
|
+
onInstrument: {
|
|
248
|
+
type: PropType<MerchantListener>;
|
|
249
|
+
default: undefined;
|
|
250
|
+
};
|
|
251
|
+
onCardFieldsReady: {
|
|
252
|
+
type: PropType<MerchantListener>;
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
255
|
+
onCardFieldsFailed: {
|
|
256
|
+
type: PropType<MerchantListener>;
|
|
257
|
+
default: undefined;
|
|
258
|
+
};
|
|
259
|
+
}>> & Readonly<{
|
|
260
|
+
onError?: ((_error: FloPayError) => any) | undefined;
|
|
261
|
+
onEvent?: ((_event: CheckoutRuntimeEvent) => any) | undefined;
|
|
262
|
+
}>, {
|
|
263
|
+
publishableKey: string;
|
|
264
|
+
runtimeUrl: string;
|
|
265
|
+
sessionId: string;
|
|
266
|
+
nonce: string;
|
|
267
|
+
createSession: Record<string, unknown>;
|
|
268
|
+
appearance: Record<string, unknown>;
|
|
269
|
+
strings: Record<string, string>;
|
|
270
|
+
paymentMethodLayout: PaymentMethodLayoutRules;
|
|
271
|
+
layout: "buttons" | "default";
|
|
272
|
+
automaticPayment: CheckoutRuntimeAutomaticPayment;
|
|
273
|
+
runtimeTimeoutMs: number;
|
|
274
|
+
hiddenPaymentMethods: HiddenPaymentMethod[];
|
|
275
|
+
showPayPal: boolean;
|
|
276
|
+
theme: string | Record<string, unknown>;
|
|
277
|
+
showCardBrandIcons: boolean;
|
|
278
|
+
showCardFieldLabels: boolean;
|
|
279
|
+
cardFieldLabels: Record<string, string>;
|
|
280
|
+
cardFieldPlaceholders: Record<string, string>;
|
|
281
|
+
enabledPaymentMethods: string[];
|
|
282
|
+
initialPayPalOrderId: string;
|
|
283
|
+
onComplete: MerchantListener;
|
|
284
|
+
onDecline: MerchantListener;
|
|
285
|
+
onCancel: MerchantListener;
|
|
286
|
+
onInstrument: MerchantListener;
|
|
287
|
+
onCardFieldsReady: MerchantListener;
|
|
288
|
+
onCardFieldsFailed: MerchantListener;
|
|
289
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
290
|
+
/** The split card form: the same hosted checkout, with its props passed through. */
|
|
291
|
+
export declare const SplitCardForm: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
292
|
+
[key: string]: any;
|
|
293
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
294
|
+
/** Card setup, mounted from the hosted runtime (`setup: 'card'`). */
|
|
295
|
+
export declare const FloPayCardSetup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
296
|
+
readonly sessionId: {
|
|
297
|
+
readonly type: StringConstructor;
|
|
298
|
+
readonly required: true;
|
|
299
|
+
};
|
|
300
|
+
readonly nonce: {
|
|
301
|
+
readonly type: StringConstructor;
|
|
302
|
+
readonly required: true;
|
|
303
|
+
};
|
|
304
|
+
readonly theme: {
|
|
305
|
+
readonly type: PropType<import("@flopay/shared").ThemeId | import("@flopay/shared").VaultCardThemeColors>;
|
|
306
|
+
readonly default: undefined;
|
|
307
|
+
};
|
|
308
|
+
readonly appearance: {
|
|
309
|
+
readonly type: PropType<import("@flopay/shared").FloPayAppearance>;
|
|
310
|
+
readonly default: undefined;
|
|
311
|
+
};
|
|
312
|
+
readonly buttonsStyles: {
|
|
313
|
+
readonly type: PropType<import("@flopay/shared").ButtonsLayoutStyles>;
|
|
314
|
+
readonly default: undefined;
|
|
315
|
+
};
|
|
316
|
+
readonly containerStyle: {
|
|
317
|
+
readonly type: PropType<Record<string, string | number>>;
|
|
318
|
+
readonly default: undefined;
|
|
319
|
+
};
|
|
320
|
+
readonly strings: {
|
|
321
|
+
readonly type: PropType<Record<string, string>>;
|
|
322
|
+
readonly default: undefined;
|
|
323
|
+
};
|
|
324
|
+
readonly runtimeUrl: {
|
|
325
|
+
readonly type: StringConstructor;
|
|
326
|
+
readonly required: true;
|
|
327
|
+
};
|
|
328
|
+
readonly runtimeTimeoutMs: {
|
|
329
|
+
readonly type: NumberConstructor;
|
|
330
|
+
readonly default: undefined;
|
|
331
|
+
};
|
|
332
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
333
|
+
[key: string]: any;
|
|
334
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
335
|
+
ready: () => boolean;
|
|
336
|
+
validation: (_message: string | null) => boolean;
|
|
337
|
+
complete: (_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCompleteEvent) => boolean;
|
|
338
|
+
decline: (_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupDeclineEvent) => boolean;
|
|
339
|
+
cancel: (_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCancelEvent) => boolean;
|
|
340
|
+
error: (_error: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupError) => boolean;
|
|
341
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
342
|
+
readonly sessionId: {
|
|
343
|
+
readonly type: StringConstructor;
|
|
344
|
+
readonly required: true;
|
|
345
|
+
};
|
|
346
|
+
readonly nonce: {
|
|
347
|
+
readonly type: StringConstructor;
|
|
348
|
+
readonly required: true;
|
|
349
|
+
};
|
|
350
|
+
readonly theme: {
|
|
351
|
+
readonly type: PropType<import("@flopay/shared").ThemeId | import("@flopay/shared").VaultCardThemeColors>;
|
|
352
|
+
readonly default: undefined;
|
|
353
|
+
};
|
|
354
|
+
readonly appearance: {
|
|
355
|
+
readonly type: PropType<import("@flopay/shared").FloPayAppearance>;
|
|
356
|
+
readonly default: undefined;
|
|
357
|
+
};
|
|
358
|
+
readonly buttonsStyles: {
|
|
359
|
+
readonly type: PropType<import("@flopay/shared").ButtonsLayoutStyles>;
|
|
360
|
+
readonly default: undefined;
|
|
361
|
+
};
|
|
362
|
+
readonly containerStyle: {
|
|
363
|
+
readonly type: PropType<Record<string, string | number>>;
|
|
364
|
+
readonly default: undefined;
|
|
365
|
+
};
|
|
366
|
+
readonly strings: {
|
|
367
|
+
readonly type: PropType<Record<string, string>>;
|
|
368
|
+
readonly default: undefined;
|
|
369
|
+
};
|
|
370
|
+
readonly runtimeUrl: {
|
|
371
|
+
readonly type: StringConstructor;
|
|
372
|
+
readonly required: true;
|
|
373
|
+
};
|
|
374
|
+
readonly runtimeTimeoutMs: {
|
|
375
|
+
readonly type: NumberConstructor;
|
|
376
|
+
readonly default: undefined;
|
|
377
|
+
};
|
|
378
|
+
}>> & Readonly<{
|
|
379
|
+
onCancel?: ((_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCancelEvent) => any) | undefined;
|
|
380
|
+
onComplete?: ((_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCompleteEvent) => any) | undefined;
|
|
381
|
+
onDecline?: ((_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupDeclineEvent) => any) | undefined;
|
|
382
|
+
onError?: ((_error: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupError) => any) | undefined;
|
|
383
|
+
onReady?: (() => any) | undefined;
|
|
384
|
+
onValidation?: ((_message: string | null) => any) | undefined;
|
|
385
|
+
}>, {
|
|
386
|
+
readonly theme: import("@flopay/shared").VaultCardThemeColors | import("@flopay/shared").ThemeId;
|
|
387
|
+
readonly appearance: import("@flopay/shared").FloPayAppearance;
|
|
388
|
+
readonly buttonsStyles: import("@flopay/shared").ButtonsLayoutStyles;
|
|
389
|
+
readonly containerStyle: Record<string, string | number>;
|
|
390
|
+
readonly strings: Record<string, string>;
|
|
391
|
+
readonly runtimeTimeoutMs: number;
|
|
392
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
393
|
+
/** Payment method setup, mounted from the hosted runtime (`setup: 'payment_method'`). */
|
|
394
|
+
export declare const FloPayPaymentMethodSetup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
395
|
+
readonly sessionId: {
|
|
396
|
+
readonly type: StringConstructor;
|
|
397
|
+
readonly required: true;
|
|
398
|
+
};
|
|
399
|
+
readonly nonce: {
|
|
400
|
+
readonly type: StringConstructor;
|
|
401
|
+
readonly required: true;
|
|
402
|
+
};
|
|
403
|
+
readonly theme: {
|
|
404
|
+
readonly type: PropType<import("@flopay/shared").ThemeId | import("@flopay/shared").VaultCardThemeColors>;
|
|
405
|
+
readonly default: undefined;
|
|
406
|
+
};
|
|
407
|
+
readonly appearance: {
|
|
408
|
+
readonly type: PropType<import("@flopay/shared").FloPayAppearance>;
|
|
409
|
+
readonly default: undefined;
|
|
410
|
+
};
|
|
411
|
+
readonly buttonsStyles: {
|
|
412
|
+
readonly type: PropType<import("@flopay/shared").ButtonsLayoutStyles>;
|
|
413
|
+
readonly default: undefined;
|
|
414
|
+
};
|
|
415
|
+
readonly containerStyle: {
|
|
416
|
+
readonly type: PropType<Record<string, string | number>>;
|
|
417
|
+
readonly default: undefined;
|
|
418
|
+
};
|
|
419
|
+
readonly strings: {
|
|
420
|
+
readonly type: PropType<Record<string, string>>;
|
|
421
|
+
readonly default: undefined;
|
|
422
|
+
};
|
|
423
|
+
readonly runtimeUrl: {
|
|
424
|
+
readonly type: StringConstructor;
|
|
425
|
+
readonly required: true;
|
|
426
|
+
};
|
|
427
|
+
readonly runtimeTimeoutMs: {
|
|
428
|
+
readonly type: NumberConstructor;
|
|
429
|
+
readonly default: undefined;
|
|
430
|
+
};
|
|
431
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
432
|
+
[key: string]: any;
|
|
433
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
434
|
+
ready: () => boolean;
|
|
435
|
+
validation: (_message: string | null) => boolean;
|
|
436
|
+
complete: (_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCompleteEvent) => boolean;
|
|
437
|
+
decline: (_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupDeclineEvent) => boolean;
|
|
438
|
+
cancel: (_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCancelEvent) => boolean;
|
|
439
|
+
error: (_error: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupError) => boolean;
|
|
440
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
441
|
+
readonly sessionId: {
|
|
442
|
+
readonly type: StringConstructor;
|
|
443
|
+
readonly required: true;
|
|
444
|
+
};
|
|
445
|
+
readonly nonce: {
|
|
446
|
+
readonly type: StringConstructor;
|
|
447
|
+
readonly required: true;
|
|
448
|
+
};
|
|
449
|
+
readonly theme: {
|
|
450
|
+
readonly type: PropType<import("@flopay/shared").ThemeId | import("@flopay/shared").VaultCardThemeColors>;
|
|
451
|
+
readonly default: undefined;
|
|
452
|
+
};
|
|
453
|
+
readonly appearance: {
|
|
454
|
+
readonly type: PropType<import("@flopay/shared").FloPayAppearance>;
|
|
455
|
+
readonly default: undefined;
|
|
456
|
+
};
|
|
457
|
+
readonly buttonsStyles: {
|
|
458
|
+
readonly type: PropType<import("@flopay/shared").ButtonsLayoutStyles>;
|
|
459
|
+
readonly default: undefined;
|
|
460
|
+
};
|
|
461
|
+
readonly containerStyle: {
|
|
462
|
+
readonly type: PropType<Record<string, string | number>>;
|
|
463
|
+
readonly default: undefined;
|
|
464
|
+
};
|
|
465
|
+
readonly strings: {
|
|
466
|
+
readonly type: PropType<Record<string, string>>;
|
|
467
|
+
readonly default: undefined;
|
|
468
|
+
};
|
|
469
|
+
readonly runtimeUrl: {
|
|
470
|
+
readonly type: StringConstructor;
|
|
471
|
+
readonly required: true;
|
|
472
|
+
};
|
|
473
|
+
readonly runtimeTimeoutMs: {
|
|
474
|
+
readonly type: NumberConstructor;
|
|
475
|
+
readonly default: undefined;
|
|
476
|
+
};
|
|
477
|
+
}>> & Readonly<{
|
|
478
|
+
onCancel?: ((_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCancelEvent) => any) | undefined;
|
|
479
|
+
onComplete?: ((_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupCompleteEvent) => any) | undefined;
|
|
480
|
+
onDecline?: ((_event: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupDeclineEvent) => any) | undefined;
|
|
481
|
+
onError?: ((_error: import("./flopay-runtime-card-setup.js").FloPayRuntimeSetupError) => any) | undefined;
|
|
482
|
+
onReady?: (() => any) | undefined;
|
|
483
|
+
onValidation?: ((_message: string | null) => any) | undefined;
|
|
484
|
+
}>, {
|
|
485
|
+
readonly theme: import("@flopay/shared").VaultCardThemeColors | import("@flopay/shared").ThemeId;
|
|
486
|
+
readonly appearance: import("@flopay/shared").FloPayAppearance;
|
|
487
|
+
readonly buttonsStyles: import("@flopay/shared").ButtonsLayoutStyles;
|
|
488
|
+
readonly containerStyle: Record<string, string | number>;
|
|
489
|
+
readonly strings: Record<string, string>;
|
|
490
|
+
readonly runtimeTimeoutMs: number;
|
|
491
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
492
|
+
/** Provides the publishable key and runtime URL to the components below it. It loads nothing. */
|
|
493
|
+
export declare const FloPayProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
494
|
+
publishableKey: {
|
|
495
|
+
type: StringConstructor;
|
|
496
|
+
default: undefined;
|
|
497
|
+
};
|
|
498
|
+
runtimeUrl: {
|
|
499
|
+
type: StringConstructor;
|
|
500
|
+
default: undefined;
|
|
501
|
+
};
|
|
502
|
+
/** Accepted so 1.x pages keep compiling; 2.0 holds no FloPay instance. */
|
|
503
|
+
flopay: {
|
|
504
|
+
type: PropType<null>;
|
|
505
|
+
default: null;
|
|
506
|
+
};
|
|
507
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
508
|
+
[key: string]: any;
|
|
509
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
510
|
+
publishableKey: {
|
|
511
|
+
type: StringConstructor;
|
|
512
|
+
default: undefined;
|
|
513
|
+
};
|
|
514
|
+
runtimeUrl: {
|
|
515
|
+
type: StringConstructor;
|
|
516
|
+
default: undefined;
|
|
517
|
+
};
|
|
518
|
+
/** Accepted so 1.x pages keep compiling; 2.0 holds no FloPay instance. */
|
|
519
|
+
flopay: {
|
|
520
|
+
type: PropType<null>;
|
|
521
|
+
default: null;
|
|
522
|
+
};
|
|
523
|
+
}>> & Readonly<{}>, {
|
|
524
|
+
publishableKey: string;
|
|
525
|
+
runtimeUrl: string;
|
|
526
|
+
flopay: null;
|
|
527
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
528
|
+
/** The PayPal button: the hosted checkout with every method but PayPal hidden. */
|
|
529
|
+
export declare const DirectPayPalButton: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
530
|
+
[key: string]: any;
|
|
531
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
532
|
+
/** The hosted card fields: the hosted checkout with every method but the card hidden. */
|
|
533
|
+
export declare const VaultCardFields: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
534
|
+
[key: string]: any;
|
|
535
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
536
|
+
/** The saved-payment button: the runtime shows the pay control and runs the saved payment. */
|
|
537
|
+
export declare const FloPayAutomaticPaymentButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
538
|
+
/** `automatic` (the default) or `confirm`; both pay only on the buyer's click. */
|
|
539
|
+
mode: {
|
|
540
|
+
type: PropType<CheckoutRuntimeAutomaticPayment['mode']>;
|
|
541
|
+
default: string;
|
|
542
|
+
};
|
|
543
|
+
/** Called in this page when the buyer clicks, as in 1.x. */
|
|
544
|
+
getSession: {
|
|
545
|
+
type: PropType<CheckoutRuntimeAutomaticPayment['getSession']>;
|
|
546
|
+
default: undefined;
|
|
547
|
+
};
|
|
548
|
+
/** A completed saved payment, with the runtime's payload unchanged. */
|
|
549
|
+
onSuccess: {
|
|
550
|
+
type: PropType<MerchantListener>;
|
|
551
|
+
default: undefined;
|
|
552
|
+
};
|
|
553
|
+
onComplete: {
|
|
554
|
+
type: PropType<MerchantListener>;
|
|
555
|
+
default: undefined;
|
|
556
|
+
};
|
|
557
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
558
|
+
[key: string]: any;
|
|
559
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
560
|
+
/** `automatic` (the default) or `confirm`; both pay only on the buyer's click. */
|
|
561
|
+
mode: {
|
|
562
|
+
type: PropType<CheckoutRuntimeAutomaticPayment['mode']>;
|
|
563
|
+
default: string;
|
|
564
|
+
};
|
|
565
|
+
/** Called in this page when the buyer clicks, as in 1.x. */
|
|
566
|
+
getSession: {
|
|
567
|
+
type: PropType<CheckoutRuntimeAutomaticPayment['getSession']>;
|
|
568
|
+
default: undefined;
|
|
569
|
+
};
|
|
570
|
+
/** A completed saved payment, with the runtime's payload unchanged. */
|
|
571
|
+
onSuccess: {
|
|
572
|
+
type: PropType<MerchantListener>;
|
|
573
|
+
default: undefined;
|
|
574
|
+
};
|
|
575
|
+
onComplete: {
|
|
576
|
+
type: PropType<MerchantListener>;
|
|
577
|
+
default: undefined;
|
|
578
|
+
};
|
|
579
|
+
}>> & Readonly<{}>, {
|
|
580
|
+
mode: "automatic" | "confirm";
|
|
581
|
+
getSession: ((options: {
|
|
582
|
+
signal: AbortSignal;
|
|
583
|
+
}) => Promise<import("@flopay/js").CheckoutRuntimeSuppliedSession>) | undefined;
|
|
584
|
+
onSuccess: MerchantListener;
|
|
585
|
+
onComplete: MerchantListener;
|
|
586
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
587
|
+
export {};
|