@flopay/vue 1.20.15 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +56 -57
  2. package/dist/card-setup-entry.cjs +184 -569
  3. package/dist/card-setup-entry.d.ts +2 -2
  4. package/dist/card-setup-entry.mjs +3 -7
  5. package/dist/chunk-2VPPDVV7.mjs +218 -0
  6. package/dist/chunk-OCVTEXQA.mjs +20 -0
  7. package/dist/flopay-runtime-checkout.d.ts +11 -0
  8. package/dist/hosted-runtime-components.d.ts +587 -0
  9. package/dist/index.cjs +279 -5402
  10. package/dist/index.d.ts +3 -21
  11. package/dist/index.mjs +231 -3728
  12. package/dist/payment-method-setup-entry.cjs +194 -1852
  13. package/dist/payment-method-setup-entry.d.ts +2 -2
  14. package/dist/payment-method-setup-entry.mjs +4 -4
  15. package/dist/runtime-context.d.ts +11 -0
  16. package/package.json +3 -5
  17. package/dist/automatic-payment-button.d.ts +0 -296
  18. package/dist/buyer-identity-fallback.d.ts +0 -82
  19. package/dist/chunk-2USKULEH.mjs +0 -530
  20. package/dist/chunk-HH25IC76.mjs +0 -98
  21. package/dist/chunk-IJKGJSHH.mjs +0 -333
  22. package/dist/chunk-RAGPQWRA.mjs +0 -923
  23. package/dist/context.d.ts +0 -56
  24. package/dist/direct-paypal-button.d.ts +0 -325
  25. package/dist/flopay-card-setup.d.ts +0 -158
  26. package/dist/flopay-checkout.d.ts +0 -517
  27. package/dist/flopay-payment-method-setup-main.d.ts +0 -152
  28. package/dist/hooks.d.ts +0 -22
  29. package/dist/hosted-setup.d.ts +0 -116
  30. package/dist/payment-method-setup-paypal-D6FEQQJY.mjs +0 -151
  31. package/dist/payment-method-setup-paypal.d.ts +0 -108
  32. package/dist/processing-overlay.d.ts +0 -82
  33. package/dist/provider.d.ts +0 -76
  34. package/dist/saved-payment.d.ts +0 -44
  35. package/dist/split-card-form.d.ts +0 -777
  36. package/dist/stripe-elements-SI2PI6EO.mjs +0 -6
  37. package/dist/stripe-elements.d.ts +0 -280
  38. package/dist/stripe-paypal-continuation.d.ts +0 -28
  39. package/dist/vault-card-fields.d.ts +0 -129
