Stripe Setup Guide
Complete these steps to enable payments
1
Create Stripe Products & PricesGo to your Stripe Dashboard and create these products:
Premium Subscription - $29/month
- • Product Name: "WooSingle Premium"
- • Price: $29 USD / month (recurring)
- • Price ID: Copy this after creating (e.g., price_1xxxxx)
Elite Subscription - $79/month
- • Product Name: "WooSingle Elite"
- • Price: $79 USD / month (recurring)
- • Price ID: Copy this after creating
Coin Packs (One-time payments)
- • 500 Coins - $4.99
- • 1200 Coins - $9.99
- • 3000 Coins - $19.99
2
Update Price IDs in CodeAfter creating products, update the price IDs in:
functions/stripe/createCheckout.jsReplace the placeholder price IDs with your actual Stripe price IDs
3
Configure Stripe WebhookThis is critical! Without webhooks, subscriptions won't work properly.
Your webhook URL:
https://woosingle.com/api/functions/stripe/webhook
Events to listen for:
checkout.session.completed
customer.subscription.updated
customer.subscription.deleted
invoice.payment_succeeded
invoice.payment_failed
4
Test Payment FlowUse Stripe test cards to verify everything works:
Test Card Numbers:
- Success
4242 4242 4242 4242 - Decline
4000 0000 0000 0002 - Use any future expiry date and any CVC
Setup Checklist
✓ Stripe API keys added to secrets
Create products in Stripe Dashboard
Update price IDs in code
Configure webhook endpoint
Test with test card