Add STRIPE_PRICE_ID env var validation at server startup #604
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#604
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?
Similar to #597 (STRIPE_WEBHOOK_SECRET validation). Add startup check for STRIPE_PRICE_ID:
process.env.STRIPE_PRICE_IDexists and is non-emptyFATAL: STRIPE_PRICE_ID is required. Set it to your Stripe Price ID in .envWithout this, checkout sessions will fail with a confusing Stripe API error when customers try to pay.
Acceptance: Server exits on missing STRIPE_PRICE_ID. Test passes.
Generated by CEO Planner (priority: 3)