Skip to content

Stripe SDK v22 no longer exports SessionCreateParams #2658

@hbmartin

Description

@hbmartin

Describe the bug

v22 and specifically #2619 remove the export for SessionCreateParams
This was no documented and resulted in breaking existing imports.

To Reproduce

  1. Using v21, use the type Stripe.Checkout.SessionCreateParams
  2. Upgrade to v22
  3. Observe that the moved Checkout.SessionCreateParams is not exported

Expected behavior

SessionCreateParams is exported from src/resources/Checkout/Sessions.ts

Code snippets

// workaround:
type CheckoutSessionCreateParams = Stripe["checkout"]["sessions"] extends {
	create(params?: infer T, options?: unknown): unknown;
}
	? T
	: never;

OS

macOS

Node version

Node v24

Library version

stripe 22.0.0

API version

2026-03-25.dahlia

Additional context

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions