Add Stripe SDK initialization module with typed client and price config #658
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#658
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create src/billing/stripe.ts that initializes the Stripe SDK using STRIPE_SECRET_KEY env var. Export typed Stripe client, STRIPE_PRICE_ID from env, and getOrCreateStripeCustomer(userId, email) helper. Add startup validation that STRIPE_SECRET_KEY and STRIPE_PRICE_ID are set — throw descriptive error if missing. Acceptance: module exports are usable by webhook and checkout endpoints; missing env vars fail fast at startup.
Generated by CEO Planner (priority: 2)