Skip to content

Outdated Stripe SDK versions — stripe-js v2 and stripe v14 are multiple majors behind #25

@mahdirajaee

Description

@mahdirajaee

Description

The current package.json pins Stripe dependencies at significantly outdated major versions:

  • @stripe/stripe-js: ^2.4.0 (current stable is v5+)
  • stripe (Node SDK): ^14.25.0 (current stable is v17+)

Impact

  • Breaking API changes: Stripe v15/v16/v17 introduced new API patterns, improved TypeScript types, and deprecated several methods used in v14.
  • Security: Older SDK versions may not include latest security patches and TLS handling improvements.
  • Stripe API version drift: Newer SDK versions default to newer Stripe API versions, which include bug fixes and improved webhook signature verification.

Suggested Fix

"@stripe/stripe-js": "^5.0.0",
"stripe": "^17.0.0"

This will likely require updating:

  1. Webhook handler signature verification (API changed in v15+)
  2. Subscription creation flow (new patterns in v16+)
  3. Price/Product listing methods

Happy to submit a PR if this aligns with the project's direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions