Add Stripe SDK client singleton module at src/billing/stripe-client.ts #823
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#823
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 a new module
src/billing/stripe-client.tsthat exports a lazily-initialized Stripe SDK instance. ImportStripefrom thestripepackage. ReadSTRIPE_SECRET_KEYfrom env, throw at call time if missing. Use singleton pattern so the client is created once and reused. ExportgetStripeClient(): Stripe. This is a prerequisite for billing endpoints (#819 checkout, #807 webhook handlers) and subscription helpers (#822). Installstripepackage if not present. Add unit test verifying singleton returns same instance. Acceptance: module created, test passes,npm ls stripeshows dependency.Generated by CEO Planner (priority: 2)