Skip to content

Railway Deployment #787332 fix: remove outdated Stripe apiVersion#2

Open
railway-app[bot] wants to merge 1 commit into
masterfrom
railway/fix-deploy-787332
Open

Railway Deployment #787332 fix: remove outdated Stripe apiVersion#2
railway-app[bot] wants to merge 1 commit into
masterfrom
railway/fix-deploy-787332

Conversation

@railway-app

@railway-app railway-app Bot commented Mar 20, 2026

Copy link
Copy Markdown

Problem

The Next.js build fails with a TypeScript type error in lib/stripe.ts: Type '"2023-10-16"' is not assignable to type '"2025-08-27.basil"'. Stripe SDK v18 enforces apiVersion as a specific literal type, and the hardcoded "2023-10-16" value is no longer valid.

Solution

Removed the apiVersion: '2023-10-16' option from the Stripe client constructor in lib/stripe.ts, allowing the SDK to default to its built-in API version (2025-08-27.basil). This mirrors the fix already applied to features/integrations/payment/stripe.ts in the triggering commit.

Changes

  • Modified lib/stripe.ts

Context

  • Deployment: #787332
  • Failed commit: ca25260

Generated by Railway

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.

0 participants