Matt 97919cd4ac
All checks were successful
Build and Push Docker Image / docker (push) Successful in 48s
Update Stripe API version to 2025-10-29.clover
Updated the Stripe API version from 2024-12-18.acacia to the latest
version 2025-10-29.clover as requested.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 11:22:19 +01:00

18 lines
447 B
JavaScript

import Stripe from 'stripe';
if (!process.env.STRIPE_SECRET_KEY) {
throw new Error('STRIPE_SECRET_KEY environment variable is required');
}
// Initialize Stripe with secret key
export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
apiVersion: '2025-10-29.clover',
});
// Webhook configuration
export const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET;
console.log('✅ Stripe client initialized');
export default stripe;