Skip to content

Conversation

prathmesh-stripe
Copy link
Contributor

@prathmesh-stripe prathmesh-stripe commented Jul 4, 2025

Why?

A user requested that Stripe class should export the API_VERSION.

What?

  • Export API_VERSION on non-instantiated Stripe class.

See Also

#2357

Changelog

  • Use API_VERSION on Stripe class to access API version pinned to the current SDK.
import { Stripe } from "stripe";

console.log(Stripe.API_VERSION);  // 2025-06-30.basil

⚠️ This might move to a different location in a future major version.

@prathmesh-stripe prathmesh-stripe requested a review from a team as a code owner July 4, 2025 20:14
@prathmesh-stripe prathmesh-stripe requested review from jar-stripe and xavdid-stripe and removed request for a team July 4, 2025 20:14
Copy link

@developers001 developers001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve charges

@prathmesh-stripe prathmesh-stripe merged commit bf7a776 into master Jul 14, 2025
9 checks passed
@prathmesh-stripe prathmesh-stripe deleted the prathmesh/export-api-version branch July 14, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants