@flopay/react 1.4.24 → 1.6.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
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FloPay, FloPayElements } from '@flopay/js';
3
3
  import * as _flopay_shared from '@flopay/shared';
4
- import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
4
+ import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, PayPalProviderObjectType, CardCaptureAdapter, VaultCardThemeColors, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
5
5
  export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
6
6
  export { FloPayCardSetup, FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupError, FloPayCardSetupProps } from './card-setup-entry.cjs';
7
7
 
@@ -547,6 +547,7 @@ interface SplitCardFormProps {
547
547
  directPaypal?: {
548
548
  clientId: string;
549
549
  environment?: GatewayEnvironment;
550
+ providerObjectType?: PayPalProviderObjectType;
550
551
  };
551
552
  /** Whether the active session represents a subscription (drives direct PayPal intent). */
552
553
  isSubscription?: boolean;
@@ -758,6 +759,15 @@ interface DirectPayPalButtonProps {
758
759
  currency: string;
759
760
  /** Whether the session is a subscription (drives intent + flow selection). */
760
761
  isSubscription: boolean;
762
+ /**
763
+ * Provider object the backend advertised for this PayPal continuation.
764
+ * When omitted, legacy sessions continue to derive the flow from
765
+ * `isSubscription`. An advertised `'order'`/`'setup_token'` opts intent and
766
+ * process requests into the Flo-owned `paypal_vaulted` payment-method
767
+ * channel; an advertised `'subscription'` or an omission keeps the released
768
+ * `paypal` requests byte-identical.
769
+ */
770
+ providerObjectType?: PayPalProviderObjectType;
761
771
  /**
762
772
  * If provided, called with the tokenized body once PayPal capture
763
773
  * completes. When omitted, the component processes payment internally.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FloPay, FloPayElements } from '@flopay/js';
3
3
  import * as _flopay_shared from '@flopay/shared';
4
- import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
4
+ import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, PayPalProviderObjectType, CardCaptureAdapter, VaultCardThemeColors, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
5
5
  export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
6
6
  export { FloPayCardSetup, FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupError, FloPayCardSetupProps } from './card-setup-entry.js';
7
7
 
@@ -547,6 +547,7 @@ interface SplitCardFormProps {
547
547
  directPaypal?: {
548
548
  clientId: string;
549
549
  environment?: GatewayEnvironment;
550
+ providerObjectType?: PayPalProviderObjectType;
550
551
  };
551
552
  /** Whether the active session represents a subscription (drives direct PayPal intent). */
552
553
  isSubscription?: boolean;
@@ -758,6 +759,15 @@ interface DirectPayPalButtonProps {
758
759
  currency: string;
759
760
  /** Whether the session is a subscription (drives intent + flow selection). */
760
761
  isSubscription: boolean;
762
+ /**
763
+ * Provider object the backend advertised for this PayPal continuation.
764
+ * When omitted, legacy sessions continue to derive the flow from
765
+ * `isSubscription`. An advertised `'order'`/`'setup_token'` opts intent and
766
+ * process requests into the Flo-owned `paypal_vaulted` payment-method
767
+ * channel; an advertised `'subscription'` or an omission keeps the released
768
+ * `paypal` requests byte-identical.
769
+ */
770
+ providerObjectType?: PayPalProviderObjectType;
761
771
  /**
762
772
  * If provided, called with the tokenized body once PayPal capture
763
773
  * completes. When omitted, the component processes payment internally.