@flopay/react 1.4.13 → 1.4.16

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
@@ -113,6 +113,22 @@ interface FloPayCheckoutProps {
113
113
  * bootstrap-time validation error.
114
114
  */
115
115
  showStripe?: boolean;
116
+ /**
117
+ * Override the wallet/APM list the session advertises via
118
+ * `gateways.stripe.enabledPaymentMethods`. Omit (the default) and the
119
+ * backend's per-session list is used, which is what a normal integration
120
+ * wants.
121
+ *
122
+ * Pass an explicit list to narrow it, or `[]` to render the hosted card form
123
+ * on its own — the empty array means "no methods enabled", not "fall back to
124
+ * the backend list". This is the supported way to get a card-only checkout:
125
+ * `showStripe={false}` also gates the vault, so it takes the card form down
126
+ * with the wallets.
127
+ *
128
+ * Narrowing only. Naming a method the backend hasn't enabled for the session
129
+ * will not turn it on.
130
+ */
131
+ enabledPaymentMethods?: string[];
116
132
  /**
117
133
  * @deprecated Apple Pay availability is now driven by
118
134
  * `gateways.stripe.enabledPaymentMethods` on the per-session response from
@@ -244,7 +260,7 @@ interface FloPayCheckoutProps {
244
260
  * />
245
261
  * ```
246
262
  */
247
- declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onDecline, onCountryChange, onZipChange, showPayPal, showStripe, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
263
+ declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, 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, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
248
264
 
249
265
  /**
250
266
  * Returns the current `FloPay` instance, or `null` if the provider
package/dist/index.d.ts CHANGED
@@ -113,6 +113,22 @@ interface FloPayCheckoutProps {
113
113
  * bootstrap-time validation error.
114
114
  */
115
115
  showStripe?: boolean;
116
+ /**
117
+ * Override the wallet/APM list the session advertises via
118
+ * `gateways.stripe.enabledPaymentMethods`. Omit (the default) and the
119
+ * backend's per-session list is used, which is what a normal integration
120
+ * wants.
121
+ *
122
+ * Pass an explicit list to narrow it, or `[]` to render the hosted card form
123
+ * on its own — the empty array means "no methods enabled", not "fall back to
124
+ * the backend list". This is the supported way to get a card-only checkout:
125
+ * `showStripe={false}` also gates the vault, so it takes the card form down
126
+ * with the wallets.
127
+ *
128
+ * Narrowing only. Naming a method the backend hasn't enabled for the session
129
+ * will not turn it on.
130
+ */
131
+ enabledPaymentMethods?: string[];
116
132
  /**
117
133
  * @deprecated Apple Pay availability is now driven by
118
134
  * `gateways.stripe.enabledPaymentMethods` on the per-session response from
@@ -244,7 +260,7 @@ interface FloPayCheckoutProps {
244
260
  * />
245
261
  * ```
246
262
  */
247
- declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, onDecline, onCountryChange, onZipChange, showPayPal, showStripe, showApplePay, showGooglePay, debug, layout, theme, buttonsTheme, buttonsStyles, cardButtonContent, cardBackButtonContent, cardTitleContent, showSecurityFooter: _showSecurityFooter, onButtonClick, onBeforeButtonClick, enableAVS, cardFieldOrder, cardPreFormSlot, avsLayout, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
263
+ declare function FloPayCheckout({ sessionId: sessionIdProp, nonce: nonceProp, createSession: createSessionParams, billingApiUrl, telemetry, appearance: appearanceOverride, locale, loading: loadingNode, error: errorNode, onComplete, onError, 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, className, initialErrorMessage, children, checkoutMode: checkoutModeProp, confirmLabel, renderConfirmButton, onSessionCompleted, }: FloPayCheckoutProps): React.ReactElement;
248
264
 
249
265
  /**
250
266
  * Returns the current `FloPay` instance, or `null` if the provider