@flopay/react 1.9.20 → 1.9.21
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 +6 -4
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +8 -8
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -392,6 +392,8 @@ interface FloPayCheckoutProps {
|
|
|
392
392
|
className?: string;
|
|
393
393
|
/** Seed an initial checkout error message for the rendered payment form. */
|
|
394
394
|
initialErrorMessage?: string | null;
|
|
395
|
+
/** Resume a backend-created PayPal Order/Subscription instead of creating another one. */
|
|
396
|
+
initialPayPalOrderId?: string;
|
|
395
397
|
/**
|
|
396
398
|
* Override the default `SplitCardForm`. When provided, children are rendered
|
|
397
399
|
* inside the initialized `FloPayProvider` with session props auto-injected.
|
|
@@ -441,7 +443,7 @@ interface FloPayCheckoutProps {
|
|
|
441
443
|
* />
|
|
442
444
|
* ```
|
|
443
445
|
*/
|
|
444
|
-
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, enabledPaymentMethods: enabledPaymentMethodsProp, 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;
|
|
446
|
+
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, 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;
|
|
445
447
|
|
|
446
448
|
/**
|
|
447
449
|
* Returns the current `FloPay` instance, or `null` if the provider
|
|
@@ -746,6 +748,8 @@ interface SplitCardFormProps {
|
|
|
746
748
|
providerObjectType?: PayPalProviderObjectType;
|
|
747
749
|
/** Backend-advertised non-popup presentation for one-time PayPal Orders. */
|
|
748
750
|
approvalPresentation?: _flopay_shared.PayPalApprovalPresentation;
|
|
751
|
+
/** Backend-created PayPal object to resume without creating a replacement. */
|
|
752
|
+
existingOrderId?: string;
|
|
749
753
|
};
|
|
750
754
|
/** Whether the active session represents a subscription (drives direct PayPal intent). */
|
|
751
755
|
isSubscription?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -392,6 +392,8 @@ interface FloPayCheckoutProps {
|
|
|
392
392
|
className?: string;
|
|
393
393
|
/** Seed an initial checkout error message for the rendered payment form. */
|
|
394
394
|
initialErrorMessage?: string | null;
|
|
395
|
+
/** Resume a backend-created PayPal Order/Subscription instead of creating another one. */
|
|
396
|
+
initialPayPalOrderId?: string;
|
|
395
397
|
/**
|
|
396
398
|
* Override the default `SplitCardForm`. When provided, children are rendered
|
|
397
399
|
* inside the initialized `FloPayProvider` with session props auto-injected.
|
|
@@ -441,7 +443,7 @@ interface FloPayCheckoutProps {
|
|
|
441
443
|
* />
|
|
442
444
|
* ```
|
|
443
445
|
*/
|
|
444
|
-
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, enabledPaymentMethods: enabledPaymentMethodsProp, 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;
|
|
446
|
+
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, 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;
|
|
445
447
|
|
|
446
448
|
/**
|
|
447
449
|
* Returns the current `FloPay` instance, or `null` if the provider
|
|
@@ -746,6 +748,8 @@ interface SplitCardFormProps {
|
|
|
746
748
|
providerObjectType?: PayPalProviderObjectType;
|
|
747
749
|
/** Backend-advertised non-popup presentation for one-time PayPal Orders. */
|
|
748
750
|
approvalPresentation?: _flopay_shared.PayPalApprovalPresentation;
|
|
751
|
+
/** Backend-created PayPal object to resume without creating a replacement. */
|
|
752
|
+
existingOrderId?: string;
|
|
749
753
|
};
|
|
750
754
|
/** Whether the active session represents a subscription (drives direct PayPal intent). */
|
|
751
755
|
isSubscription?: boolean;
|