@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 CHANGED
@@ -61,7 +61,8 @@ function buildStripeCheckoutSessionBody(params) {
61
61
  } : {}
62
62
  }
63
63
  },
64
- ...params.upgrade && { upgrade: params.upgrade }
64
+ ...params.upgrade && { upgrade: params.upgrade },
65
+ ...params.walletFirst && { wallet_first: params.walletFirst }
65
66
  };
66
67
  }
67
68
 
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 = Pick<StripeConfig, 'priceId' | 'managed' | 'accountId' | 'customerId' | 'customer' | 'allowPromoCodes' | 'coupon' | 'customPriceValue' | 'trial' | 'upgrade'> & {
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 = Pick<StripeConfig, 'priceId' | 'managed' | 'accountId' | 'customerId' | 'customer' | 'allowPromoCodes' | 'coupon' | 'customPriceValue' | 'trial' | 'upgrade'> & {
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
@@ -33,7 +33,8 @@ function buildStripeCheckoutSessionBody(params) {
33
33
  } : {}
34
34
  }
35
35
  },
36
- ...params.upgrade && { upgrade: params.upgrade }
36
+ ...params.upgrade && { upgrade: params.upgrade },
37
+ ...params.walletFirst && { wallet_first: params.walletFirst }
37
38
  };
38
39
  }
39
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelfox/payments-sdk",
3
- "version": "0.1.2-beta.8",
3
+ "version": "0.1.2-beta.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",