Skip to content

Commit b3de3fc

Browse files
committed
fix: stripe cloud tokens product id config
should be fetched from helicone settings instead of environment variables
1 parent 3f80739 commit b3de3fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

valhalla/jawn/src/managers/stripe/StripeManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,8 +1359,9 @@ WHERE (${builtFilter.filter})`,
13591359
// Build query based on search kind
13601360
switch (searchKind) {
13611361
case PaymentIntentSearchKind.CREDIT_PURCHASES:
1362-
const productId = process.env.STRIPE_CLOUD_GATEWAY_TOKEN_USAGE_PRODUCT;
1363-
1362+
const settingsManager = new SettingsManager();
1363+
const stripeProductSettings = await settingsManager.getSetting("stripe:products");
1364+
const productId = stripeProductSettings?.cloudGatewayTokenUsageProduct;
13641365
if (!productId) {
13651366
console.error(
13661367
"[Stripe API] STRIPE_CLOUD_GATEWAY_TOKEN_USAGE_PRODUCT not configured"

0 commit comments

Comments
 (0)