Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 31 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@
"@vercel/functions": "^3.9.11",
"adm-zip": "^0.6.1",
"bcrypt": "^6.0.0",
"dotenv": "^17.4.2",
"dotenv": "^18.0.6",
"gray-matter": "^4.0.3",
"html5-qrcode": "^2.3.8",
"marked": "^18.0.14",
"marked-highlight": "^2.2.4",
"nanoid": "^6.0.1",
"nodemailer": "^9.0.4",
"nodemailer": "^10.0.16",
"openai": "^7.27.0",
"otpauth": "^9.5.2",
"pg": "^8.23.0",
"shiki": "^4.4.3",
"simple-oauth2": "^5.1.0",
"stripe": "^22.6.2",
"stripe": "^23.0.0",
"sveltekit-api": "^0.6.1",
"swagger-ui-dist": "^5.33.1",
"zod": "^4.4.3"
Expand Down
6 changes: 4 additions & 2 deletions src/lib/server/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (!STRIPE_SECRET_KEY) {
}

export const stripe = new Stripe(STRIPE_SECRET_KEY, {
apiVersion: '2026-08-26.dahlia',
apiVersion: '2026-09-30.endive',
typescript: true
});

Expand All @@ -28,7 +28,9 @@ export async function createCheckoutSession(params: CheckoutSessionParams) {

const session = await stripe.checkout.sessions.create({
mode: 'subscription',
payment_method_types: ['card'],
// Stripe API 2026-09-30.endive removed payment_method_types. This filters
// the dynamic method list down to cards, matching the previous card-only checkout.
allowed_payment_method_types: ['card'],
customer_email: customerEmail,
line_items: [
{
Expand Down
Loading