@flopay/react 1.9.8 → 1.9.10
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 +59 -13
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +8 -8
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _flopay_shared from '@flopay/shared';
|
|
2
|
-
import { InlineSessionDraft, CheckoutButtonMethod, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, FloPayAppearance, ButtonsLayoutTheme, ButtonsLayoutStyles, PaymentResult, CheckoutSession, FloPayError, DeclineEvent, InlineSessionPatch, GatewayEnvironment, PayPalProviderObjectType, TokenizedBody, FloInstrumentEvent, BeforeButtonClickEvent, CheckoutMode, AVSFieldConfig, CardCaptureAdapter, VaultCardThemeColors } from '@flopay/shared';
|
|
2
|
+
import { InlineSessionDraft, CheckoutButtonMethod, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, FloPayAppearance, ButtonsLayoutTheme, ButtonsLayoutStyles, PaymentResult, CheckoutSession, FloPayError, DeclineEvent, InlineSessionPatch, GatewayEnvironment, PayPalProviderObjectType, PayPalApprovalPresentation, TokenizedBody, FloInstrumentEvent, BeforeButtonClickEvent, CheckoutMode, AVSFieldConfig, CardCaptureAdapter, VaultCardThemeColors } from '@flopay/shared';
|
|
3
3
|
export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, FloInstrumentEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export { FloPayCardSetup, FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupError, FloPayCardSetupProps } from './card-setup-entry.cjs';
|
|
@@ -153,6 +153,11 @@ interface DirectPayPalButtonProps {
|
|
|
153
153
|
* sessions continue to derive the flow from `isSubscription`.
|
|
154
154
|
*/
|
|
155
155
|
providerObjectType?: PayPalProviderObjectType;
|
|
156
|
+
/**
|
|
157
|
+
* Backend-advertised approval presentation. The backing session value is
|
|
158
|
+
* authoritative when both are supplied. No return URL can be provided here.
|
|
159
|
+
*/
|
|
160
|
+
approvalPresentation?: PayPalApprovalPresentation;
|
|
156
161
|
/**
|
|
157
162
|
* If provided, called with the tokenized body once PayPal capture
|
|
158
163
|
* completes. When omitted, the component processes payment internally.
|
|
@@ -704,6 +709,8 @@ interface SplitCardFormProps {
|
|
|
704
709
|
* Retained as a fallback for integrations that do not supply a session.
|
|
705
710
|
*/
|
|
706
711
|
providerObjectType?: PayPalProviderObjectType;
|
|
712
|
+
/** Backend-advertised non-popup presentation for one-time PayPal Orders. */
|
|
713
|
+
approvalPresentation?: _flopay_shared.PayPalApprovalPresentation;
|
|
707
714
|
};
|
|
708
715
|
/** Whether the active session represents a subscription (drives direct PayPal intent). */
|
|
709
716
|
isSubscription?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _flopay_shared from '@flopay/shared';
|
|
2
|
-
import { InlineSessionDraft, CheckoutButtonMethod, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, FloPayAppearance, ButtonsLayoutTheme, ButtonsLayoutStyles, PaymentResult, CheckoutSession, FloPayError, DeclineEvent, InlineSessionPatch, GatewayEnvironment, PayPalProviderObjectType, TokenizedBody, FloInstrumentEvent, BeforeButtonClickEvent, CheckoutMode, AVSFieldConfig, CardCaptureAdapter, VaultCardThemeColors } from '@flopay/shared';
|
|
2
|
+
import { InlineSessionDraft, CheckoutButtonMethod, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, FloPayAppearance, ButtonsLayoutTheme, ButtonsLayoutStyles, PaymentResult, CheckoutSession, FloPayError, DeclineEvent, InlineSessionPatch, GatewayEnvironment, PayPalProviderObjectType, PayPalApprovalPresentation, TokenizedBody, FloInstrumentEvent, BeforeButtonClickEvent, CheckoutMode, AVSFieldConfig, CardCaptureAdapter, VaultCardThemeColors } from '@flopay/shared';
|
|
3
3
|
export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, FloInstrumentEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export { FloPayCardSetup, FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupError, FloPayCardSetupProps } from './card-setup-entry.js';
|
|
@@ -153,6 +153,11 @@ interface DirectPayPalButtonProps {
|
|
|
153
153
|
* sessions continue to derive the flow from `isSubscription`.
|
|
154
154
|
*/
|
|
155
155
|
providerObjectType?: PayPalProviderObjectType;
|
|
156
|
+
/**
|
|
157
|
+
* Backend-advertised approval presentation. The backing session value is
|
|
158
|
+
* authoritative when both are supplied. No return URL can be provided here.
|
|
159
|
+
*/
|
|
160
|
+
approvalPresentation?: PayPalApprovalPresentation;
|
|
156
161
|
/**
|
|
157
162
|
* If provided, called with the tokenized body once PayPal capture
|
|
158
163
|
* completes. When omitted, the component processes payment internally.
|
|
@@ -704,6 +709,8 @@ interface SplitCardFormProps {
|
|
|
704
709
|
* Retained as a fallback for integrations that do not supply a session.
|
|
705
710
|
*/
|
|
706
711
|
providerObjectType?: PayPalProviderObjectType;
|
|
712
|
+
/** Backend-advertised non-popup presentation for one-time PayPal Orders. */
|
|
713
|
+
approvalPresentation?: _flopay_shared.PayPalApprovalPresentation;
|
|
707
714
|
};
|
|
708
715
|
/** Whether the active session represents a subscription (drives direct PayPal intent). */
|
|
709
716
|
isSubscription?: boolean;
|