@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
@@ -1,777 +0,0 @@
1
- import type { AVSFieldConfig, BeforeButtonClickEvent, ButtonsLayoutStyles, ButtonsLayoutTheme, CardFieldLabels, CardFieldPlaceholders, CardFieldsFailedEvent, CardFieldsReadyEvent, CheckoutButtonMethod, CheckoutSession, DeclineEvent, FloPayAppearance, FloPayPaymentCancelEvent, InlineSessionPatch, PaymentResult, ThemeId, TokenizedBody, VaultCardFieldKey, WalletPresentation } from '@flopay/shared';
2
- import { FloPayError } from '@flopay/shared';
3
- import { type PropType, type VNode } from 'vue';
4
- /**
5
- * React's `onBeforeButtonClick`: runs before a payment button continues.
6
- * `false` stops the click; a patch's `account` goes with this attempt.
7
- */
8
- export type SplitCardFormBeforeButtonClick = (event: BeforeButtonClickEvent) => undefined | false | InlineSessionPatch | Promise<undefined | false | InlineSessionPatch>;
9
- /** React's `onBuyerIdentityReady`: awaited after PayPal's approval collects a missing identity. */
10
- type SplitCardFormBuyerIdentityReady = (identity: NonNullable<InlineSessionPatch['account']>) => void | Promise<void>;
11
- /**
12
- * React's `directPaypal`: the direct PayPal gateway. When set it wins over the
13
- * session's `gateways.paypal`, and PayPal renders through the PayPal JS SDK.
14
- */
15
- interface SplitCardFormDirectPayPal {
16
- clientId: string;
17
- /** React's `GatewayEnvironment`: `stage` and `production` are FloPay's aliases. */
18
- environment?: import('@flopay/shared').GatewayEnvironment;
19
- /**
20
- * @deprecated The session's `gateways.paypal.providerObjectType` wins.
21
- * Kept as a fallback for integrations that pass no session.
22
- */
23
- providerObjectType?: import('@flopay/shared').PayPalProviderObjectType;
24
- /** Backend-advertised non-popup presentation for a one-time PayPal order. */
25
- approvalPresentation?: import('@flopay/shared').PayPalApprovalPresentation;
26
- /** Backend-created PayPal order to resume instead of creating a new one. */
27
- existingOrderId?: string;
28
- }
29
- /** React's `onTokenizedBody` on the form: the host continues the payment from the body. */
30
- type SplitCardFormTokenizedBodyHandler = (tokenizedBody: TokenizedBody) => void;
31
- /** Props for {@link SplitCardForm} (React's `SplitCardFormProps`; callbacks are emits). */
32
- export interface SplitCardFormProps {
33
- session?: CheckoutSession | null;
34
- sessionId?: string;
35
- nonce?: string;
36
- billingApiUrl?: string;
37
- telemetry?: boolean;
38
- email?: string;
39
- firstName?: string;
40
- lastName?: string;
41
- layout?: 'default' | 'buttons';
42
- initialCardOpen?: boolean;
43
- showPayPal?: boolean;
44
- /**
45
- * React's `walletPresentation`: the preferred approval presentation for
46
- * Stripe-routed PayPal. Defaults to `'auto'` (or the value `FloPayCheckout`
47
- * hands a custom-layout form). `prefer_redirect` renders PayPal as a
48
- * full-page redirect tile; an in-app browser or a blocked pop-up does the
49
- * same whatever the preference, as safety signals stay authoritative.
50
- */
51
- walletPresentation?: WalletPresentation;
52
- showStripe?: boolean;
53
- /** @deprecated Session-driven visibility (`enabledPaymentMethods`) decides. */
54
- showApplePay?: boolean;
55
- /** @deprecated Session-driven visibility (`enabledPaymentMethods`) decides. */
56
- showGooglePay?: boolean;
57
- /** Explicit Stripe method list; `[]` asks for card only. Defaults to the session's. */
58
- enabledPaymentMethods?: string[];
59
- /** True while a detached session's catalog is still being attached: payment is gated. */
60
- dataAttachmentPending?: boolean;
61
- /**
62
- * React's `dataAttachmentRequiresIdentity`: the pending claim waits for this
63
- * form to collect the buyer's identity. The wallets and APMs then stay
64
- * available so they can collect it, and a non-card click does not wait for
65
- * the claim first. Card submit stays gated while the claim is pending. A
66
- * form inside `FloPayCheckout` also reads the checkout's `claimRequiresIdentity`.
67
- */
68
- dataAttachmentRequiresIdentity?: boolean;
69
- /** Final, localized wording for the hosted card form's submit button. */
70
- submitLabel?: string | null;
71
- /** Address verification: `true` (country + postcode) or per-field {@link AVSFieldConfig}. */
72
- enableAVS?: boolean | AVSFieldConfig;
73
- /** Layout for AVS fields: `row` (side by side, default) or `column` (stacked). */
74
- avsLayout?: 'row' | 'column';
75
- /** Initial AVS country (ISO 3166-1 alpha-2). Defaults to the session customer's. */
76
- country?: string;
77
- /** Initial AVS postal code. Defaults to the session customer's. */
78
- zip?: string;
79
- /** Initial AVS street address (line 1), e.g. from a GeoIP or profile lookup. */
80
- addressLine1?: string;
81
- /** Initial AVS apt / suite / unit (line 2). */
82
- addressLine2?: string;
83
- /** Initial AVS city. */
84
- city?: string;
85
- /** Initial AVS state / province. */
86
- state?: string;
87
- /**
88
- * External processing state, as React's `isProcessing`: while `true` the
89
- * AVS fields and the buttons-layout card tile are disabled.
90
- */
91
- isProcessing?: boolean;
92
- /** External error message. It is shown in place of the form's own (React's `error`). */
93
- error?: string | null;
94
- /**
95
- * Theme bundle for the card tile, the card container, the hosted vault
96
- * widget and the Stripe methods. `'classic'` (or none) applies no bundle.
97
- */
98
- theme?: ThemeId;
99
- /** @deprecated Use `theme`. Legacy buttons-layout preset, used only without `theme`. */
100
- buttonsTheme?: ButtonsLayoutTheme;
101
- /** Style overrides merged on top of the resolved theme bundle / `buttonsTheme` preset. */
102
- buttonsStyles?: ButtonsLayoutStyles;
103
- /** Appearance override; wins over the theme bundle's appearance. */
104
- appearance?: FloPayAppearance;
105
- /** Additional CSS class for the form wrapper. */
106
- className?: string;
107
- /**
108
- * Order of the hosted vault card rows, a permutation of
109
- * `['name', 'number', 'expiry']`. It sets both the visual and the tab order.
110
- * Omit it for the default order. Vault card path only.
111
- */
112
- cardFieldOrder?: VaultCardFieldKey[];
113
- /**
114
- * Show the Visa, Mastercard, Amex and Discover icons in the hosted card
115
- * number field. Only `true` turns them on; omitted or `false` keeps the
116
- * field as it is. Vault card path only; an older hosted form ignores it.
117
- */
118
- showCardBrandIcons?: boolean;
119
- /** Show the visible labels above the hosted card fields. See React. */
120
- showCardFieldLabels?: boolean;
121
- /** Replace the text of the labels (`number`, `expiry`, `cvv`, `name`). See React. */
122
- cardFieldLabels?: CardFieldLabels;
123
- /**
124
- * Placeholder text for the hosted card fields (`number`, `expiry`, `cvv`,
125
- * `name`), each optional. Only the fields given are sent; the rest keep the
126
- * hosted form's wording, and `''` shows no placeholder. A change updates the
127
- * mounted form live (compared by content). Omitted sends nothing. Vault card
128
- * path only. See React.
129
- */
130
- cardFieldPlaceholders?: CardFieldPlaceholders;
131
- /**
132
- * `false` turns off the hosted card form's automatic initial focus, so the
133
- * page is not scrolled to the form when it opens. Omitted or `true` keeps
134
- * the default, which never focuses the card over AVS fields above it.
135
- */
136
- cardAutoFocus?: boolean;
137
- /** Milliseconds the card fields may take to become ready before `timeout` (default 15 000). */
138
- cardFieldsTimeoutMs?: number;
139
- /**
140
- * React's `onBeforeButtonClick` (a function prop: its result is read). It
141
- * runs before the buttons-layout card tile opens and before PayPal creates
142
- * its order, with `{ method, sessionId, createSession }`. `false` stops the
143
- * click, a returned `account` goes with the attempt, and a throw is shown
144
- * and emitted as a `validation_error`.
145
- */
146
- onBeforeButtonClick?: SplitCardFormBeforeButtonClick;
147
- /** React's `onBuyerIdentityReady`, passed to the PayPal button (awaited on approval). */
148
- onBuyerIdentityReady?: SplitCardFormBuyerIdentityReady;
149
- /**
150
- * The buyer's user id, sent as `accountData.userId` in the `/account`
151
- * snapshot (React's `userId`). A before-click `account.userId` wins over it.
152
- * Without either, `''` is sent, as in React. `FloPayCheckout` passes the
153
- * session customer's id.
154
- */
155
- userId?: string;
156
- /**
157
- * Whether AVS was enabled, sent as `avsCheck` in the `/account` snapshot for
158
- * analytics (React's `avsCheck`). Omitted from the snapshot when not set.
159
- * `FloPayCheckout` passes `!!enableAVS`.
160
- */
161
- avsCheck?: boolean;
162
- /**
163
- * @deprecated No longer rendered, as in React: the default-layout security
164
- * footer was removed with the theme bundles. Kept so integrations that pass
165
- * it still type-check.
166
- */
167
- showSecurityFooter?: boolean;
168
- /**
169
- * React's `directPaypal`. When set it wins over the session's
170
- * `gateways.paypal`. A backend-created `existingOrderId` given at mount is
171
- * resumed, with React's notice asking the buyer to confirm the payment.
172
- */
173
- directPaypal?: SplitCardFormDirectPayPal;
174
- /**
175
- * Currency for PayPal and the Stripe methods (React's `currency`). Default
176
- * `'usd'`, as in React: the session's currency is not read here, and
177
- * `FloPayCheckout` passes it for its built-in form.
178
- */
179
- currency?: string;
180
- /**
181
- * Whether this is a subscription, for direct PayPal (React's
182
- * `isSubscription`). Default `false`; `FloPayCheckout` passes the session's mode.
183
- */
184
- isSubscription?: boolean;
185
- /**
186
- * React's per-method buyer-country gate
187
- * (`gateways.stripe.enabledPaymentMethodCountries`): method → allowed
188
- * ISO 3166-1 alpha-2 countries. Methods other than the wallet row are
189
- * filtered by the buyer's live country. Without it, the SDK's built-in
190
- * country table decides.
191
- */
192
- enabledPaymentMethodCountries?: Record<string, string[]>;
193
- /**
194
- * React's `debug`: on-screen panels for the PayPal and Stripe gating
195
- * decisions, and the PayPal button's lifecycle tracer. Off by default.
196
- */
197
- debug?: boolean;
198
- /**
199
- * React's `onTokenizedBody` (a function prop: it replaces the SDK's own
200
- * `/process`). PayPal's approval body goes to the host instead. Without it
201
- * the form posts `/process` itself, as React's `dispatchTokenizedBody` does.
202
- */
203
- onTokenizedBody?: SplitCardFormTokenizedBodyHandler;
204
- /** React's `chv`: forwarded as is on the form's own `/process` request. */
205
- chv?: string;
206
- /**
207
- * React's `checkoutType` (`standard_checkout` / `embedded_checkout`), sent
208
- * as analytics metadata on the form's own `/process` request.
209
- * `FloPayCheckout` passes it for its built-in form.
210
- */
211
- checkoutType?: string;
212
- /**
213
- * React's `checkoutLayout` (`default_layout` / `buttons_layout` /
214
- * `custom_layout`), sent as analytics metadata on the form's own
215
- * `/process` request. `FloPayCheckout` passes it for its built-in form.
216
- */
217
- checkoutLayout?: string;
218
- }
219
- /**
220
- * The checkout form: the hosted vault card widget (through the SDK's
221
- * `cardCapture` adapter — card data never touches Stripe.js here), plus the
222
- * wallets, APMs and PayPal the session advertises. It renders exactly what
223
- * the session advertises; with no vault block and nothing else usable it
224
- * raises `UnsupportedBackendVaultCapability` rather than falling back.
225
- *
226
- * Inside a `FloPayCheckout` custom layout it reads the session, nonce and
227
- * `submitLabel` from the checkout unless it sets them itself.
228
- */
229
- export declare const SplitCardForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
230
- session: {
231
- type: PropType<CheckoutSession | null>;
232
- default: undefined;
233
- };
234
- sessionId: {
235
- type: StringConstructor;
236
- default: undefined;
237
- };
238
- nonce: {
239
- type: StringConstructor;
240
- default: undefined;
241
- };
242
- billingApiUrl: {
243
- type: StringConstructor;
244
- default: undefined;
245
- };
246
- telemetry: {
247
- type: BooleanConstructor;
248
- default: undefined;
249
- };
250
- email: {
251
- type: StringConstructor;
252
- default: undefined;
253
- };
254
- firstName: {
255
- type: StringConstructor;
256
- default: undefined;
257
- };
258
- lastName: {
259
- type: StringConstructor;
260
- default: undefined;
261
- };
262
- layout: {
263
- type: PropType<'default' | 'buttons'>;
264
- default: string;
265
- };
266
- initialCardOpen: {
267
- type: BooleanConstructor;
268
- default: boolean;
269
- };
270
- showPayPal: {
271
- type: BooleanConstructor;
272
- default: boolean;
273
- };
274
- walletPresentation: {
275
- type: PropType<WalletPresentation>;
276
- default: undefined;
277
- };
278
- showStripe: {
279
- type: BooleanConstructor;
280
- default: boolean;
281
- };
282
- showApplePay: {
283
- type: BooleanConstructor;
284
- default: boolean;
285
- };
286
- showGooglePay: {
287
- type: BooleanConstructor;
288
- default: boolean;
289
- };
290
- enabledPaymentMethods: {
291
- type: PropType<string[]>;
292
- default: undefined;
293
- };
294
- dataAttachmentPending: {
295
- type: BooleanConstructor;
296
- default: undefined;
297
- };
298
- dataAttachmentRequiresIdentity: {
299
- type: BooleanConstructor;
300
- default: undefined;
301
- };
302
- submitLabel: {
303
- type: PropType<string | null>;
304
- default: undefined;
305
- };
306
- enableAVS: {
307
- type: PropType<boolean | AVSFieldConfig>;
308
- default: undefined;
309
- };
310
- avsLayout: {
311
- type: PropType<'row' | 'column'>;
312
- default: string;
313
- };
314
- country: {
315
- type: StringConstructor;
316
- default: undefined;
317
- };
318
- zip: {
319
- type: StringConstructor;
320
- default: undefined;
321
- };
322
- addressLine1: {
323
- type: StringConstructor;
324
- default: undefined;
325
- };
326
- addressLine2: {
327
- type: StringConstructor;
328
- default: undefined;
329
- };
330
- city: {
331
- type: StringConstructor;
332
- default: undefined;
333
- };
334
- state: {
335
- type: StringConstructor;
336
- default: undefined;
337
- };
338
- isProcessing: {
339
- type: BooleanConstructor;
340
- default: undefined;
341
- };
342
- error: {
343
- type: PropType<string | null>;
344
- default: undefined;
345
- };
346
- theme: {
347
- type: PropType<ThemeId>;
348
- default: undefined;
349
- };
350
- buttonsTheme: {
351
- type: PropType<ButtonsLayoutTheme>;
352
- default: undefined;
353
- };
354
- buttonsStyles: {
355
- type: PropType<ButtonsLayoutStyles>;
356
- default: undefined;
357
- };
358
- appearance: {
359
- type: PropType<FloPayAppearance>;
360
- default: undefined;
361
- };
362
- className: {
363
- type: StringConstructor;
364
- default: undefined;
365
- };
366
- cardFieldOrder: {
367
- type: PropType<VaultCardFieldKey[]>;
368
- default: undefined;
369
- };
370
- showCardBrandIcons: {
371
- type: BooleanConstructor;
372
- default: boolean;
373
- };
374
- showCardFieldLabels: {
375
- type: BooleanConstructor;
376
- default: undefined;
377
- };
378
- cardFieldLabels: {
379
- type: PropType<CardFieldLabels>;
380
- default: undefined;
381
- };
382
- cardFieldPlaceholders: {
383
- type: PropType<CardFieldPlaceholders>;
384
- default: undefined;
385
- };
386
- cardAutoFocus: {
387
- type: BooleanConstructor;
388
- default: boolean;
389
- };
390
- /** Milliseconds the card fields may take to become ready before `timeout` (default 15 000). */
391
- cardFieldsTimeoutMs: {
392
- type: NumberConstructor;
393
- default: undefined;
394
- };
395
- onBeforeButtonClick: {
396
- type: PropType<SplitCardFormBeforeButtonClick>;
397
- default: undefined;
398
- };
399
- onBuyerIdentityReady: {
400
- type: PropType<SplitCardFormBuyerIdentityReady>;
401
- default: undefined;
402
- };
403
- userId: {
404
- type: StringConstructor;
405
- default: undefined;
406
- };
407
- avsCheck: {
408
- type: BooleanConstructor;
409
- default: undefined;
410
- };
411
- /** @deprecated Not rendered (React's deprecated `showSecurityFooter`). */
412
- showSecurityFooter: {
413
- type: BooleanConstructor;
414
- default: undefined;
415
- };
416
- directPaypal: {
417
- type: PropType<SplitCardFormDirectPayPal>;
418
- default: undefined;
419
- };
420
- currency: {
421
- type: StringConstructor;
422
- default: undefined;
423
- };
424
- isSubscription: {
425
- type: BooleanConstructor;
426
- default: undefined;
427
- };
428
- /**
429
- * React's `totalAmount`: the cart total due today, in minor units
430
- * (`FloPayCheckout` passes it). Payment-mode Stripe Elements use
431
- * `totalAmount || 100` (React's `amountInCents` placeholder for a $0 cart),
432
- * and the wallet row runs in setup mode for $0. Default `0`, as React's.
433
- */
434
- totalAmount: {
435
- type: NumberConstructor;
436
- default: number;
437
- };
438
- onTokenizedBody: {
439
- type: PropType<SplitCardFormTokenizedBodyHandler>;
440
- default: undefined;
441
- };
442
- chv: {
443
- type: StringConstructor;
444
- default: undefined;
445
- };
446
- checkoutType: {
447
- type: StringConstructor;
448
- default: undefined;
449
- };
450
- checkoutLayout: {
451
- type: StringConstructor;
452
- default: undefined;
453
- };
454
- enabledPaymentMethodCountries: {
455
- type: PropType<Record<string, string[]>>;
456
- default: undefined;
457
- };
458
- debug: {
459
- type: BooleanConstructor;
460
- default: boolean;
461
- };
462
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
463
- [key: string]: any;
464
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
465
- complete: (_result: PaymentResult) => true;
466
- error: (_error: FloPayError) => true;
467
- decline: (_decline: DeclineEvent) => true;
468
- cancel: (_event: FloPayPaymentCancelEvent) => true;
469
- buttonClick: (_method: CheckoutButtonMethod) => true;
470
- countryChange: (_country: string) => true;
471
- zipChange: (_zip: string) => true;
472
- errorChange: (_error: string | null) => true;
473
- cardFieldsReady: (_event: CardFieldsReadyEvent) => true;
474
- cardFieldsFailed: (_event: CardFieldsFailedEvent) => true;
475
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
476
- session: {
477
- type: PropType<CheckoutSession | null>;
478
- default: undefined;
479
- };
480
- sessionId: {
481
- type: StringConstructor;
482
- default: undefined;
483
- };
484
- nonce: {
485
- type: StringConstructor;
486
- default: undefined;
487
- };
488
- billingApiUrl: {
489
- type: StringConstructor;
490
- default: undefined;
491
- };
492
- telemetry: {
493
- type: BooleanConstructor;
494
- default: undefined;
495
- };
496
- email: {
497
- type: StringConstructor;
498
- default: undefined;
499
- };
500
- firstName: {
501
- type: StringConstructor;
502
- default: undefined;
503
- };
504
- lastName: {
505
- type: StringConstructor;
506
- default: undefined;
507
- };
508
- layout: {
509
- type: PropType<'default' | 'buttons'>;
510
- default: string;
511
- };
512
- initialCardOpen: {
513
- type: BooleanConstructor;
514
- default: boolean;
515
- };
516
- showPayPal: {
517
- type: BooleanConstructor;
518
- default: boolean;
519
- };
520
- walletPresentation: {
521
- type: PropType<WalletPresentation>;
522
- default: undefined;
523
- };
524
- showStripe: {
525
- type: BooleanConstructor;
526
- default: boolean;
527
- };
528
- showApplePay: {
529
- type: BooleanConstructor;
530
- default: boolean;
531
- };
532
- showGooglePay: {
533
- type: BooleanConstructor;
534
- default: boolean;
535
- };
536
- enabledPaymentMethods: {
537
- type: PropType<string[]>;
538
- default: undefined;
539
- };
540
- dataAttachmentPending: {
541
- type: BooleanConstructor;
542
- default: undefined;
543
- };
544
- dataAttachmentRequiresIdentity: {
545
- type: BooleanConstructor;
546
- default: undefined;
547
- };
548
- submitLabel: {
549
- type: PropType<string | null>;
550
- default: undefined;
551
- };
552
- enableAVS: {
553
- type: PropType<boolean | AVSFieldConfig>;
554
- default: undefined;
555
- };
556
- avsLayout: {
557
- type: PropType<'row' | 'column'>;
558
- default: string;
559
- };
560
- country: {
561
- type: StringConstructor;
562
- default: undefined;
563
- };
564
- zip: {
565
- type: StringConstructor;
566
- default: undefined;
567
- };
568
- addressLine1: {
569
- type: StringConstructor;
570
- default: undefined;
571
- };
572
- addressLine2: {
573
- type: StringConstructor;
574
- default: undefined;
575
- };
576
- city: {
577
- type: StringConstructor;
578
- default: undefined;
579
- };
580
- state: {
581
- type: StringConstructor;
582
- default: undefined;
583
- };
584
- isProcessing: {
585
- type: BooleanConstructor;
586
- default: undefined;
587
- };
588
- error: {
589
- type: PropType<string | null>;
590
- default: undefined;
591
- };
592
- theme: {
593
- type: PropType<ThemeId>;
594
- default: undefined;
595
- };
596
- buttonsTheme: {
597
- type: PropType<ButtonsLayoutTheme>;
598
- default: undefined;
599
- };
600
- buttonsStyles: {
601
- type: PropType<ButtonsLayoutStyles>;
602
- default: undefined;
603
- };
604
- appearance: {
605
- type: PropType<FloPayAppearance>;
606
- default: undefined;
607
- };
608
- className: {
609
- type: StringConstructor;
610
- default: undefined;
611
- };
612
- cardFieldOrder: {
613
- type: PropType<VaultCardFieldKey[]>;
614
- default: undefined;
615
- };
616
- showCardBrandIcons: {
617
- type: BooleanConstructor;
618
- default: boolean;
619
- };
620
- showCardFieldLabels: {
621
- type: BooleanConstructor;
622
- default: undefined;
623
- };
624
- cardFieldLabels: {
625
- type: PropType<CardFieldLabels>;
626
- default: undefined;
627
- };
628
- cardFieldPlaceholders: {
629
- type: PropType<CardFieldPlaceholders>;
630
- default: undefined;
631
- };
632
- cardAutoFocus: {
633
- type: BooleanConstructor;
634
- default: boolean;
635
- };
636
- /** Milliseconds the card fields may take to become ready before `timeout` (default 15 000). */
637
- cardFieldsTimeoutMs: {
638
- type: NumberConstructor;
639
- default: undefined;
640
- };
641
- onBeforeButtonClick: {
642
- type: PropType<SplitCardFormBeforeButtonClick>;
643
- default: undefined;
644
- };
645
- onBuyerIdentityReady: {
646
- type: PropType<SplitCardFormBuyerIdentityReady>;
647
- default: undefined;
648
- };
649
- userId: {
650
- type: StringConstructor;
651
- default: undefined;
652
- };
653
- avsCheck: {
654
- type: BooleanConstructor;
655
- default: undefined;
656
- };
657
- /** @deprecated Not rendered (React's deprecated `showSecurityFooter`). */
658
- showSecurityFooter: {
659
- type: BooleanConstructor;
660
- default: undefined;
661
- };
662
- directPaypal: {
663
- type: PropType<SplitCardFormDirectPayPal>;
664
- default: undefined;
665
- };
666
- currency: {
667
- type: StringConstructor;
668
- default: undefined;
669
- };
670
- isSubscription: {
671
- type: BooleanConstructor;
672
- default: undefined;
673
- };
674
- /**
675
- * React's `totalAmount`: the cart total due today, in minor units
676
- * (`FloPayCheckout` passes it). Payment-mode Stripe Elements use
677
- * `totalAmount || 100` (React's `amountInCents` placeholder for a $0 cart),
678
- * and the wallet row runs in setup mode for $0. Default `0`, as React's.
679
- */
680
- totalAmount: {
681
- type: NumberConstructor;
682
- default: number;
683
- };
684
- onTokenizedBody: {
685
- type: PropType<SplitCardFormTokenizedBodyHandler>;
686
- default: undefined;
687
- };
688
- chv: {
689
- type: StringConstructor;
690
- default: undefined;
691
- };
692
- checkoutType: {
693
- type: StringConstructor;
694
- default: undefined;
695
- };
696
- checkoutLayout: {
697
- type: StringConstructor;
698
- default: undefined;
699
- };
700
- enabledPaymentMethodCountries: {
701
- type: PropType<Record<string, string[]>>;
702
- default: undefined;
703
- };
704
- debug: {
705
- type: BooleanConstructor;
706
- default: boolean;
707
- };
708
- }>> & Readonly<{
709
- onButtonClick?: ((_method: CheckoutButtonMethod) => any) | undefined;
710
- onCancel?: ((_event: FloPayPaymentCancelEvent) => any) | undefined;
711
- onCardFieldsFailed?: ((_event: CardFieldsFailedEvent) => any) | undefined;
712
- onCardFieldsReady?: ((_event: CardFieldsReadyEvent) => any) | undefined;
713
- onComplete?: ((_result: PaymentResult) => any) | undefined;
714
- onCountryChange?: ((_country: string) => any) | undefined;
715
- onDecline?: ((_decline: DeclineEvent) => any) | undefined;
716
- onError?: ((_error: FloPayError) => any) | undefined;
717
- onErrorChange?: ((_error: string | null) => any) | undefined;
718
- onZipChange?: ((_zip: string) => any) | undefined;
719
- }>, {
720
- session: CheckoutSession | null;
721
- sessionId: string;
722
- nonce: string;
723
- billingApiUrl: string;
724
- telemetry: boolean;
725
- email: string;
726
- firstName: string;
727
- lastName: string;
728
- layout: "buttons" | "default";
729
- initialCardOpen: boolean;
730
- showPayPal: boolean;
731
- walletPresentation: WalletPresentation;
732
- showStripe: boolean;
733
- showApplePay: boolean;
734
- showGooglePay: boolean;
735
- enabledPaymentMethods: string[];
736
- dataAttachmentPending: boolean;
737
- dataAttachmentRequiresIdentity: boolean;
738
- submitLabel: string | null;
739
- enableAVS: boolean | AVSFieldConfig;
740
- avsLayout: "column" | "row";
741
- country: string;
742
- zip: string;
743
- addressLine1: string;
744
- addressLine2: string;
745
- city: string;
746
- state: string;
747
- isProcessing: boolean;
748
- error: string | null;
749
- theme: ThemeId;
750
- buttonsTheme: ButtonsLayoutTheme;
751
- buttonsStyles: ButtonsLayoutStyles;
752
- appearance: FloPayAppearance;
753
- className: string;
754
- cardFieldOrder: VaultCardFieldKey[];
755
- showCardBrandIcons: boolean;
756
- showCardFieldLabels: boolean;
757
- cardFieldLabels: CardFieldLabels;
758
- cardFieldPlaceholders: CardFieldPlaceholders;
759
- cardAutoFocus: boolean;
760
- cardFieldsTimeoutMs: number;
761
- onBeforeButtonClick: SplitCardFormBeforeButtonClick;
762
- onBuyerIdentityReady: SplitCardFormBuyerIdentityReady;
763
- userId: string;
764
- avsCheck: boolean;
765
- showSecurityFooter: boolean;
766
- directPaypal: SplitCardFormDirectPayPal;
767
- currency: string;
768
- isSubscription: boolean;
769
- totalAmount: number;
770
- onTokenizedBody: SplitCardFormTokenizedBodyHandler;
771
- chv: string;
772
- checkoutType: string;
773
- checkoutLayout: string;
774
- enabledPaymentMethodCountries: Record<string, string[]>;
775
- debug: boolean;
776
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
777
- export {};