Changed endpoint parameters from (priceId, discordId) to just (tier_level).
ISSUE:
Website sends: { tier_level: 1 }
Endpoint expected: { priceId, discordId }
Result: 400 error 'Missing priceId or discordId'
FIX:
- Accept tier_level from request body
- Look up stripe_price_id from stripe_products table
- Determine billing_type (one-time vs subscription)
- Create checkout session without requiring discordId
- Simplified for public checkout flow (no user tracking yet)
SIMPLIFIED CHECKOUT:
- No user verification required
- No Discord linking required
- Stripe collects email during checkout
- Webhook will handle subscription creation later
FILES MODIFIED:
- services/arbiter-3.0/src/routes/stripe.js (45 lines changed)
TESTING:
- Click Subscribe button on website
- Should now create Stripe checkout session successfully
- Should redirect to Stripe payment page
Signed-off-by: Claude (Chronicler #57) <claude@firefrostgaming.com>