const Stripe = require('stripe');

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
  apiVersion: '2024-12-18.acacia'
});

// Product and Price IDs - will be created on first run
const PRODUCTS = {
  STARTER_KIT: {
    name: 'WellNuo Starter Kit',
    description: '2x Motion Sensors + 1x Door Sensor + 1x Hub',
    price: 24900, // $249.00 in cents
    type: 'one_time'
  },
  PREMIUM_SUBSCRIPTION: {
    name: 'WellNuo Premium',
    description: 'AI Julia chat, 90-day history, invite up to 5 family members',
    price: 999, // $9.99 in cents
    type: 'recurring',
    interval: 'month'
  }
};

module.exports = { stripe, PRODUCTS };
