@funnelfox/payments-sdk 0.1.2-beta.8 → 0.1.2-beta.9
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.cjs +2 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -39,6 +39,8 @@ interface StripeConfig {
|
|
|
39
39
|
trial?: StripeCheckoutTrial;
|
|
40
40
|
/** When true, treats this as a subscription upgrade — requires customerId to be set */
|
|
41
41
|
upgrade?: boolean;
|
|
42
|
+
/** When true, surfaces Apple Pay / Google Pay as the primary payment option (Wallet-First mode) */
|
|
43
|
+
walletFirst?: boolean;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
interface FastSpringConfig {
|
|
@@ -121,7 +123,7 @@ declare class CheckoutError extends Error {
|
|
|
121
123
|
constructor(message: string);
|
|
122
124
|
}
|
|
123
125
|
|
|
124
|
-
type CreateCheckoutSessionParams =
|
|
126
|
+
type CreateCheckoutSessionParams = Omit<StripeConfig, 'publishableKey' | 'returnUrl'> & {
|
|
125
127
|
returnUrl: string;
|
|
126
128
|
};
|
|
127
129
|
declare function buildStripeCheckoutSessionBody(params: CreateCheckoutSessionParams): Record<string, unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ interface StripeConfig {
|
|
|
39
39
|
trial?: StripeCheckoutTrial;
|
|
40
40
|
/** When true, treats this as a subscription upgrade — requires customerId to be set */
|
|
41
41
|
upgrade?: boolean;
|
|
42
|
+
/** When true, surfaces Apple Pay / Google Pay as the primary payment option (Wallet-First mode) */
|
|
43
|
+
walletFirst?: boolean;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
interface FastSpringConfig {
|
|
@@ -121,7 +123,7 @@ declare class CheckoutError extends Error {
|
|
|
121
123
|
constructor(message: string);
|
|
122
124
|
}
|
|
123
125
|
|
|
124
|
-
type CreateCheckoutSessionParams =
|
|
126
|
+
type CreateCheckoutSessionParams = Omit<StripeConfig, 'publishableKey' | 'returnUrl'> & {
|
|
125
127
|
returnUrl: string;
|
|
126
128
|
};
|
|
127
129
|
declare function buildStripeCheckoutSessionBody(params: CreateCheckoutSessionParams): Record<string, unknown>;
|
package/dist/index.js
CHANGED