Update backend envars types and add STRIPE_PRODUCT_TEAM envar

This commit is contained in:
Tuan Dang
2023-01-26 10:20:42 +07:00
parent f2c35a302d
commit 237a10da1e
7 changed files with 26 additions and 22 deletions
+2
View File
@@ -3,6 +3,7 @@ import Stripe from 'stripe';
import {
STRIPE_SECRET_KEY,
STRIPE_PRODUCT_STARTER,
STRIPE_PRODUCT_TEAM,
STRIPE_PRODUCT_PRO
} from '../config';
const stripe = new Stripe(STRIPE_SECRET_KEY, {
@@ -14,6 +15,7 @@ import { Organization, MembershipOrg } from '../models';
const productToPriceMap = {
starter: STRIPE_PRODUCT_STARTER,
team: STRIPE_PRODUCT_TEAM,
pro: STRIPE_PRODUCT_PRO
};