@flopay/react 1.9.30 → 1.10.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 +69 -1
- package/dist/card-setup-entry.cjs +2 -2
- package/dist/card-setup-entry.mjs +1 -1
- package/dist/{chunk-CSBYK62Y.mjs → chunk-I4TPZWBS.mjs} +1 -1
- package/dist/chunk-M7R46EDF.mjs +1 -0
- package/dist/chunk-OYOJA6FI.mjs +1 -0
- package/dist/chunk-R73QOXY5.mjs +1 -0
- package/dist/chunk-U3PMJDD4.mjs +1 -0
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.mjs +7 -7
- package/dist/payment-method-setup-entry.cjs +6 -0
- package/dist/payment-method-setup-entry.d.cts +16 -0
- package/dist/payment-method-setup-entry.d.ts +16 -0
- package/dist/payment-method-setup-entry.mjs +1 -0
- package/dist/payment-method-setup-paypal-MWDJVYVO.mjs +1 -0
- package/dist/payment-method-setup-stripe-NCEEB7GN.mjs +1 -0
- package/dist/payment-method-setup-surface-BQltFPXs.d.cts +45 -0
- package/dist/payment-method-setup-surface-Zf-DUxA0.d.ts +45 -0
- package/package.json +8 -3
package/dist/index.d.cts
CHANGED
|
@@ -3,6 +3,8 @@ import { InlineSessionDraft, CheckoutButtonMethod, CheckoutProduct, CheckoutItem
|
|
|
3
3
|
export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, FloInstrumentEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, WalletPresentation, dropThirdPartyOnlyError } from '@flopay/shared';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export { FloPayCardSetup, FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupError, FloPayCardSetupProps } from './card-setup-entry.cjs';
|
|
6
|
+
import { F as FloPayPaymentMethodSetupProps } from './payment-method-setup-surface-BQltFPXs.cjs';
|
|
7
|
+
export { a as FloPayPaymentMethodSetupCancelEvent, b as FloPayPaymentMethodSetupCompleteEvent, c as FloPayPaymentMethodSetupDeclineEvent } from './payment-method-setup-surface-BQltFPXs.cjs';
|
|
6
8
|
import { FloPay } from '@flopay/js';
|
|
7
9
|
|
|
8
10
|
interface FloPayAutomaticPaymentSuccessEvent {
|
|
@@ -456,6 +458,14 @@ interface FloPayCheckoutProps {
|
|
|
456
458
|
*/
|
|
457
459
|
declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onInstrument, onDecline, onCountryChange, onZipChange, showPayPal, showStripe, walletPresentation, enabledPaymentMethods: enabledPaymentMethodsProp, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, submitLabel, className, initialErrorMessage, initialPayPalOrderId, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
|
|
458
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Renders every payment method a setup session advertises — the hosted card
|
|
463
|
+
* widget, Stripe wallets/APMs in setup mode, and the PayPal vault flow — and
|
|
464
|
+
* saves the buyer's choice without a purchase. The advertisement is the single
|
|
465
|
+
* source of truth.
|
|
466
|
+
*/
|
|
467
|
+
declare function FloPayPaymentMethodSetup(props: FloPayPaymentMethodSetupProps): React.ReactElement;
|
|
468
|
+
|
|
459
469
|
/**
|
|
460
470
|
* Returns the current `FloPay` instance, or `null` if the provider
|
|
461
471
|
* is still loading (i.e. the `loadFloPay()` promise has not resolved yet).
|
|
@@ -885,4 +895,4 @@ interface VaultCardFieldsProps {
|
|
|
885
895
|
*/
|
|
886
896
|
declare function VaultCardFields({ capture, html, messageToken, expectedOrigin, theme, submitLabel, containerStyle, onReady, onError, onValidation, }: VaultCardFieldsProps): React.ReactElement;
|
|
887
897
|
|
|
888
|
-
export { type CheckoutState, DirectPayPalButton, type DirectPayPalButtonProps, type DirectPayPalInitializationState, FloPayAutomaticPaymentButton, type FloPayAutomaticPaymentButtonProps, type FloPayAutomaticPaymentSuccessEvent, FloPayCheckout, type FloPayCheckoutProps, FloPayProvider, type FloPayProviderProps, SplitCardForm, type SplitCardFormProps, VaultCardFields, type VaultCardFieldsProps, useCheckout, useFloPay, usePayPalFloPay };
|
|
898
|
+
export { type CheckoutState, DirectPayPalButton, type DirectPayPalButtonProps, type DirectPayPalInitializationState, FloPayAutomaticPaymentButton, type FloPayAutomaticPaymentButtonProps, type FloPayAutomaticPaymentSuccessEvent, FloPayCheckout, type FloPayCheckoutProps, FloPayPaymentMethodSetup, FloPayPaymentMethodSetupProps, FloPayProvider, type FloPayProviderProps, SplitCardForm, type SplitCardFormProps, VaultCardFields, type VaultCardFieldsProps, useCheckout, useFloPay, usePayPalFloPay };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { InlineSessionDraft, CheckoutButtonMethod, CheckoutProduct, CheckoutItem
|
|
|
3
3
|
export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, FloInstrumentEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, WalletPresentation, dropThirdPartyOnlyError } from '@flopay/shared';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export { FloPayCardSetup, FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupError, FloPayCardSetupProps } from './card-setup-entry.js';
|
|
6
|
+
import { F as FloPayPaymentMethodSetupProps } from './payment-method-setup-surface-Zf-DUxA0.js';
|
|
7
|
+
export { a as FloPayPaymentMethodSetupCancelEvent, b as FloPayPaymentMethodSetupCompleteEvent, c as FloPayPaymentMethodSetupDeclineEvent } from './payment-method-setup-surface-Zf-DUxA0.js';
|
|
6
8
|
import { FloPay } from '@flopay/js';
|
|
7
9
|
|
|
8
10
|
interface FloPayAutomaticPaymentSuccessEvent {
|
|
@@ -456,6 +458,14 @@ interface FloPayCheckoutProps {
|
|
|
456
458
|
*/
|
|
457
459
|
declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onInstrument, onDecline, onCountryChange, onZipChange, showPayPal, showStripe, walletPresentation, enabledPaymentMethods: enabledPaymentMethodsProp, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, submitLabel, className, initialErrorMessage, initialPayPalOrderId, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
|
|
458
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Renders every payment method a setup session advertises — the hosted card
|
|
463
|
+
* widget, Stripe wallets/APMs in setup mode, and the PayPal vault flow — and
|
|
464
|
+
* saves the buyer's choice without a purchase. The advertisement is the single
|
|
465
|
+
* source of truth.
|
|
466
|
+
*/
|
|
467
|
+
declare function FloPayPaymentMethodSetup(props: FloPayPaymentMethodSetupProps): React.ReactElement;
|
|
468
|
+
|
|
459
469
|
/**
|
|
460
470
|
* Returns the current `FloPay` instance, or `null` if the provider
|
|
461
471
|
* is still loading (i.e. the `loadFloPay()` promise has not resolved yet).
|
|
@@ -885,4 +895,4 @@ interface VaultCardFieldsProps {
|
|
|
885
895
|
*/
|
|
886
896
|
declare function VaultCardFields({ capture, html, messageToken, expectedOrigin, theme, submitLabel, containerStyle, onReady, onError, onValidation, }: VaultCardFieldsProps): React.ReactElement;
|
|
887
897
|
|
|
888
|
-
export { type CheckoutState, DirectPayPalButton, type DirectPayPalButtonProps, type DirectPayPalInitializationState, FloPayAutomaticPaymentButton, type FloPayAutomaticPaymentButtonProps, type FloPayAutomaticPaymentSuccessEvent, FloPayCheckout, type FloPayCheckoutProps, FloPayProvider, type FloPayProviderProps, SplitCardForm, type SplitCardFormProps, VaultCardFields, type VaultCardFieldsProps, useCheckout, useFloPay, usePayPalFloPay };
|
|
898
|
+
export { type CheckoutState, DirectPayPalButton, type DirectPayPalButtonProps, type DirectPayPalInitializationState, FloPayAutomaticPaymentButton, type FloPayAutomaticPaymentButtonProps, type FloPayAutomaticPaymentSuccessEvent, FloPayCheckout, type FloPayCheckoutProps, FloPayPaymentMethodSetup, FloPayPaymentMethodSetupProps, FloPayProvider, type FloPayProviderProps, SplitCardForm, type SplitCardFormProps, VaultCardFields, type VaultCardFieldsProps, useCheckout, useFloPay, usePayPalFloPay };
|