Add Stripe SDK initialization module with typed client and price config #658

Open
opened 2026-04-11 09:47:19 -04:00 by pook · 0 comments
Owner

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)

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)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#658
No description provided.