@flopay/shared 1.3.4 → 1.4.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 +19 -2
- package/dist/index.cjs +331 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +132 -2
- package/dist/index.d.ts +132 -2
- package/dist/index.mjs +320 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -413,12 +413,20 @@ interface ConfirmCardPaymentParams {
|
|
|
413
413
|
clientSecret: string;
|
|
414
414
|
paymentMethodId: string;
|
|
415
415
|
}
|
|
416
|
+
/** Provider-observed 3DS lifecycle for one opaque, attempt-scoped confirmation. */
|
|
417
|
+
interface CardThreeDsLifecycle {
|
|
418
|
+
/** Opaque in-memory identifier; never derived from payment identifiers. */
|
|
419
|
+
attemptId: string;
|
|
420
|
+
status: 'handoff' | 'returned' | 'failed';
|
|
421
|
+
}
|
|
416
422
|
/** Result from confirming a card payment. */
|
|
417
423
|
interface ConfirmCardPaymentResult {
|
|
418
424
|
status: 'succeeded' | 'processing' | 'requires_action' | 'requires_capture' | 'failed';
|
|
419
425
|
paymentIntentId?: string;
|
|
420
426
|
paymentMethodId?: string;
|
|
421
427
|
error?: FloPayError;
|
|
428
|
+
/** @internal Provider-observed lifecycle used for privacy-safe telemetry. */
|
|
429
|
+
threeDs?: CardThreeDsLifecycle;
|
|
422
430
|
}
|
|
423
431
|
/** The type of payment element to render. */
|
|
424
432
|
type ElementType = 'payment' | 'card' | 'cardNumber' | 'cardExpiry' | 'cardCvc' | 'address';
|
|
@@ -493,6 +501,12 @@ interface FloPayConfig {
|
|
|
493
501
|
publishableKey: string;
|
|
494
502
|
/** Billing API base URL (e.g. https://api.stage.flopay.com). */
|
|
495
503
|
billingApiUrl?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Flo-owned privacy-safe operational telemetry. Enabled by default; set to
|
|
506
|
+
* `false` to opt out. This intentionally accepts no endpoint, tags, user
|
|
507
|
+
* context, messages, or custom metadata.
|
|
508
|
+
*/
|
|
509
|
+
telemetry?: boolean;
|
|
496
510
|
locale?: string;
|
|
497
511
|
appearance?: FloPayAppearance;
|
|
498
512
|
apiVersion?: string;
|
|
@@ -1051,6 +1065,8 @@ interface CreateSessionParams {
|
|
|
1051
1065
|
billingApiUrl: string;
|
|
1052
1066
|
/** Base URL of the checkout frontend, e.g. https://checkout.clicktech.com */
|
|
1053
1067
|
checkoutBaseUrl: string;
|
|
1068
|
+
/** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
|
|
1069
|
+
telemetry?: boolean;
|
|
1054
1070
|
/** The client ID for the checkout session. */
|
|
1055
1071
|
clientId: string;
|
|
1056
1072
|
/**
|
|
@@ -1302,6 +1318,120 @@ interface CountryOption {
|
|
|
1302
1318
|
flag: string;
|
|
1303
1319
|
}
|
|
1304
1320
|
|
|
1321
|
+
/** Wire schema version shared with the Flo telemetry ingestion service. */
|
|
1322
|
+
declare const TELEMETRY_SCHEMA_VERSION: 1;
|
|
1323
|
+
declare const TELEMETRY_SDK_PACKAGES: readonly ["@flopay/shared", "@flopay/js", "@flopay/react"];
|
|
1324
|
+
type TelemetrySdkPackage = (typeof TELEMETRY_SDK_PACKAGES)[number];
|
|
1325
|
+
declare const TELEMETRY_MAX_BATCH_BYTES: number;
|
|
1326
|
+
declare const TELEMETRY_MAX_BATCH_EVENTS = 20;
|
|
1327
|
+
type TelemetryEventClass = 'technical_error' | 'lifecycle' | 'expected_outcome' | 'performance';
|
|
1328
|
+
declare const TELEMETRY_PROVIDERS: readonly ["stripe", "paypal"];
|
|
1329
|
+
type TelemetryProvider = (typeof TELEMETRY_PROVIDERS)[number];
|
|
1330
|
+
type TelemetryProviderInput = TelemetryProvider | 'flo' | 'pcivault' | 'other' | 'unknown';
|
|
1331
|
+
declare const TELEMETRY_PAYMENT_METHOD_CATEGORIES: readonly ["card", "wallet", "paypal", "apm", "saved", "unknown"];
|
|
1332
|
+
type TelemetryPaymentMethodCategory = (typeof TELEMETRY_PAYMENT_METHOD_CATEGORIES)[number];
|
|
1333
|
+
declare const TELEMETRY_STAGES: readonly ["callback", "sdk_initialize", "checkout_mount", "session_create", "session_read", "session_first_byte", "session_complete", "checkout_data_ready", "checkout_render", "checkout_interactive", "provider_load", "provider_ready", "overlay_open", "overlay_return", "redirect", "redirect_resume", "vault_request", "vault_mount", "vault_ready", "vault_submit", "tokenization", "three_ds_handoff", "three_ds_return", "processing", "recovery", "completion", "unmount", "total_journey"];
|
|
1334
|
+
type TelemetryStage = (typeof TELEMETRY_STAGES)[number];
|
|
1335
|
+
declare const TELEMETRY_ERROR_CODES: readonly ["CALLBACK_FAILED", "CHECKOUT_SESSION_CREATE_FAILED", "CONFIGURATION_INVALID", "INTERNAL_SDK_ERROR", "NETWORK_REQUEST_FAILED", "PAYMENT_PROCESSING_FAILED", "POPUP_BLOCKED", "PROVIDER_LOAD_FAILED", "PROVIDER_RUNTIME_FAILED", "RECOVERY_FAILED", "REDIRECT_RESUME_FAILED", "REQUEST_TIMEOUT", "SDK_INITIALIZATION_FAILED", "THREE_DS_FAILED", "TOKENIZATION_FAILED", "VAULT_LOAD_FAILED", "VAULT_SUBMIT_FAILED"];
|
|
1336
|
+
type TelemetryErrorCode = (typeof TELEMETRY_ERROR_CODES)[number];
|
|
1337
|
+
/** Closed catalog of SDK-authored lifecycle and operational log names. */
|
|
1338
|
+
declare const TELEMETRY_LOG_NAMES: readonly ["sdk.initialize.started", "sdk.initialize.ready", "sdk.cache.hit", "sdk.cache.miss", "checkout.mount", "session.create.started", "session.read.started", "session.request.first_byte", "session.request.completed", "checkout.data.ready", "checkout.rendered", "checkout.interactive", "checkout.recovery.started", "checkout.recovery.completed", "checkout.unmount", "provider.load.started", "provider.eligibility.checked", "provider.availability.checked", "provider.ready", "provider.popup.opened", "provider.overlay.opened", "provider.overlay.returned", "provider.redirect.started", "provider.redirect.resumed", "vault.capture.requested", "vault.widget.mounted", "vault.widget.ready", "vault.submission.started", "vault.action.required", "vault.three_ds.handoff", "vault.three_ds.returned", "vault.terminal", "payment.method.selected", "payment.intent.started", "payment.intent.completed", "payment.tokenization.started", "payment.tokenization.completed", "payment.processing.started", "payment.processing.completed", "payment.three_ds.handoff", "payment.three_ds.returned", "operation.retry", "operation.deduplicated", "operation.fallback", "operation.cache.hit", "operation.cache.miss", "operation.recovery.started", "operation.recovery.completed", "operation.state_transition"];
|
|
1339
|
+
type TelemetryLogName = (typeof TELEMETRY_LOG_NAMES)[number];
|
|
1340
|
+
declare const TELEMETRY_REQUEST_CATEGORIES: readonly ["session_create", "session_read", "intent_create", "process_payment", "vault_capture", "account_snapshot", "provider_sdk", "other"];
|
|
1341
|
+
type TelemetryRequestCategory = (typeof TELEMETRY_REQUEST_CATEGORIES)[number];
|
|
1342
|
+
declare const TELEMETRY_STATUS_CLASSES: readonly ["2xx", "3xx", "4xx", "5xx", "network_error", "timeout", "unknown"];
|
|
1343
|
+
type TelemetryStatusClass = (typeof TELEMETRY_STATUS_CLASSES)[number];
|
|
1344
|
+
declare const TELEMETRY_CHECKOUT_MODES: readonly ["full", "auto", "confirm", "unknown"];
|
|
1345
|
+
type TelemetryCheckoutMode = (typeof TELEMETRY_CHECKOUT_MODES)[number];
|
|
1346
|
+
declare const TELEMETRY_LAYOUTS: readonly ["embedded", "buttons", "automatic", "unknown"];
|
|
1347
|
+
type TelemetryLayout = (typeof TELEMETRY_LAYOUTS)[number];
|
|
1348
|
+
declare const TELEMETRY_DURATION_MODES: readonly ["machine", "buyer", "total"];
|
|
1349
|
+
type TelemetryDurationMode = (typeof TELEMETRY_DURATION_MODES)[number];
|
|
1350
|
+
declare const TELEMETRY_EXPECTED_OUTCOMES: readonly ["action_required", "customer_abandoned", "payment_cancelled", "payment_declined", "payment_succeeded", "validation_rejected"];
|
|
1351
|
+
type TelemetryExpectedOutcome = (typeof TELEMETRY_EXPECTED_OUTCOMES)[number];
|
|
1352
|
+
interface TelemetryCommonFields {
|
|
1353
|
+
eventId: string;
|
|
1354
|
+
stage: TelemetryStage;
|
|
1355
|
+
sequence: number;
|
|
1356
|
+
provider?: TelemetryProvider;
|
|
1357
|
+
attempt?: number;
|
|
1358
|
+
statusClass?: TelemetryStatusClass;
|
|
1359
|
+
requestCategory?: TelemetryRequestCategory;
|
|
1360
|
+
paymentMethodCategory?: TelemetryPaymentMethodCategory;
|
|
1361
|
+
checkoutMode?: TelemetryCheckoutMode;
|
|
1362
|
+
layout?: TelemetryLayout;
|
|
1363
|
+
}
|
|
1364
|
+
interface BuildTelemetryCommonInput {
|
|
1365
|
+
eventId: string;
|
|
1366
|
+
stage: TelemetryStage;
|
|
1367
|
+
sequence: number;
|
|
1368
|
+
provider?: TelemetryProviderInput;
|
|
1369
|
+
attempt?: number;
|
|
1370
|
+
statusClass?: TelemetryStatusClass;
|
|
1371
|
+
requestCategory?: TelemetryRequestCategory;
|
|
1372
|
+
paymentMethodCategory?: TelemetryPaymentMethodCategory;
|
|
1373
|
+
checkoutMode?: TelemetryCheckoutMode;
|
|
1374
|
+
layout?: TelemetryLayout;
|
|
1375
|
+
}
|
|
1376
|
+
interface TelemetryErrorEvent extends TelemetryCommonFields {
|
|
1377
|
+
class: 'technical_error';
|
|
1378
|
+
code: TelemetryErrorCode;
|
|
1379
|
+
}
|
|
1380
|
+
interface BuildTelemetryErrorEventInput extends BuildTelemetryCommonInput {
|
|
1381
|
+
errorCode: TelemetryErrorCode;
|
|
1382
|
+
}
|
|
1383
|
+
interface TelemetryLogEvent extends TelemetryCommonFields {
|
|
1384
|
+
class: 'lifecycle';
|
|
1385
|
+
name: TelemetryLogName;
|
|
1386
|
+
}
|
|
1387
|
+
interface BuildTelemetryLogEventInput extends BuildTelemetryCommonInput {
|
|
1388
|
+
name: TelemetryLogName;
|
|
1389
|
+
}
|
|
1390
|
+
interface TelemetryExpectedOutcomeEvent extends TelemetryCommonFields {
|
|
1391
|
+
class: 'expected_outcome';
|
|
1392
|
+
outcome: TelemetryExpectedOutcome;
|
|
1393
|
+
}
|
|
1394
|
+
interface BuildTelemetryTerminalEventInput extends Omit<BuildTelemetryCommonInput, 'stage'> {
|
|
1395
|
+
outcome: TelemetryExpectedOutcome;
|
|
1396
|
+
stage?: TelemetryStage;
|
|
1397
|
+
}
|
|
1398
|
+
interface TelemetryPerformanceEvent extends TelemetryCommonFields {
|
|
1399
|
+
class: 'performance';
|
|
1400
|
+
durationMs: number;
|
|
1401
|
+
durationMode: TelemetryDurationMode;
|
|
1402
|
+
}
|
|
1403
|
+
interface BuildTelemetryPerformanceEventInput extends BuildTelemetryCommonInput {
|
|
1404
|
+
durationMs: number;
|
|
1405
|
+
durationMode: TelemetryDurationMode;
|
|
1406
|
+
}
|
|
1407
|
+
type TelemetryEvent = TelemetryErrorEvent | TelemetryLogEvent | TelemetryExpectedOutcomeEvent | TelemetryPerformanceEvent;
|
|
1408
|
+
interface SerializeTelemetryBatchOptions {
|
|
1409
|
+
correlationId: string;
|
|
1410
|
+
sdkPackage: TelemetrySdkPackage;
|
|
1411
|
+
sdkVersion: string;
|
|
1412
|
+
batchId?: string;
|
|
1413
|
+
}
|
|
1414
|
+
interface TelemetryBatchEnvelope {
|
|
1415
|
+
schemaVersion: typeof TELEMETRY_SCHEMA_VERSION;
|
|
1416
|
+
batchId: string;
|
|
1417
|
+
correlationId: string;
|
|
1418
|
+
sdk: {
|
|
1419
|
+
package: TelemetrySdkPackage;
|
|
1420
|
+
version: string;
|
|
1421
|
+
};
|
|
1422
|
+
events: TelemetryEvent[];
|
|
1423
|
+
}
|
|
1424
|
+
/** Build a closed SDK technical-error event. */
|
|
1425
|
+
declare function buildTelemetryErrorEvent(input: BuildTelemetryErrorEventInput): TelemetryErrorEvent;
|
|
1426
|
+
/** Build a typed SDK lifecycle event; arbitrary text is never accepted. */
|
|
1427
|
+
declare function buildTelemetryLogEvent(input: BuildTelemetryLogEventInput): TelemetryLogEvent;
|
|
1428
|
+
/** Build a non-error expected checkout outcome. */
|
|
1429
|
+
declare function buildTelemetryTerminalEvent(input: BuildTelemetryTerminalEventInput): TelemetryExpectedOutcomeEvent;
|
|
1430
|
+
/** Build a monotonic SDK-owned duration measurement. */
|
|
1431
|
+
declare function buildTelemetryPerformanceEvent(input: BuildTelemetryPerformanceEventInput): TelemetryPerformanceEvent;
|
|
1432
|
+
/** Serialize one closed backend-owned v1 telemetry envelope. */
|
|
1433
|
+
declare function serializeTelemetryBatch(events: readonly TelemetryEvent[], options: SerializeTelemetryBatchOptions): string;
|
|
1434
|
+
|
|
1305
1435
|
/** FloPay environment — determines which billing API URL is used. */
|
|
1306
1436
|
type FloPayEnvironment = 'staging' | 'production' | 'local';
|
|
1307
1437
|
/**
|
|
@@ -1333,7 +1463,7 @@ declare function getConfiguredBillingApiUrl(): string;
|
|
|
1333
1463
|
declare function getFloPayEnvironment(): FloPayEnvironment;
|
|
1334
1464
|
|
|
1335
1465
|
/** Current SDK version. */
|
|
1336
|
-
declare const SDK_VERSION = "1.
|
|
1466
|
+
declare const SDK_VERSION = "1.4.1";
|
|
1337
1467
|
/**
|
|
1338
1468
|
* HTTP header the SDK sends on `POST /v1/checkouts/sessions` so the backend
|
|
1339
1469
|
* can decide whether to embed the vault capture block (the hosted PCI card
|
|
@@ -1984,4 +2114,4 @@ declare function generateIdempotencyKey(): string | undefined;
|
|
|
1984
2114
|
*/
|
|
1985
2115
|
declare function resolveIdempotencyKey(supplied?: string): string | undefined;
|
|
1986
2116
|
|
|
1987
|
-
export { type AVSFieldConfig, BILLING_API_URL, BILLING_API_URL_PRODUCTION, BILLING_API_URL_STAGING, BOLD_DARK_APPEARANCE, BOLD_LIGHT_APPEARANCE, BUTTONS_LAYOUT_BOLD_DARK, BUTTONS_LAYOUT_BOLD_LIGHT, BUTTONS_LAYOUT_DARK, BUTTONS_LAYOUT_DEFAULT, BUTTONS_LAYOUT_GLASS_DARK, BUTTONS_LAYOUT_GLASS_LIGHT, BUTTONS_LAYOUT_MINIMAL, BUTTONS_LAYOUT_MODERN_DARK, BUTTONS_LAYOUT_MODERN_LIGHT, BUTTONS_LAYOUT_ROUNDED, type BeforeButtonClickEvent, type BillingDetails, type BillingProvider, type BuildCheckoutDisplayDataOptions, type ButtonsLayoutStyles, type ButtonsLayoutTheme, CA_PROVINCES, COUNTRY_OPTIONS, CURRENCY_MAP, type CardCaptureAdapter, type CardCaptureEventType, type CardCaptureMountOptions, type CardCaptureOutcomeEvent, type CardCaptureProviderId, type CheckoutAccount, type CheckoutButtonMethod, type CheckoutDisplayData, type CheckoutGateway, type CheckoutGateways, type CheckoutItem, type CheckoutMode, type CheckoutModeKind, type CheckoutProcessError, type CheckoutProcessingPending, type CheckoutProduct, type CheckoutProductType, type CheckoutSession, type CheckoutSessionProduct, type CheckoutSessionResult, type CheckoutSubscription, type ConfirmCardPaymentParams, type ConfirmCardPaymentResult, type ConfirmPaymentParams, type CountryOption, type CreateCustomerParams, type CreatePaymentMethodResult, type CreateSessionParams, type CurrencyInfo, type Customer, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_APPEARANCE, DEFAULT_CURRENCY, type DeclineEvent, type DisplayLineItem, ELEMENT_TYPES, type ElementChangeEvent, type ElementOptions, type ElementType, FLAT_APPEARANCE, FLO_SDK_VERSION_HEADER, type FloPayAppearance, type FloPayConfig, type FloPayEnvironment, FloPayError, type FloPayErrorType, type FloPayThemeVariables, GLASS_DARK_APPEARANCE, GLASS_LIGHT_APPEARANCE, type GatewayEnvironment, IDEMPOTENCY_IN_PROGRESS_CODE, IDEMPOTENCY_KEY_HEADER, type InlineSessionDraft, type InlineSessionParams, type InlineSessionPatch, type LineItem, MAX_IDEMPOTENCY_KEY_LENGTH, MODERN_DARK_APPEARANCE, MODERN_LIGHT_APPEARANCE, type MountedElement, NIGHT_APPEARANCE, type NormalizedCheckoutSession, type NormalizedGatewayEnvironment, type PaymentProviderAdapter, type PaymentResult, type PriceData, type ProcessPaymentParams, type RecurringInterval, SDK_VERSION, STRIPE_EXPRESS_METHODS, STRIPE_METHOD_AMOUNT_LIMITS, STRIPE_METHOD_COUNTRIES, STRIPE_METHOD_CURRENCIES, STRIPE_METHOD_MATRIX, SUPPORTED_CARD_BRANDS, type StateOption, type StripeMethodEntry, type StripeMethodThemeVariant, THEMES, type TagsData, type ThemeBundle, type ThemeBundleId, type ThemeId, type TokenizedBody, US_STATES, type UpdateCustomerParams, type VaultCaptureBlock, type VaultCaptureResultMessage, type VaultCardFieldKey, type VaultCardThemeColors, type WebhookEvent, apiError, authenticationError, buildCheckoutDisplayData, buildItemPayload, buildProductPayload, buildSubscriptionPayload, configureFlopay, filterStripeMethodsByAmount, filterStripeMethodsByCountry, filterStripeMethodsByCurrency, foldIntoProducts, generateIdempotencyKey, getConfiguredBillingApiUrl, getCountryByCode, getCurrencyByCountry, getFloPayEnvironment, getPostalCodeExample, getPostalCodeLabel, getStateFromPostalCode, getStateLabel, getStateOptions, getStripeMethodDisplayName, hasVendoredStripeMethodLogo, isAVSEnabled, isAVSFieldVisible, isPostalCodeSupported, isSetupIntentClientSecret, isValidPostalCode, isValidPublishableKey, isValidSecretKey, needsStripeMethodExplicitConfirm, networkError, normalizeGatewayEnvironment, partitionStripeMethods, rateLimitError, resolveAVSConfig, resolveBillingApiUrl, resolveButtonsLayoutTheme, resolveIdempotencyKey, resolveSessionCurrency, resolveStripeMethodBrandVariant, resolveTheme, stripeExpressMethodToOptionKey, validationError };
|
|
2117
|
+
export { type AVSFieldConfig, BILLING_API_URL, BILLING_API_URL_PRODUCTION, BILLING_API_URL_STAGING, BOLD_DARK_APPEARANCE, BOLD_LIGHT_APPEARANCE, BUTTONS_LAYOUT_BOLD_DARK, BUTTONS_LAYOUT_BOLD_LIGHT, BUTTONS_LAYOUT_DARK, BUTTONS_LAYOUT_DEFAULT, BUTTONS_LAYOUT_GLASS_DARK, BUTTONS_LAYOUT_GLASS_LIGHT, BUTTONS_LAYOUT_MINIMAL, BUTTONS_LAYOUT_MODERN_DARK, BUTTONS_LAYOUT_MODERN_LIGHT, BUTTONS_LAYOUT_ROUNDED, type BeforeButtonClickEvent, type BillingDetails, type BillingProvider, type BuildCheckoutDisplayDataOptions, type BuildTelemetryErrorEventInput, type BuildTelemetryLogEventInput, type BuildTelemetryPerformanceEventInput, type BuildTelemetryTerminalEventInput, type ButtonsLayoutStyles, type ButtonsLayoutTheme, CA_PROVINCES, COUNTRY_OPTIONS, CURRENCY_MAP, type CardCaptureAdapter, type CardCaptureEventType, type CardCaptureMountOptions, type CardCaptureOutcomeEvent, type CardCaptureProviderId, type CardThreeDsLifecycle, type CheckoutAccount, type CheckoutButtonMethod, type CheckoutDisplayData, type CheckoutGateway, type CheckoutGateways, type CheckoutItem, type CheckoutMode, type CheckoutModeKind, type CheckoutProcessError, type CheckoutProcessingPending, type CheckoutProduct, type CheckoutProductType, type CheckoutSession, type CheckoutSessionProduct, type CheckoutSessionResult, type CheckoutSubscription, type ConfirmCardPaymentParams, type ConfirmCardPaymentResult, type ConfirmPaymentParams, type CountryOption, type CreateCustomerParams, type CreatePaymentMethodResult, type CreateSessionParams, type CurrencyInfo, type Customer, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_APPEARANCE, DEFAULT_CURRENCY, type DeclineEvent, type DisplayLineItem, ELEMENT_TYPES, type ElementChangeEvent, type ElementOptions, type ElementType, FLAT_APPEARANCE, FLO_SDK_VERSION_HEADER, type FloPayAppearance, type FloPayConfig, type FloPayEnvironment, FloPayError, type FloPayErrorType, type FloPayThemeVariables, GLASS_DARK_APPEARANCE, GLASS_LIGHT_APPEARANCE, type GatewayEnvironment, IDEMPOTENCY_IN_PROGRESS_CODE, IDEMPOTENCY_KEY_HEADER, type InlineSessionDraft, type InlineSessionParams, type InlineSessionPatch, type LineItem, MAX_IDEMPOTENCY_KEY_LENGTH, MODERN_DARK_APPEARANCE, MODERN_LIGHT_APPEARANCE, type MountedElement, NIGHT_APPEARANCE, type NormalizedCheckoutSession, type NormalizedGatewayEnvironment, type PaymentProviderAdapter, type PaymentResult, type PriceData, type ProcessPaymentParams, type RecurringInterval, SDK_VERSION, STRIPE_EXPRESS_METHODS, STRIPE_METHOD_AMOUNT_LIMITS, STRIPE_METHOD_COUNTRIES, STRIPE_METHOD_CURRENCIES, STRIPE_METHOD_MATRIX, SUPPORTED_CARD_BRANDS, type SerializeTelemetryBatchOptions, type StateOption, type StripeMethodEntry, type StripeMethodThemeVariant, TELEMETRY_ERROR_CODES, TELEMETRY_LOG_NAMES, TELEMETRY_MAX_BATCH_BYTES, TELEMETRY_MAX_BATCH_EVENTS, TELEMETRY_SCHEMA_VERSION, TELEMETRY_SDK_PACKAGES, THEMES, type TagsData, type TelemetryBatchEnvelope, type TelemetryCheckoutMode, type TelemetryDurationMode, type TelemetryErrorCode, type TelemetryErrorEvent, type TelemetryEvent, type TelemetryEventClass, type TelemetryExpectedOutcome, type TelemetryExpectedOutcomeEvent, type TelemetryLayout, type TelemetryLogEvent, type TelemetryLogName, type TelemetryPaymentMethodCategory, type TelemetryPerformanceEvent, type TelemetryProvider, type TelemetryProviderInput, type TelemetryRequestCategory, type TelemetrySdkPackage, type TelemetryStage, type TelemetryStatusClass, type ThemeBundle, type ThemeBundleId, type ThemeId, type TokenizedBody, US_STATES, type UpdateCustomerParams, type VaultCaptureBlock, type VaultCaptureResultMessage, type VaultCardFieldKey, type VaultCardThemeColors, type WebhookEvent, apiError, authenticationError, buildCheckoutDisplayData, buildItemPayload, buildProductPayload, buildSubscriptionPayload, buildTelemetryErrorEvent, buildTelemetryLogEvent, buildTelemetryPerformanceEvent, buildTelemetryTerminalEvent, configureFlopay, filterStripeMethodsByAmount, filterStripeMethodsByCountry, filterStripeMethodsByCurrency, foldIntoProducts, generateIdempotencyKey, getConfiguredBillingApiUrl, getCountryByCode, getCurrencyByCountry, getFloPayEnvironment, getPostalCodeExample, getPostalCodeLabel, getStateFromPostalCode, getStateLabel, getStateOptions, getStripeMethodDisplayName, hasVendoredStripeMethodLogo, isAVSEnabled, isAVSFieldVisible, isPostalCodeSupported, isSetupIntentClientSecret, isValidPostalCode, isValidPublishableKey, isValidSecretKey, needsStripeMethodExplicitConfirm, networkError, normalizeGatewayEnvironment, partitionStripeMethods, rateLimitError, resolveAVSConfig, resolveBillingApiUrl, resolveButtonsLayoutTheme, resolveIdempotencyKey, resolveSessionCurrency, resolveStripeMethodBrandVariant, resolveTheme, serializeTelemetryBatch, stripeExpressMethodToOptionKey, validationError };
|
package/dist/index.d.ts
CHANGED
|
@@ -413,12 +413,20 @@ interface ConfirmCardPaymentParams {
|
|
|
413
413
|
clientSecret: string;
|
|
414
414
|
paymentMethodId: string;
|
|
415
415
|
}
|
|
416
|
+
/** Provider-observed 3DS lifecycle for one opaque, attempt-scoped confirmation. */
|
|
417
|
+
interface CardThreeDsLifecycle {
|
|
418
|
+
/** Opaque in-memory identifier; never derived from payment identifiers. */
|
|
419
|
+
attemptId: string;
|
|
420
|
+
status: 'handoff' | 'returned' | 'failed';
|
|
421
|
+
}
|
|
416
422
|
/** Result from confirming a card payment. */
|
|
417
423
|
interface ConfirmCardPaymentResult {
|
|
418
424
|
status: 'succeeded' | 'processing' | 'requires_action' | 'requires_capture' | 'failed';
|
|
419
425
|
paymentIntentId?: string;
|
|
420
426
|
paymentMethodId?: string;
|
|
421
427
|
error?: FloPayError;
|
|
428
|
+
/** @internal Provider-observed lifecycle used for privacy-safe telemetry. */
|
|
429
|
+
threeDs?: CardThreeDsLifecycle;
|
|
422
430
|
}
|
|
423
431
|
/** The type of payment element to render. */
|
|
424
432
|
type ElementType = 'payment' | 'card' | 'cardNumber' | 'cardExpiry' | 'cardCvc' | 'address';
|
|
@@ -493,6 +501,12 @@ interface FloPayConfig {
|
|
|
493
501
|
publishableKey: string;
|
|
494
502
|
/** Billing API base URL (e.g. https://api.stage.flopay.com). */
|
|
495
503
|
billingApiUrl?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Flo-owned privacy-safe operational telemetry. Enabled by default; set to
|
|
506
|
+
* `false` to opt out. This intentionally accepts no endpoint, tags, user
|
|
507
|
+
* context, messages, or custom metadata.
|
|
508
|
+
*/
|
|
509
|
+
telemetry?: boolean;
|
|
496
510
|
locale?: string;
|
|
497
511
|
appearance?: FloPayAppearance;
|
|
498
512
|
apiVersion?: string;
|
|
@@ -1051,6 +1065,8 @@ interface CreateSessionParams {
|
|
|
1051
1065
|
billingApiUrl: string;
|
|
1052
1066
|
/** Base URL of the checkout frontend, e.g. https://checkout.clicktech.com */
|
|
1053
1067
|
checkoutBaseUrl: string;
|
|
1068
|
+
/** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
|
|
1069
|
+
telemetry?: boolean;
|
|
1054
1070
|
/** The client ID for the checkout session. */
|
|
1055
1071
|
clientId: string;
|
|
1056
1072
|
/**
|
|
@@ -1302,6 +1318,120 @@ interface CountryOption {
|
|
|
1302
1318
|
flag: string;
|
|
1303
1319
|
}
|
|
1304
1320
|
|
|
1321
|
+
/** Wire schema version shared with the Flo telemetry ingestion service. */
|
|
1322
|
+
declare const TELEMETRY_SCHEMA_VERSION: 1;
|
|
1323
|
+
declare const TELEMETRY_SDK_PACKAGES: readonly ["@flopay/shared", "@flopay/js", "@flopay/react"];
|
|
1324
|
+
type TelemetrySdkPackage = (typeof TELEMETRY_SDK_PACKAGES)[number];
|
|
1325
|
+
declare const TELEMETRY_MAX_BATCH_BYTES: number;
|
|
1326
|
+
declare const TELEMETRY_MAX_BATCH_EVENTS = 20;
|
|
1327
|
+
type TelemetryEventClass = 'technical_error' | 'lifecycle' | 'expected_outcome' | 'performance';
|
|
1328
|
+
declare const TELEMETRY_PROVIDERS: readonly ["stripe", "paypal"];
|
|
1329
|
+
type TelemetryProvider = (typeof TELEMETRY_PROVIDERS)[number];
|
|
1330
|
+
type TelemetryProviderInput = TelemetryProvider | 'flo' | 'pcivault' | 'other' | 'unknown';
|
|
1331
|
+
declare const TELEMETRY_PAYMENT_METHOD_CATEGORIES: readonly ["card", "wallet", "paypal", "apm", "saved", "unknown"];
|
|
1332
|
+
type TelemetryPaymentMethodCategory = (typeof TELEMETRY_PAYMENT_METHOD_CATEGORIES)[number];
|
|
1333
|
+
declare const TELEMETRY_STAGES: readonly ["callback", "sdk_initialize", "checkout_mount", "session_create", "session_read", "session_first_byte", "session_complete", "checkout_data_ready", "checkout_render", "checkout_interactive", "provider_load", "provider_ready", "overlay_open", "overlay_return", "redirect", "redirect_resume", "vault_request", "vault_mount", "vault_ready", "vault_submit", "tokenization", "three_ds_handoff", "three_ds_return", "processing", "recovery", "completion", "unmount", "total_journey"];
|
|
1334
|
+
type TelemetryStage = (typeof TELEMETRY_STAGES)[number];
|
|
1335
|
+
declare const TELEMETRY_ERROR_CODES: readonly ["CALLBACK_FAILED", "CHECKOUT_SESSION_CREATE_FAILED", "CONFIGURATION_INVALID", "INTERNAL_SDK_ERROR", "NETWORK_REQUEST_FAILED", "PAYMENT_PROCESSING_FAILED", "POPUP_BLOCKED", "PROVIDER_LOAD_FAILED", "PROVIDER_RUNTIME_FAILED", "RECOVERY_FAILED", "REDIRECT_RESUME_FAILED", "REQUEST_TIMEOUT", "SDK_INITIALIZATION_FAILED", "THREE_DS_FAILED", "TOKENIZATION_FAILED", "VAULT_LOAD_FAILED", "VAULT_SUBMIT_FAILED"];
|
|
1336
|
+
type TelemetryErrorCode = (typeof TELEMETRY_ERROR_CODES)[number];
|
|
1337
|
+
/** Closed catalog of SDK-authored lifecycle and operational log names. */
|
|
1338
|
+
declare const TELEMETRY_LOG_NAMES: readonly ["sdk.initialize.started", "sdk.initialize.ready", "sdk.cache.hit", "sdk.cache.miss", "checkout.mount", "session.create.started", "session.read.started", "session.request.first_byte", "session.request.completed", "checkout.data.ready", "checkout.rendered", "checkout.interactive", "checkout.recovery.started", "checkout.recovery.completed", "checkout.unmount", "provider.load.started", "provider.eligibility.checked", "provider.availability.checked", "provider.ready", "provider.popup.opened", "provider.overlay.opened", "provider.overlay.returned", "provider.redirect.started", "provider.redirect.resumed", "vault.capture.requested", "vault.widget.mounted", "vault.widget.ready", "vault.submission.started", "vault.action.required", "vault.three_ds.handoff", "vault.three_ds.returned", "vault.terminal", "payment.method.selected", "payment.intent.started", "payment.intent.completed", "payment.tokenization.started", "payment.tokenization.completed", "payment.processing.started", "payment.processing.completed", "payment.three_ds.handoff", "payment.three_ds.returned", "operation.retry", "operation.deduplicated", "operation.fallback", "operation.cache.hit", "operation.cache.miss", "operation.recovery.started", "operation.recovery.completed", "operation.state_transition"];
|
|
1339
|
+
type TelemetryLogName = (typeof TELEMETRY_LOG_NAMES)[number];
|
|
1340
|
+
declare const TELEMETRY_REQUEST_CATEGORIES: readonly ["session_create", "session_read", "intent_create", "process_payment", "vault_capture", "account_snapshot", "provider_sdk", "other"];
|
|
1341
|
+
type TelemetryRequestCategory = (typeof TELEMETRY_REQUEST_CATEGORIES)[number];
|
|
1342
|
+
declare const TELEMETRY_STATUS_CLASSES: readonly ["2xx", "3xx", "4xx", "5xx", "network_error", "timeout", "unknown"];
|
|
1343
|
+
type TelemetryStatusClass = (typeof TELEMETRY_STATUS_CLASSES)[number];
|
|
1344
|
+
declare const TELEMETRY_CHECKOUT_MODES: readonly ["full", "auto", "confirm", "unknown"];
|
|
1345
|
+
type TelemetryCheckoutMode = (typeof TELEMETRY_CHECKOUT_MODES)[number];
|
|
1346
|
+
declare const TELEMETRY_LAYOUTS: readonly ["embedded", "buttons", "automatic", "unknown"];
|
|
1347
|
+
type TelemetryLayout = (typeof TELEMETRY_LAYOUTS)[number];
|
|
1348
|
+
declare const TELEMETRY_DURATION_MODES: readonly ["machine", "buyer", "total"];
|
|
1349
|
+
type TelemetryDurationMode = (typeof TELEMETRY_DURATION_MODES)[number];
|
|
1350
|
+
declare const TELEMETRY_EXPECTED_OUTCOMES: readonly ["action_required", "customer_abandoned", "payment_cancelled", "payment_declined", "payment_succeeded", "validation_rejected"];
|
|
1351
|
+
type TelemetryExpectedOutcome = (typeof TELEMETRY_EXPECTED_OUTCOMES)[number];
|
|
1352
|
+
interface TelemetryCommonFields {
|
|
1353
|
+
eventId: string;
|
|
1354
|
+
stage: TelemetryStage;
|
|
1355
|
+
sequence: number;
|
|
1356
|
+
provider?: TelemetryProvider;
|
|
1357
|
+
attempt?: number;
|
|
1358
|
+
statusClass?: TelemetryStatusClass;
|
|
1359
|
+
requestCategory?: TelemetryRequestCategory;
|
|
1360
|
+
paymentMethodCategory?: TelemetryPaymentMethodCategory;
|
|
1361
|
+
checkoutMode?: TelemetryCheckoutMode;
|
|
1362
|
+
layout?: TelemetryLayout;
|
|
1363
|
+
}
|
|
1364
|
+
interface BuildTelemetryCommonInput {
|
|
1365
|
+
eventId: string;
|
|
1366
|
+
stage: TelemetryStage;
|
|
1367
|
+
sequence: number;
|
|
1368
|
+
provider?: TelemetryProviderInput;
|
|
1369
|
+
attempt?: number;
|
|
1370
|
+
statusClass?: TelemetryStatusClass;
|
|
1371
|
+
requestCategory?: TelemetryRequestCategory;
|
|
1372
|
+
paymentMethodCategory?: TelemetryPaymentMethodCategory;
|
|
1373
|
+
checkoutMode?: TelemetryCheckoutMode;
|
|
1374
|
+
layout?: TelemetryLayout;
|
|
1375
|
+
}
|
|
1376
|
+
interface TelemetryErrorEvent extends TelemetryCommonFields {
|
|
1377
|
+
class: 'technical_error';
|
|
1378
|
+
code: TelemetryErrorCode;
|
|
1379
|
+
}
|
|
1380
|
+
interface BuildTelemetryErrorEventInput extends BuildTelemetryCommonInput {
|
|
1381
|
+
errorCode: TelemetryErrorCode;
|
|
1382
|
+
}
|
|
1383
|
+
interface TelemetryLogEvent extends TelemetryCommonFields {
|
|
1384
|
+
class: 'lifecycle';
|
|
1385
|
+
name: TelemetryLogName;
|
|
1386
|
+
}
|
|
1387
|
+
interface BuildTelemetryLogEventInput extends BuildTelemetryCommonInput {
|
|
1388
|
+
name: TelemetryLogName;
|
|
1389
|
+
}
|
|
1390
|
+
interface TelemetryExpectedOutcomeEvent extends TelemetryCommonFields {
|
|
1391
|
+
class: 'expected_outcome';
|
|
1392
|
+
outcome: TelemetryExpectedOutcome;
|
|
1393
|
+
}
|
|
1394
|
+
interface BuildTelemetryTerminalEventInput extends Omit<BuildTelemetryCommonInput, 'stage'> {
|
|
1395
|
+
outcome: TelemetryExpectedOutcome;
|
|
1396
|
+
stage?: TelemetryStage;
|
|
1397
|
+
}
|
|
1398
|
+
interface TelemetryPerformanceEvent extends TelemetryCommonFields {
|
|
1399
|
+
class: 'performance';
|
|
1400
|
+
durationMs: number;
|
|
1401
|
+
durationMode: TelemetryDurationMode;
|
|
1402
|
+
}
|
|
1403
|
+
interface BuildTelemetryPerformanceEventInput extends BuildTelemetryCommonInput {
|
|
1404
|
+
durationMs: number;
|
|
1405
|
+
durationMode: TelemetryDurationMode;
|
|
1406
|
+
}
|
|
1407
|
+
type TelemetryEvent = TelemetryErrorEvent | TelemetryLogEvent | TelemetryExpectedOutcomeEvent | TelemetryPerformanceEvent;
|
|
1408
|
+
interface SerializeTelemetryBatchOptions {
|
|
1409
|
+
correlationId: string;
|
|
1410
|
+
sdkPackage: TelemetrySdkPackage;
|
|
1411
|
+
sdkVersion: string;
|
|
1412
|
+
batchId?: string;
|
|
1413
|
+
}
|
|
1414
|
+
interface TelemetryBatchEnvelope {
|
|
1415
|
+
schemaVersion: typeof TELEMETRY_SCHEMA_VERSION;
|
|
1416
|
+
batchId: string;
|
|
1417
|
+
correlationId: string;
|
|
1418
|
+
sdk: {
|
|
1419
|
+
package: TelemetrySdkPackage;
|
|
1420
|
+
version: string;
|
|
1421
|
+
};
|
|
1422
|
+
events: TelemetryEvent[];
|
|
1423
|
+
}
|
|
1424
|
+
/** Build a closed SDK technical-error event. */
|
|
1425
|
+
declare function buildTelemetryErrorEvent(input: BuildTelemetryErrorEventInput): TelemetryErrorEvent;
|
|
1426
|
+
/** Build a typed SDK lifecycle event; arbitrary text is never accepted. */
|
|
1427
|
+
declare function buildTelemetryLogEvent(input: BuildTelemetryLogEventInput): TelemetryLogEvent;
|
|
1428
|
+
/** Build a non-error expected checkout outcome. */
|
|
1429
|
+
declare function buildTelemetryTerminalEvent(input: BuildTelemetryTerminalEventInput): TelemetryExpectedOutcomeEvent;
|
|
1430
|
+
/** Build a monotonic SDK-owned duration measurement. */
|
|
1431
|
+
declare function buildTelemetryPerformanceEvent(input: BuildTelemetryPerformanceEventInput): TelemetryPerformanceEvent;
|
|
1432
|
+
/** Serialize one closed backend-owned v1 telemetry envelope. */
|
|
1433
|
+
declare function serializeTelemetryBatch(events: readonly TelemetryEvent[], options: SerializeTelemetryBatchOptions): string;
|
|
1434
|
+
|
|
1305
1435
|
/** FloPay environment — determines which billing API URL is used. */
|
|
1306
1436
|
type FloPayEnvironment = 'staging' | 'production' | 'local';
|
|
1307
1437
|
/**
|
|
@@ -1333,7 +1463,7 @@ declare function getConfiguredBillingApiUrl(): string;
|
|
|
1333
1463
|
declare function getFloPayEnvironment(): FloPayEnvironment;
|
|
1334
1464
|
|
|
1335
1465
|
/** Current SDK version. */
|
|
1336
|
-
declare const SDK_VERSION = "1.
|
|
1466
|
+
declare const SDK_VERSION = "1.4.1";
|
|
1337
1467
|
/**
|
|
1338
1468
|
* HTTP header the SDK sends on `POST /v1/checkouts/sessions` so the backend
|
|
1339
1469
|
* can decide whether to embed the vault capture block (the hosted PCI card
|
|
@@ -1984,4 +2114,4 @@ declare function generateIdempotencyKey(): string | undefined;
|
|
|
1984
2114
|
*/
|
|
1985
2115
|
declare function resolveIdempotencyKey(supplied?: string): string | undefined;
|
|
1986
2116
|
|
|
1987
|
-
export { type AVSFieldConfig, BILLING_API_URL, BILLING_API_URL_PRODUCTION, BILLING_API_URL_STAGING, BOLD_DARK_APPEARANCE, BOLD_LIGHT_APPEARANCE, BUTTONS_LAYOUT_BOLD_DARK, BUTTONS_LAYOUT_BOLD_LIGHT, BUTTONS_LAYOUT_DARK, BUTTONS_LAYOUT_DEFAULT, BUTTONS_LAYOUT_GLASS_DARK, BUTTONS_LAYOUT_GLASS_LIGHT, BUTTONS_LAYOUT_MINIMAL, BUTTONS_LAYOUT_MODERN_DARK, BUTTONS_LAYOUT_MODERN_LIGHT, BUTTONS_LAYOUT_ROUNDED, type BeforeButtonClickEvent, type BillingDetails, type BillingProvider, type BuildCheckoutDisplayDataOptions, type ButtonsLayoutStyles, type ButtonsLayoutTheme, CA_PROVINCES, COUNTRY_OPTIONS, CURRENCY_MAP, type CardCaptureAdapter, type CardCaptureEventType, type CardCaptureMountOptions, type CardCaptureOutcomeEvent, type CardCaptureProviderId, type CheckoutAccount, type CheckoutButtonMethod, type CheckoutDisplayData, type CheckoutGateway, type CheckoutGateways, type CheckoutItem, type CheckoutMode, type CheckoutModeKind, type CheckoutProcessError, type CheckoutProcessingPending, type CheckoutProduct, type CheckoutProductType, type CheckoutSession, type CheckoutSessionProduct, type CheckoutSessionResult, type CheckoutSubscription, type ConfirmCardPaymentParams, type ConfirmCardPaymentResult, type ConfirmPaymentParams, type CountryOption, type CreateCustomerParams, type CreatePaymentMethodResult, type CreateSessionParams, type CurrencyInfo, type Customer, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_APPEARANCE, DEFAULT_CURRENCY, type DeclineEvent, type DisplayLineItem, ELEMENT_TYPES, type ElementChangeEvent, type ElementOptions, type ElementType, FLAT_APPEARANCE, FLO_SDK_VERSION_HEADER, type FloPayAppearance, type FloPayConfig, type FloPayEnvironment, FloPayError, type FloPayErrorType, type FloPayThemeVariables, GLASS_DARK_APPEARANCE, GLASS_LIGHT_APPEARANCE, type GatewayEnvironment, IDEMPOTENCY_IN_PROGRESS_CODE, IDEMPOTENCY_KEY_HEADER, type InlineSessionDraft, type InlineSessionParams, type InlineSessionPatch, type LineItem, MAX_IDEMPOTENCY_KEY_LENGTH, MODERN_DARK_APPEARANCE, MODERN_LIGHT_APPEARANCE, type MountedElement, NIGHT_APPEARANCE, type NormalizedCheckoutSession, type NormalizedGatewayEnvironment, type PaymentProviderAdapter, type PaymentResult, type PriceData, type ProcessPaymentParams, type RecurringInterval, SDK_VERSION, STRIPE_EXPRESS_METHODS, STRIPE_METHOD_AMOUNT_LIMITS, STRIPE_METHOD_COUNTRIES, STRIPE_METHOD_CURRENCIES, STRIPE_METHOD_MATRIX, SUPPORTED_CARD_BRANDS, type StateOption, type StripeMethodEntry, type StripeMethodThemeVariant, THEMES, type TagsData, type ThemeBundle, type ThemeBundleId, type ThemeId, type TokenizedBody, US_STATES, type UpdateCustomerParams, type VaultCaptureBlock, type VaultCaptureResultMessage, type VaultCardFieldKey, type VaultCardThemeColors, type WebhookEvent, apiError, authenticationError, buildCheckoutDisplayData, buildItemPayload, buildProductPayload, buildSubscriptionPayload, configureFlopay, filterStripeMethodsByAmount, filterStripeMethodsByCountry, filterStripeMethodsByCurrency, foldIntoProducts, generateIdempotencyKey, getConfiguredBillingApiUrl, getCountryByCode, getCurrencyByCountry, getFloPayEnvironment, getPostalCodeExample, getPostalCodeLabel, getStateFromPostalCode, getStateLabel, getStateOptions, getStripeMethodDisplayName, hasVendoredStripeMethodLogo, isAVSEnabled, isAVSFieldVisible, isPostalCodeSupported, isSetupIntentClientSecret, isValidPostalCode, isValidPublishableKey, isValidSecretKey, needsStripeMethodExplicitConfirm, networkError, normalizeGatewayEnvironment, partitionStripeMethods, rateLimitError, resolveAVSConfig, resolveBillingApiUrl, resolveButtonsLayoutTheme, resolveIdempotencyKey, resolveSessionCurrency, resolveStripeMethodBrandVariant, resolveTheme, stripeExpressMethodToOptionKey, validationError };
|
|
2117
|
+
export { type AVSFieldConfig, BILLING_API_URL, BILLING_API_URL_PRODUCTION, BILLING_API_URL_STAGING, BOLD_DARK_APPEARANCE, BOLD_LIGHT_APPEARANCE, BUTTONS_LAYOUT_BOLD_DARK, BUTTONS_LAYOUT_BOLD_LIGHT, BUTTONS_LAYOUT_DARK, BUTTONS_LAYOUT_DEFAULT, BUTTONS_LAYOUT_GLASS_DARK, BUTTONS_LAYOUT_GLASS_LIGHT, BUTTONS_LAYOUT_MINIMAL, BUTTONS_LAYOUT_MODERN_DARK, BUTTONS_LAYOUT_MODERN_LIGHT, BUTTONS_LAYOUT_ROUNDED, type BeforeButtonClickEvent, type BillingDetails, type BillingProvider, type BuildCheckoutDisplayDataOptions, type BuildTelemetryErrorEventInput, type BuildTelemetryLogEventInput, type BuildTelemetryPerformanceEventInput, type BuildTelemetryTerminalEventInput, type ButtonsLayoutStyles, type ButtonsLayoutTheme, CA_PROVINCES, COUNTRY_OPTIONS, CURRENCY_MAP, type CardCaptureAdapter, type CardCaptureEventType, type CardCaptureMountOptions, type CardCaptureOutcomeEvent, type CardCaptureProviderId, type CardThreeDsLifecycle, type CheckoutAccount, type CheckoutButtonMethod, type CheckoutDisplayData, type CheckoutGateway, type CheckoutGateways, type CheckoutItem, type CheckoutMode, type CheckoutModeKind, type CheckoutProcessError, type CheckoutProcessingPending, type CheckoutProduct, type CheckoutProductType, type CheckoutSession, type CheckoutSessionProduct, type CheckoutSessionResult, type CheckoutSubscription, type ConfirmCardPaymentParams, type ConfirmCardPaymentResult, type ConfirmPaymentParams, type CountryOption, type CreateCustomerParams, type CreatePaymentMethodResult, type CreateSessionParams, type CurrencyInfo, type Customer, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DEFAULT_APPEARANCE, DEFAULT_CURRENCY, type DeclineEvent, type DisplayLineItem, ELEMENT_TYPES, type ElementChangeEvent, type ElementOptions, type ElementType, FLAT_APPEARANCE, FLO_SDK_VERSION_HEADER, type FloPayAppearance, type FloPayConfig, type FloPayEnvironment, FloPayError, type FloPayErrorType, type FloPayThemeVariables, GLASS_DARK_APPEARANCE, GLASS_LIGHT_APPEARANCE, type GatewayEnvironment, IDEMPOTENCY_IN_PROGRESS_CODE, IDEMPOTENCY_KEY_HEADER, type InlineSessionDraft, type InlineSessionParams, type InlineSessionPatch, type LineItem, MAX_IDEMPOTENCY_KEY_LENGTH, MODERN_DARK_APPEARANCE, MODERN_LIGHT_APPEARANCE, type MountedElement, NIGHT_APPEARANCE, type NormalizedCheckoutSession, type NormalizedGatewayEnvironment, type PaymentProviderAdapter, type PaymentResult, type PriceData, type ProcessPaymentParams, type RecurringInterval, SDK_VERSION, STRIPE_EXPRESS_METHODS, STRIPE_METHOD_AMOUNT_LIMITS, STRIPE_METHOD_COUNTRIES, STRIPE_METHOD_CURRENCIES, STRIPE_METHOD_MATRIX, SUPPORTED_CARD_BRANDS, type SerializeTelemetryBatchOptions, type StateOption, type StripeMethodEntry, type StripeMethodThemeVariant, TELEMETRY_ERROR_CODES, TELEMETRY_LOG_NAMES, TELEMETRY_MAX_BATCH_BYTES, TELEMETRY_MAX_BATCH_EVENTS, TELEMETRY_SCHEMA_VERSION, TELEMETRY_SDK_PACKAGES, THEMES, type TagsData, type TelemetryBatchEnvelope, type TelemetryCheckoutMode, type TelemetryDurationMode, type TelemetryErrorCode, type TelemetryErrorEvent, type TelemetryEvent, type TelemetryEventClass, type TelemetryExpectedOutcome, type TelemetryExpectedOutcomeEvent, type TelemetryLayout, type TelemetryLogEvent, type TelemetryLogName, type TelemetryPaymentMethodCategory, type TelemetryPerformanceEvent, type TelemetryProvider, type TelemetryProviderInput, type TelemetryRequestCategory, type TelemetrySdkPackage, type TelemetryStage, type TelemetryStatusClass, type ThemeBundle, type ThemeBundleId, type ThemeId, type TokenizedBody, US_STATES, type UpdateCustomerParams, type VaultCaptureBlock, type VaultCaptureResultMessage, type VaultCardFieldKey, type VaultCardThemeColors, type WebhookEvent, apiError, authenticationError, buildCheckoutDisplayData, buildItemPayload, buildProductPayload, buildSubscriptionPayload, buildTelemetryErrorEvent, buildTelemetryLogEvent, buildTelemetryPerformanceEvent, buildTelemetryTerminalEvent, configureFlopay, filterStripeMethodsByAmount, filterStripeMethodsByCountry, filterStripeMethodsByCurrency, foldIntoProducts, generateIdempotencyKey, getConfiguredBillingApiUrl, getCountryByCode, getCurrencyByCountry, getFloPayEnvironment, getPostalCodeExample, getPostalCodeLabel, getStateFromPostalCode, getStateLabel, getStateOptions, getStripeMethodDisplayName, hasVendoredStripeMethodLogo, isAVSEnabled, isAVSFieldVisible, isPostalCodeSupported, isSetupIntentClientSecret, isValidPostalCode, isValidPublishableKey, isValidSecretKey, needsStripeMethodExplicitConfirm, networkError, normalizeGatewayEnvironment, partitionStripeMethods, rateLimitError, resolveAVSConfig, resolveBillingApiUrl, resolveButtonsLayoutTheme, resolveIdempotencyKey, resolveSessionCurrency, resolveStripeMethodBrandVariant, resolveTheme, serializeTelemetryBatch, stripeExpressMethodToOptionKey, validationError };
|