@flopay/shared 1.20.0 → 1.20.2
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/checkout-gateway-rules.d.ts +9 -3
- package/dist/constants.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -34,11 +34,17 @@ export declare function resolveDirectPaypalConfig(paypal: DirectPayPalGatewaySou
|
|
|
34
34
|
* no country, nothing is filtered and `methods` is returned as it is.
|
|
35
35
|
*/
|
|
36
36
|
export declare function filterStripeMethodsByCountryGate(methods: string[], country: string | null | undefined, enabledPaymentMethodCountries: Record<string, string[]> | undefined): string[];
|
|
37
|
+
/**
|
|
38
|
+
* The key of the gateway that takes the session's cards, exactly as the API
|
|
39
|
+
* names it: the server-side card gateway when there is one, else the
|
|
40
|
+
* browser-side card provider when the session has it, else `undefined`.
|
|
41
|
+
*/
|
|
42
|
+
export declare function cardGatewayName(session: Pick<CheckoutSession, 'gateways'> | null | undefined): string | undefined;
|
|
37
43
|
/**
|
|
38
44
|
* Whether the session can route cards to a gateway the billing API processes
|
|
39
|
-
* entirely server-side behind the hosted vault form
|
|
40
|
-
*
|
|
41
|
-
*
|
|
45
|
+
* entirely server-side behind the hosted vault form (see
|
|
46
|
+
* {@link serverSideCardGatewayName}). Such a gateway has no browser runtime or
|
|
47
|
+
* credentials, and its payment references are not Stripe objects.
|
|
42
48
|
*/
|
|
43
49
|
export declare function hasServerSideCardGateway(session: CheckoutSession | null | undefined): boolean;
|
|
44
50
|
/**
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AVSFieldConfig, ButtonsLayoutStyles, ButtonsLayoutTheme, CountryOption, CurrencyInfo, FloPayAppearance, ThemeBundle, ThemeBundleId, ThemeId } from './types.js';
|
|
2
2
|
/** Current SDK version. */
|
|
3
|
-
export declare const SDK_VERSION = "1.20.
|
|
3
|
+
export declare const SDK_VERSION = "1.20.2";
|
|
4
4
|
/**
|
|
5
5
|
* HTTP header the SDK sends on checkout-session create/read requests so the
|
|
6
6
|
* backend can observe compatibility. Version 1.4.9 is the first release that
|