@flopay/react 1.3.4 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -66,6 +66,8 @@ interface FloPayCheckoutProps {
66
66
  createSession?: InlineSessionDraft;
67
67
  /** Billing API base URL. Defaults to the shared `BILLING_API_URL` constant. */
68
68
  billingApiUrl?: string;
69
+ /** Flo-owned privacy-safe telemetry is enabled by default; set `false` to opt out. */
70
+ telemetry?: boolean;
69
71
  /** Visual appearance for payment elements. */
70
72
  appearance?: FloPayAppearance;
71
73
  /** Locale for payment elements (default: 'auto'). */
@@ -233,7 +235,7 @@ interface FloPayCheckoutProps {
233
235
  * />
234
236
  * ```
235
237
  */
236
- declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onDecline, onFullNameChange, onCountryChange, onZipChange, showPayPal, showStripe, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, submitLabel, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
238
+ declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onDecline, onFullNameChange, onCountryChange, onZipChange, showPayPal, showStripe, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, submitLabel, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
237
239
 
238
240
  /**
239
241
  * Returns the current `FloPay` instance, or `null` if the provider
@@ -879,6 +881,8 @@ interface DirectPayPalButtonProps {
879
881
  * binding takes effect (PayPal's render() options aren't live-updatable).
880
882
  */
881
883
  existingOrderId?: string;
884
+ /** Flo-owned privacy-safe telemetry is enabled by default; set `false` to opt out. */
885
+ telemetry?: boolean;
882
886
  /**
883
887
  * When true, renders an on-screen lifecycle tracer panel above the button
884
888
  * (mount, loadScript, eligibility, render, errors). Intended for debugging
@@ -887,15 +891,8 @@ interface DirectPayPalButtonProps {
887
891
  */
888
892
  debug?: boolean;
889
893
  }
890
- /**
891
- * Direct PayPal renderer powered by the official PayPal JS SDK.
892
- *
893
- * Renders inside Facebook / Instagram / Meta in-app browsers where Stripe's
894
- * PayPal ExpressCheckoutElement breaks. Selection between this and the Stripe-
895
- * rendered PayPal happens at the caller site based on whether the session
896
- * advertises `gateways.paypal.publishableKey`.
897
- */
898
- declare function DirectPayPalButton({ sessionId, nonce, billingApiUrl, email, clientId, environment, currency, isSubscription, onTokenizedBody, onComplete, onErrorChange, onDecline, onTechnicalFailure, isProcessing, onLoadStateChange, onButtonClick, runBeforeButtonClick, session, existingOrderId, debug, }: DirectPayPalButtonProps): React.ReactElement | null;
894
+ /** Public direct-PayPal surface: telemetry accepts only the boolean opt-out. */
895
+ declare function DirectPayPalButton(props: DirectPayPalButtonProps): React.ReactElement | null;
899
896
 
900
897
  interface FloPayAutomaticPaymentSuccessEvent {
901
898
  result: PaymentResult;
package/dist/index.d.ts CHANGED
@@ -66,6 +66,8 @@ interface FloPayCheckoutProps {
66
66
  createSession?: InlineSessionDraft;
67
67
  /** Billing API base URL. Defaults to the shared `BILLING_API_URL` constant. */
68
68
  billingApiUrl?: string;
69
+ /** Flo-owned privacy-safe telemetry is enabled by default; set `false` to opt out. */
70
+ telemetry?: boolean;
69
71
  /** Visual appearance for payment elements. */
70
72
  appearance?: FloPayAppearance;
71
73
  /** Locale for payment elements (default: 'auto'). */
@@ -233,7 +235,7 @@ interface FloPayCheckoutProps {
233
235
  * />
234
236
  * ```
235
237
  */
236
- declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onDecline, onFullNameChange, onCountryChange, onZipChange, showPayPal, showStripe, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, submitLabel, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
238
+ declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onDecline, onFullNameChange, onCountryChange, onZipChange, showPayPal, showStripe, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, submitLabel, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
237
239
 
238
240
  /**
239
241
  * Returns the current `FloPay` instance, or `null` if the provider
@@ -879,6 +881,8 @@ interface DirectPayPalButtonProps {
879
881
  * binding takes effect (PayPal's render() options aren't live-updatable).
880
882
  */
881
883
  existingOrderId?: string;
884
+ /** Flo-owned privacy-safe telemetry is enabled by default; set `false` to opt out. */
885
+ telemetry?: boolean;
882
886
  /**
883
887
  * When true, renders an on-screen lifecycle tracer panel above the button
884
888
  * (mount, loadScript, eligibility, render, errors). Intended for debugging
@@ -887,15 +891,8 @@ interface DirectPayPalButtonProps {
887
891
  */
888
892
  debug?: boolean;
889
893
  }
890
- /**
891
- * Direct PayPal renderer powered by the official PayPal JS SDK.
892
- *
893
- * Renders inside Facebook / Instagram / Meta in-app browsers where Stripe's
894
- * PayPal ExpressCheckoutElement breaks. Selection between this and the Stripe-
895
- * rendered PayPal happens at the caller site based on whether the session
896
- * advertises `gateways.paypal.publishableKey`.
897
- */
898
- declare function DirectPayPalButton({ sessionId, nonce, billingApiUrl, email, clientId, environment, currency, isSubscription, onTokenizedBody, onComplete, onErrorChange, onDecline, onTechnicalFailure, isProcessing, onLoadStateChange, onButtonClick, runBeforeButtonClick, session, existingOrderId, debug, }: DirectPayPalButtonProps): React.ReactElement | null;
894
+ /** Public direct-PayPal surface: telemetry accepts only the boolean opt-out. */
895
+ declare function DirectPayPalButton(props: DirectPayPalButtonProps): React.ReactElement | null;
899
896
 
900
897
  interface FloPayAutomaticPaymentSuccessEvent {
901
898
  result: PaymentResult;