Skip to content

Commit d02dda7

Browse files
fix(billing): load Stripe config from env vars instead of hardcoded placeholders
1 parent fe5c2a7 commit d02dda7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

modules/billing/config/billing.development.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
const config = {
22
stripe: {
3-
secretKey: 'sk_test_placeholder',
4-
webhookSecret: 'whsec_placeholder',
3+
secretKey: process.env.DEVKIT_NODE_stripe_secretKey ?? '',
4+
webhookSecret: process.env.DEVKIT_NODE_stripe_webhookSecret ?? '',
55
prices: {
66
starter: {
7-
monthly: 'price_starter_monthly_placeholder',
8-
annual: 'price_starter_annual_placeholder',
7+
monthly: process.env.DEVKIT_NODE_stripe_prices_starter_monthly ?? '',
8+
annual: process.env.DEVKIT_NODE_stripe_prices_starter_annual ?? '',
99
},
1010
pro: {
11-
monthly: 'price_pro_monthly_placeholder',
12-
annual: 'price_pro_annual_placeholder',
11+
monthly: process.env.DEVKIT_NODE_stripe_prices_pro_monthly ?? '',
12+
annual: process.env.DEVKIT_NODE_stripe_prices_pro_annual ?? '',
1313
},
1414
},
1515
},

0 commit comments

Comments
 (0)