Skip to content

Align Stripe API version pins to 2025-12-15.clover - #3124

Open
hariharapanigrahy wants to merge 1 commit into
stripe-samples:mainfrom
hariharapanigrahy:layerkit/heal-stripe-api-version-2025-12-15
Open

hariharapanigrahy wants to merge 1 commit into
stripe-samples:mainfrom
hariharapanigrahy:layerkit/heal-stripe-api-version-2025-12-15

Conversation

@hariharapanigrahy

Copy link
Copy Markdown

Summary

  • Unify explicit Stripe API version pins across client HTML, PHP templates, and Node/Python/Ruby servers to 2025-12-15.clover.
  • 57 files previously mixed 2020-08-27, 2020-03-02, 2022-11-15, 2023-10-16, and 2024-06-20 while Next.js / TypeScript servers already used 2025-12-15.clover.
  • Pin-only change (net 0 LOC); no new abstractions.

Evidence

Source Finding
In-repo modern paths payment-element/server/nextjs/lib/stripe.ts et al. already pin 2025-12-15.clover
Pre-change distribution 47× 2020-08-27, 5× clover, plus older pins
SDK constraint Sample stripe packages are ^20.x (clover train); latest npm stripe@22.4.0 defaults to 2026-07-29.dahlia
Docs API upgrades — pin version in code; account upgrades change request/response/webhook shapes

Why not dahlia yet?

Jumping to 2026-07-29.dahlia requires coordinated SDK majors (stripe ^22, matching PHP/Ruby/Python). Suggested follow-up PR.

Test plan

  • Spot-check Payment Element + custom card flow still create PaymentIntents with pinned version
  • Confirm Stripe Dashboard request logs show Stripe-Version: 2025-12-15.clover
  • CI sample suite green if available

Several sample paths still used 2020-08-27 (and a few other outdated
pins) while Next.js and TypeScript servers already target 2025-12-15.clover.
Unify explicit apiVersion / api_version / Stripe.api_version pins so
client and server samples request the same contract shape.

Evidence: in-repo modern baseline + stripe SDK ^20 clover train.
Follow-up: bump to 2026-07-29.dahlia requires coordinated SDK majors.
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.

1 participant