package/dist/context.d.ts DELETED
@@ -1,56 +0,0 @@
1
- import type { FloPay } from '@flopay/js';
2
- import type { CheckoutSession, FloInstrumentSource, FloPayError, InlineSessionDraft, WalletPresentation } from '@flopay/shared';
3
- import type { InjectionKey, ShallowRef } from 'vue';
4
- /** Provider state shared with every FloPay component and composable below it. */
5
- interface FloPayContextValue {
6
- flopay: Readonly<ShallowRef<FloPay | null>>;
7
- paypalFlopay: Readonly<ShallowRef<FloPay | null>>;
8
- billingApiUrl: () => string;
9
- emitInstrument: (source: FloInstrumentSource) => void;
10
- }
11
- /** Checkout state exposed by `useCheckout()`. */
12
- export interface CheckoutState {
13
- session: CheckoutSession | null;
14
- loading: boolean;
15
- error: FloPayError | null;
16
- /** True while a detached session shell is not yet safe to charge. */
17
- claimPending?: boolean;
18
- /**
19
- * True when the pending claim waits for a `SplitCardForm` to collect the
20
- * buyer's identity (React's `claimRequiresIdentity`). A form below the
21
- * checkout reads it even when its own `dataAttachmentRequiresIdentity` is
22
- * unset, as React's form reads `CheckoutContext`.
23
- */
24
- claimRequiresIdentity?: boolean;
25
- /**
26
- * The inline `createSession` draft (React's `inlineSessionDraft`). A
27
- * `SplitCardForm` passes it to `onBeforeButtonClick` as `createSession`.
28
- */
29
- inlineSessionDraft?: InlineSessionDraft;
30
- }
31
- /**
32
- * Values `FloPayCheckout` hands a custom-layout `SplitCardForm` (React's
33
- * `SessionInjector`). A prop the form sets itself always wins.
34
- */
35
- export interface CheckoutFormDefaults {
36
- sessionId?: string;
37
- nonce?: string;
38
- billingApiUrl?: string;
39
- session?: CheckoutSession | null;
40
- submitLabel?: string | null;
41
- dataAttachmentPending?: boolean;
42
- /**
43
- * The session customer's id (React's `SessionInjector` injects
44
- * `session.customer.id` as `userId` when the child's own `userId` is empty).
45
- */
46
- userId?: string;
47
- /**
48
- * The checkout's `walletPresentation` (React's `SessionInjector` injects it
49
- * when the child's own `walletPresentation` is `undefined`).
50
- */
51
- walletPresentation?: WalletPresentation;
52
- }
53
- export declare const FLOPAY_CONTEXT: InjectionKey<FloPayContextValue>;
54
- export declare const CHECKOUT_STATE: InjectionKey<CheckoutState>;
55
- export declare const CHECKOUT_FORM_DEFAULTS: InjectionKey<() => CheckoutFormDefaults>;
56
- export {};
@@ -1,325 +0,0 @@
1
- import type { CheckoutButtonMethod, CheckoutSession, DeclineEvent, FloPayPaymentCancelEvent, GatewayEnvironment, InlineSessionPatch, PaymentResult, PayPalApprovalPresentation, PayPalBuyerIdentity, PayPalProviderObjectType, TelemetryTerminalReason, TokenizedBody } from '@flopay/shared';
2
- import { FloPayError } from '@flopay/shared';
3
- import { type PropType } from 'vue';
4
- /** Lifecycle of the PayPal JS SDK button, reported through `@initialization-state-change`. */
5
- export type DirectPayPalInitializationState = 'loading' | 'retrying' | 'ready' | 'exhausted';
6
- /** React's click-time `runBeforeButtonClick` result. */
7
- interface DirectPayPalBeforeButtonClickResult {
8
- proceed: boolean;
9
- accountPatch?: InlineSessionPatch['account'];
10
- sessionId?: string;
11
- nonce?: string;
12
- }
13
- /**
14
- * React's click-time gate: runs before PayPal creates the order, can patch the
15
- * session, nonce and account for this attempt, or stop it with `proceed: false`.
16
- */
17
- type DirectPayPalRunBeforeButtonClick = (method: CheckoutButtonMethod) => Promise<DirectPayPalBeforeButtonClickResult>;
18
- /** The click-time patch React passes with the tokenized body. */
19
- interface DirectPayPalTokenizedOverrides {
20
- accountPatch?: InlineSessionPatch['account'];
21
- sessionId?: string;
22
- nonce?: string;
23
- }
24
- /** React's `onTokenizedBody`: when set, the host continues the payment from PayPal's approval. */
25
- type DirectPayPalTokenizedHandler = (body: TokenizedBody, overrides?: DirectPayPalTokenizedOverrides) => void | Promise<void>;
26
- interface DirectPayPalTechnicalFailureOptions {
27
- code?: string;
28
- popupBlocked?: boolean;
29
- provider?: 'paypal';
30
- paymentMethodCategory?: 'paypal';
31
- terminalReason?: TelemetryTerminalReason;
32
- }
33
- /**
34
- * React's `onBuyerIdentityReady`: attaches the buyer identity collected on
35
- * approval before the payment continues. React awaits it and its presence
36
- * turns on the email fallback, so it stays a function prop (CTO decision 2).
37
- */
38
- type DirectPayPalBuyerIdentityReadyHandler = (identity: PayPalBuyerIdentity) => void | Promise<void>;
39
- /** React's `onTechnicalFailure`: when set, it receives post-click failures instead of `errorChange`. */
40
- type DirectPayPalTechnicalFailureHandler = (method: 'paypal', err: unknown, options?: DirectPayPalTechnicalFailureOptions) => void;
41
- /** Props for {@link DirectPayPalButton} (React's `DirectPayPalButtonProps`; notifying callbacks are emits). */
42
- export interface DirectPayPalButtonProps {
43
- sessionId: string;
44
- /** Session-bound checkout token, sent as `x-checkout-session-token`. */
45
- nonce?: string;
46
- billingApiUrl?: string;
47
- email?: string;
48
- /** Buyer name already attached to the checkout, when available. */
49
- billingName?: string;
50
- /** Attaches the buyer identity collected on PayPal approval before checkout continues. */
51
- onBuyerIdentityReady?: DirectPayPalBuyerIdentityReadyHandler;
52
- /** PayPal client id the session advertises in `gateways.paypal`. */
53
- clientId: string;
54
- /**
55
- * React's `GatewayEnvironment`. FloPay's `stage` / `production` aliases are
56
- * collapsed to PayPal's `sandbox` / `production` before the SDK loads.
57
- */
58
- environment?: GatewayEnvironment;
59
- currency?: string;
60
- isSubscription?: boolean;
61
- /**
62
- * @deprecated The session's `gateways.paypal.providerObjectType` is
63
- * authoritative; this is the fallback when the session advertises none.
64
- */
65
- providerObjectType?: PayPalProviderObjectType;
66
- /**
67
- * Backend-advertised approval presentation. The session's
68
- * `gateways.paypal.approvalPresentation` wins when both are supplied.
69
- */
70
- approvalPresentation?: PayPalApprovalPresentation;
71
- /** The session, whose `gateways.paypal.providerObjectType` selects the channel. */
72
- session?: CheckoutSession | null;
73
- /** A PayPal order (or subscription) id to bind the button to; changing it remounts PayPal. */
74
- existingOrderId?: string;
75
- /** External processing state: marks the PayPal container busy. */
76
- isProcessing?: boolean;
77
- /** `false` turns off the one automatic startup retry. Defaults to `true`. */
78
- allowAutomaticRetry?: boolean;
79
- /** Click-time gate that runs before PayPal creates the order. */
80
- runBeforeButtonClick?: DirectPayPalRunBeforeButtonClick;
81
- /** When set, PayPal's approval is handed to the host instead of completing here. */
82
- onTokenizedBody?: DirectPayPalTokenizedHandler;
83
- /** When set, post-click technical failures go here instead of `errorChange`. */
84
- onTechnicalFailure?: DirectPayPalTechnicalFailureHandler;
85
- telemetry?: boolean;
86
- /** Renders React's on-screen lifecycle tracer above the button. Off by default. */
87
- debug?: boolean;
88
- }
89
- /**
90
- * Renders PayPal's own JS SDK button for a session that advertises
91
- * `gateways.paypal` — the path that works inside in-app browsers. The PayPal
92
- * object (order or subscription) is created by the billing API's
93
- * session-scoped `/intents` endpoint, unless `existingOrderId` binds the
94
- * button to one the backend already created; the SDK only relays the buyer's
95
- * approval.
96
- *
97
- * Like React's button, a load or render failure is retried once automatically
98
- * (`retrying`, unless `allowAutomaticRetry` is false) before the button reports
99
- * `exhausted`, and every PayPal error is classified with the shared
100
- * external-method classifier: only a provider decline is reported to
101
- * `/intents/decline` and emitted as `decline`. A blocked pop-up or PayPal's
102
- * dead window in an in-app browser is emitted as `error` carrying the shared
103
- * recovery copy, and that copy also goes to `errorChange` (or to
104
- * `onTechnicalFailure` when the host passes one).
105
- *
106
- * Each click starts an attempt with a fresh `/intents` idempotency key. The
107
- * buyer's approval goes to the host's `onTokenizedBody` when it passes one;
108
- * otherwise the button posts it to `/process` itself, as React does. A failed
109
- * approval is forwarded as a message only, never reported as a decline.
110
- */
111
- export declare const DirectPayPalButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
112
- sessionId: {
113
- type: StringConstructor;
114
- default: undefined;
115
- };
116
- nonce: {
117
- type: StringConstructor;
118
- default: undefined;
119
- };
120
- billingApiUrl: {
121
- type: StringConstructor;
122
- default: undefined;
123
- };
124
- email: {
125
- type: StringConstructor;
126
- default: undefined;
127
- };
128
- billingName: {
129
- type: StringConstructor;
130
- default: undefined;
131
- };
132
- onBuyerIdentityReady: {
133
- type: PropType<DirectPayPalBuyerIdentityReadyHandler>;
134
- default: undefined;
135
- };
136
- clientId: {
137
- type: StringConstructor;
138
- default: undefined;
139
- };
140
- environment: {
141
- type: PropType<GatewayEnvironment>;
142
- default: undefined;
143
- };
144
- currency: {
145
- type: StringConstructor;
146
- default: undefined;
147
- };
148
- isSubscription: {
149
- type: BooleanConstructor;
150
- default: undefined;
151
- };
152
- providerObjectType: {
153
- type: PropType<PayPalProviderObjectType>;
154
- default: undefined;
155
- };
156
- approvalPresentation: {
157
- type: PropType<PayPalApprovalPresentation>;
158
- default: undefined;
159
- };
160
- session: {
161
- type: PropType<CheckoutSession | null>;
162
- default: null;
163
- };
164
- existingOrderId: {
165
- type: StringConstructor;
166
- default: undefined;
167
- };
168
- isProcessing: {
169
- type: BooleanConstructor;
170
- default: boolean;
171
- };
172
- allowAutomaticRetry: {
173
- type: BooleanConstructor;
174
- default: boolean;
175
- };
176
- runBeforeButtonClick: {
177
- type: PropType<DirectPayPalRunBeforeButtonClick>;
178
- default: undefined;
179
- };
180
- onTokenizedBody: {
181
- type: PropType<DirectPayPalTokenizedHandler>;
182
- default: undefined;
183
- };
184
- onTechnicalFailure: {
185
- type: PropType<DirectPayPalTechnicalFailureHandler>;
186
- default: undefined;
187
- };
188
- telemetry: {
189
- type: BooleanConstructor;
190
- default: undefined;
191
- };
192
- debug: {
193
- type: BooleanConstructor;
194
- default: boolean;
195
- };
196
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
197
- [key: string]: any;
198
- }> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
199
- complete: (_result: PaymentResult) => true;
200
- decline: (_decline: DeclineEvent) => true;
201
- /** The buyer closed or left PayPal without approving (once per click attempt). */
202
- cancel: (_event: FloPayPaymentCancelEvent) => true;
203
- error: (_error: FloPayError) => true;
204
- errorChange: (_message: string | null) => true;
205
- buttonClick: (_method: CheckoutButtonMethod) => true;
206
- loadStateChange: (_ready: boolean) => true;
207
- initializationStateChange: (_state: DirectPayPalInitializationState) => true;
208
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
209
- sessionId: {
210
- type: StringConstructor;
211
- default: undefined;
212
- };
213
- nonce: {
214
- type: StringConstructor;
215
- default: undefined;
216
- };
217
- billingApiUrl: {
218
- type: StringConstructor;
219
- default: undefined;
220
- };
221
- email: {
222
- type: StringConstructor;
223
- default: undefined;
224
- };
225
- billingName: {
226
- type: StringConstructor;
227
- default: undefined;
228
- };
229
- onBuyerIdentityReady: {
230
- type: PropType<DirectPayPalBuyerIdentityReadyHandler>;
231
- default: undefined;
232
- };
233
- clientId: {
234
- type: StringConstructor;
235
- default: undefined;
236
- };
237
- environment: {
238
- type: PropType<GatewayEnvironment>;
239
- default: undefined;
240
- };
241
- currency: {
242
- type: StringConstructor;
243
- default: undefined;
244
- };
245
- isSubscription: {
246
- type: BooleanConstructor;
247
- default: undefined;
248
- };
249
- providerObjectType: {
250
- type: PropType<PayPalProviderObjectType>;
251
- default: undefined;
252
- };
253
- approvalPresentation: {
254
- type: PropType<PayPalApprovalPresentation>;
255
- default: undefined;
256
- };
257
- session: {
258
- type: PropType<CheckoutSession | null>;
259
- default: null;
260
- };
261
- existingOrderId: {
262
- type: StringConstructor;
263
- default: undefined;
264
- };
265
- isProcessing: {
266
- type: BooleanConstructor;
267
- default: boolean;
268
- };
269
- allowAutomaticRetry: {
270
- type: BooleanConstructor;
271
- default: boolean;
272
- };
273
- runBeforeButtonClick: {
274
- type: PropType<DirectPayPalRunBeforeButtonClick>;
275
- default: undefined;
276
- };
277
- onTokenizedBody: {
278
- type: PropType<DirectPayPalTokenizedHandler>;
279
- default: undefined;
280
- };
281
- onTechnicalFailure: {
282
- type: PropType<DirectPayPalTechnicalFailureHandler>;
283
- default: undefined;
284
- };
285
- telemetry: {
286
- type: BooleanConstructor;
287
- default: undefined;
288
- };
289
- debug: {
290
- type: BooleanConstructor;
291
- default: boolean;
292
- };
293
- }>> & Readonly<{
294
- onButtonClick?: ((_method: CheckoutButtonMethod) => any) | undefined;
295
- onCancel?: ((_event: FloPayPaymentCancelEvent) => any) | undefined;
296
- onComplete?: ((_result: PaymentResult) => any) | undefined;
297
- onDecline?: ((_decline: DeclineEvent) => any) | undefined;
298
- onError?: ((_error: FloPayError) => any) | undefined;
299
- onErrorChange?: ((_message: string | null) => any) | undefined;
300
- onInitializationStateChange?: ((_state: DirectPayPalInitializationState) => any) | undefined;
301
- onLoadStateChange?: ((_ready: boolean) => any) | undefined;
302
- }>, {
303
- sessionId: string;
304
- nonce: string;
305
- billingApiUrl: string;
306
- email: string;
307
- billingName: string;
308
- onBuyerIdentityReady: DirectPayPalBuyerIdentityReadyHandler;
309
- clientId: string;
310
- environment: GatewayEnvironment;
311
- currency: string;
312
- isSubscription: boolean;
313
- providerObjectType: PayPalProviderObjectType;
314
- approvalPresentation: PayPalApprovalPresentation;
315
- session: CheckoutSession | null;
316
- existingOrderId: string;
317
- isProcessing: boolean;
318
- allowAutomaticRetry: boolean;
319
- runBeforeButtonClick: DirectPayPalRunBeforeButtonClick;
320
- onTokenizedBody: DirectPayPalTokenizedHandler;
321
- onTechnicalFailure: DirectPayPalTechnicalFailureHandler;
322
- telemetry: boolean;
323
- debug: boolean;
324
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
325
- export {};
@@ -1,158 +0,0 @@
1
- import type { ButtonsLayoutStyles, FloPayAppearance, ThemeId, VaultCardThemeColors } from '@flopay/shared';
2
- import { type PropType } from 'vue';
3
- import { type FloPayCardSetupCancelEvent, type FloPayCardSetupCompleteEvent, type FloPayCardSetupDeclineEvent, type FloPayCardSetupError } from './hosted-setup.js';
4
- export type { FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, } from './hosted-setup.js';
5
- export { FloPayCardSetupError } from './hosted-setup.js';
6
- /** Props for the browser-only secure card-setup surface (callbacks are emits). */
7
- export interface FloPayCardSetupProps {
8
- /** Opaque id returned by the merchant-authenticated setup-session endpoint. */
9
- sessionId: string;
10
- /** Session-bound token returned alongside `sessionId`. */
11
- nonce: string;
12
- billingApiUrl?: string;
13
- /** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
14
- telemetry?: boolean;
15
- /**
16
- * Theme for FloPay's hosted, PCI-compliant card widget. Accepts the same
17
- * high-level `ThemeId` as `FloPayCheckout` (resolved through the same
18
- * bundle, so one value styles both surfaces identically) or raw
19
- * `VaultCardThemeColors` for full manual control. Defaults to
20
- * `'modern-light'`, which an unrecognized preset id also falls back to; pass
21
- * `'classic'` for the historic FloPay look.
22
- */
23
- theme?: ThemeId | VaultCardThemeColors;
24
- /**
25
- * Inline styles for the hosted-widget container. A named preset first gives
26
- * that container the checkout credit-card pane's surface, with any stored
27
- * `buttonsStyles.cardFormContainer` merged over it; each `containerStyle`
28
- * property then wins over that surface, and any `background*` member
29
- * replaces the surface background entirely.
30
- */
31
- containerStyle?: Record<string, string | number>;
32
- /**
33
- * Appearance override, the same prop and type as `FloPayCheckout`'s (for
34
- * example a client's saved embed theme `appearance`). It replaces the
35
- * preset's appearance outright, as checkout does: its variables drive the
36
- * hosted card fields, the hosted submit button and the outcome overlay.
37
- * Ignored with raw `VaultCardThemeColors`; an empty `{}` is the same as
38
- * omitting it. Changes restyle in place.
39
- */
40
- appearance?: FloPayAppearance;
41
- /**
42
- * Buttons-layout style overrides, the same prop and type as
43
- * `FloPayCheckout`'s (for example a client's saved embed theme
44
- * `buttonsStyles`), merged over the preset's buttons layout the way checkout
45
- * merges them. `submitButton` and the `cardInput*` members style the hosted
46
- * card form, and `cardFormContainer` the pane around it and the outcome
47
- * overlay's panel. Ignored with raw `VaultCardThemeColors`; an empty `{}` is
48
- * the same as omitting it. Changes restyle in place.
49
- */
50
- buttonsStyles?: ButtonsLayoutStyles;
51
- }
52
- /**
53
- * Mounts FloPay's hosted card capture (the SDK's `cardCapture` adapter) for a
54
- * setup session the merchant's server created. It takes only `sessionId` +
55
- * `nonce`, never creates a session, never loads Stripe.js, and leaves the
56
- * verification and its 3DS to the hosted widget. Emits `ready`, `complete`,
57
- * `decline`, `cancel` (unmounted before an outcome), `validation` and `error`.
58
- *
59
- * Like React's, it draws the full-page processing / success / failure overlay
60
- * over the hosted form ("SAVING CARD...", "CARD SAVED", "CARD NOT SAVED"),
61
- * themed with the preset's credit-card pane. A client's stored `appearance`
62
- * and `buttonsStyles` resolve over the preset exactly as in React and
63
- * `FloPayCheckout`, and restyle the mounted form in place.
64
- */
65
- export declare const FloPayCardSetup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
66
- sessionId: {
67
- type: StringConstructor;
68
- default: undefined;
69
- };
70
- nonce: {
71
- type: StringConstructor;
72
- default: undefined;
73
- };
74
- billingApiUrl: {
75
- type: StringConstructor;
76
- default: undefined;
77
- };
78
- telemetry: {
79
- type: BooleanConstructor;
80
- default: undefined;
81
- };
82
- theme: {
83
- type: PropType<ThemeId | VaultCardThemeColors>;
84
- default: string;
85
- };
86
- containerStyle: {
87
- type: PropType<Record<string, string | number>>;
88
- default: undefined;
89
- };
90
- appearance: {
91
- type: PropType<FloPayAppearance>;
92
- default: undefined;
93
- };
94
- buttonsStyles: {
95
- type: PropType<ButtonsLayoutStyles>;
96
- default: undefined;
97
- };
98
- }>, () => (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
99
- [key: string]: any;
100
- }> | null)[] | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
101
- [key: string]: any;
102
- }> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
103
- ready: () => true;
104
- complete: (_event: FloPayCardSetupCompleteEvent) => true;
105
- cancel: (_event: FloPayCardSetupCancelEvent) => true;
106
- decline: (_event: FloPayCardSetupDeclineEvent) => true;
107
- validation: (_message: string | null) => true;
108
- error: (_error: FloPayCardSetupError) => true;
109
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
110
- sessionId: {
111
- type: StringConstructor;
112
- default: undefined;
113
- };
114
- nonce: {
115
- type: StringConstructor;
116
- default: undefined;
117
- };
118
- billingApiUrl: {
119
- type: StringConstructor;
120
- default: undefined;
121
- };
122
- telemetry: {
123
- type: BooleanConstructor;
124
- default: undefined;
125
- };
126
- theme: {
127
- type: PropType<ThemeId | VaultCardThemeColors>;
128
- default: string;
129
- };
130
- containerStyle: {
131
- type: PropType<Record<string, string | number>>;
132
- default: undefined;
133
- };
134
- appearance: {
135
- type: PropType<FloPayAppearance>;
136
- default: undefined;
137
- };
138
- buttonsStyles: {
139
- type: PropType<ButtonsLayoutStyles>;
140
- default: undefined;
141
- };
142
- }>> & Readonly<{
143
- onCancel?: ((_event: FloPayCardSetupCancelEvent) => any) | undefined;
144
- onComplete?: ((_event: FloPayCardSetupCompleteEvent) => any) | undefined;
145
- onDecline?: ((_event: FloPayCardSetupDeclineEvent) => any) | undefined;
146
- onError?: ((_error: FloPayCardSetupError) => any) | undefined;
147
- onReady?: (() => any) | undefined;
148
- onValidation?: ((_message: string | null) => any) | undefined;
149
- }>, {
150
- sessionId: string;
151
- nonce: string;
152
- billingApiUrl: string;
153
- telemetry: boolean;
154
- theme: VaultCardThemeColors | ThemeId;
155
- containerStyle: Record<string, string | number>;
156
- appearance: FloPayAppearance;
157
- buttonsStyles: ButtonsLayoutStyles;
158
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;