// 🧠HIVE WITH REAL STRIPE INTEGRATION // Your actual Stripe account connected! const STRIPE_PRODUCTS = { basic: { id: 'prod_T6deGmxPaewLfe', price_id: 'price_1SAQNtRTJTEtjyK6b8RXYVOE', name: 'ANI Agent - Basic', price: 99, link: 'https://buy.stripe.com/8x26oJ2Xd8974eC6Wr2Nq0s' }, pro: { id: 'prod_T6dfotJXoeLflY', price_id: 'price_1SAQOSRTJTEtjyK66oNkhwa7', name: 'ANI Agent - Professional', price: 299 }, setup: { id: 'prod_T6dggNOfQ2OuJj', price_id: 'price_1SAQOlRTJTEtjyK6Uh9tJCBJ', name: 'Hive Setup Package', price: 999 } }; export default { async fetch(request, env, ctx) { const url = new URL(request.url); // Get Stripe payment link if (url.pathname === '/api/payment-link') { const product = url.searchParams.get('product') || 'basic'; return new Response(JSON.stringify({ product: STRIPE_PRODUCTS[product].name, price: STRIPE_PRODUCTS[product].price, payment_link: STRIPE_PRODUCTS[product].link || 'Generate in Stripe Dashboard', message: 'Share this link to get paid!' }), { headers: { 'content-type': 'application/json' } }); } // Dashboard with REAL Stripe products return new Response(`
Account: ThatdeveloperGuy • Live Payments Active